blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 4 201 | content_id stringlengths 40 40 | detected_licenses listlengths 0 85 | license_type stringclasses 2
values | repo_name stringlengths 7 100 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 260
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 11.4k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 80
values | src_encoding stringclasses 28
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 8 9.86M | extension stringclasses 52
values | content stringlengths 8 9.86M | authors listlengths 1 1 | author stringlengths 0 119 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2db281f35cd8283f3a65fb9357fae1a2e8e519ff | 04251e142abab46720229970dab4f7060456d361 | /lib/rosetta/source/src/core/scoring/func/KarplusFunc.hh | a30b26ea0e69b2a1e75758a401bfbfedd417f045 | [] | no_license | sailfish009/binding_affinity_calculator | 216257449a627d196709f9743ca58d8764043f12 | 7af9ce221519e373aa823dadc2005de7a377670d | refs/heads/master | 2022-12-29T11:15:45.164881 | 2020-10-22T09:35:32 | 2020-10-22T09:35:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,540 | hh | // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
// vi: set ts=2 noet:
//
// (c) Copyright Rosetta Commons Member Institutions.
// (c) This file is part of the Rosetta software suite and is made available under license.
// (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
// (c) For more information, see http://www.rosettacommons.org. Questions about this can be
// (c) addressed to University of Washington CoMotion, email: license@uw.edu.
/// @file src/core/scoring/func/HarmonicFunc.hh
/// @brief Definition for functions used in definition of constraints.
/// @author Nikolas Sgourakis
#ifndef INCLUDED_core_scoring_func_KarplusFunc_hh
#define INCLUDED_core_scoring_func_KarplusFunc_hh
#include <core/scoring/func/KarplusFunc.fwd.hh>
#include <core/scoring/func/Func.hh>
#include <core/types.hh>
// C++ Headers
#ifdef SERIALIZATION
// Cereal headers
#include <cereal/access.fwd.hpp>
#include <cereal/types/polymorphic.fwd.hpp>
#endif // SERIALIZATION
namespace core {
namespace scoring {
namespace func {
/// @brief Function that evaluates a J-coupling from dihedral angles in radians, for applications like DihedralConstraint.
/// Prevents discontinuities at 0/360 or -180/180 degrees for dihedral constraints.
class KarplusFunc : public Func {
public:
KarplusFunc(
Real const A_Hertz , Real const B_Hertz, Real const C_Hertz, Real const Dphi_radians, Real const x0_Hertz, Real const sd_Hertz, Real const offset=0.0
):A_(A_Hertz), B_(B_Hertz), C_(C_Hertz), Dphi_(Dphi_radians), x0_( x0_Hertz ), sd_( sd_Hertz ), offset_( offset ) {}
FuncOP clone() const override { return utility::pointer::make_shared< KarplusFunc >( *this ); }
bool operator == ( Func const & other ) const override;
bool same_type_as_me( Func const & other ) const override;
Real func( Real const x ) const override;
Real dfunc( Real const x ) const override;
void read_data( std::istream & in ) override;
void show_definition( std::ostream & out ) const override;
private:
Real A_;
Real B_;
Real C_;
Real Dphi_;
Real x0_;
Real sd_;
Real offset_;
#ifdef SERIALIZATION
protected:
friend class cereal::access;
KarplusFunc();
public:
template< class Archive > void save( Archive & arc ) const;
template< class Archive > void load( Archive & arc );
#endif // SERIALIZATION
};
} // constraints
} // scoring
} // core
#ifdef SERIALIZATION
CEREAL_FORCE_DYNAMIC_INIT( core_scoring_func_KarplusFunc )
#endif // SERIALIZATION
#endif
| [
"lzhangbk@connect.ust.hk"
] | lzhangbk@connect.ust.hk |
4954de356d78053cb920e62fff7c495810cf0f36 | 91fd576201a0fe9eca8d2f33b960f801300e3478 | /OOP_nanotekspice_2019/src/Circuit.cpp | 742abdf85823b9c22198ec964a7ca4de87dbde5b | [] | no_license | ArthurBoulliardT/NanoTekSpice | 058b758c13597c42932938dbbb74b99dccff4be9 | 54bceddb6abfdf9e13cd06ac26d60380e9dd6386 | refs/heads/master | 2022-12-26T01:04:23.504056 | 2020-10-07T15:45:15 | 2020-10-07T15:45:15 | 302,083,574 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,125 | cpp | /*
** EPITECH PROJECT, 2020
** OOP_nanotekspice_2019
** File description:
** Circuit
*/
#include "Error.hpp"
#include "Circuit.hpp"
#include "Input.hpp"
#include "Output.hpp"
#include "True.hpp"
#include "False.hpp"
#include "Clock.hpp"
#include "4081.hpp"
#include "4071.hpp"
#include "4069.hpp"
#include "4040.hpp"
#include "4030.hpp"
#include "4011.hpp"
#include "4001.hpp"
namespace nts
{
void Circuit::computeInputs()
{
for (const auto &p : _circuit) {
if (p.second->getType() == "input"
|| p.second->getType() == "clock"
|| p.second->getType() == "true"
|| p.second->getType() == "false") {
p.second->compute();
}
}
for (const auto &p : _circuit) {
if (p.second->getType() == "input"
|| p.second->getType() == "clock"
|| p.second->getType() == "true"
|| p.second->getType() == "false") {
if (const auto &ptr = p.second->getPinAtIndex(0).lock()) {
ptr->callNextPins();
}
}
}
}
void Circuit::putAllUncompted()
{
for (const auto &p : _circuit) {
p.second->setUncompted();
}
}
void Circuit::compute()
{
computeInputs();
putAllUncompted();
}
bool Circuit::doesAllInputCompGotValues()
{
for (const auto &p : _circuit) {
if (p.second->getType() == "input"
|| p.second->getType() == "clock") {
if (p.second->getPins().at(0)->getState() == UNDEFINED) {
throw ExecutionError("The component " + p.first + " haven't got any values");
}
}
}
return true;
}
bool Circuit::isCompleteCircuit()
{
for (const auto &p : _circuit) {
if (p.second->enoughLink() == false)
throw FileError("The component " + p.first + " is not completely link");
}
return true;
}
void Circuit::dump() const noexcept
{
for (auto &comp : _circuit) {
comp.second->dump();
std::cout << std::endl;
}
}
std::unique_ptr<Component> Circuit::createA(const std::string &name, const std::string &value) const noexcept
{
const auto &func = _factory[value];
return func(name);
}
void Circuit::createComponent(const std::string &name, const std::string &value)
{
(void)value;
(void)name;
if (_circuit.find(name) == _circuit.end()) {
file("Creating the " + value + " component " + name);
_circuit.insert({ name, createA(name, value)});
file("Added it to the circuit");
}
else
{
throw FileError("Can't create a component with same name than an other one");
}
}
void Circuit::setLink(int pin1, int pin2, const std::string &nameComp1, const std::string &nameComp2)
{
auto &ptrComp1 = _circuit[nameComp1];
auto &ptrComp2 = _circuit[nameComp2];
file("Linking " + nameComp1 + ":" + std::to_string(pin1) + " with " + nameComp2 + ":" + std::to_string(pin2));
ptrComp1->setLink(pin1, *(ptrComp2.get()), pin2);
}
// static methods
std::unique_ptr<Component> Circuit::createInput(const std::string &name)
{
return std::make_unique<nts::comp::Input>(name);
}
std::unique_ptr<Component> Circuit::createTrue(const std::string &name)
{
return std::make_unique<nts::comp::True>(name);
}
std::unique_ptr<Component> Circuit::createFalse(const std::string &name)
{
return std::make_unique<nts::comp::False>(name);
}
std::unique_ptr<Component> Circuit::createClock(const std::string &name)
{
return std::make_unique<nts::comp::Clock>(name);
}
std::unique_ptr<Component> Circuit::createOutput(const std::string &name)
{
return std::make_unique<nts::comp::Output>(name);
}
std::unique_ptr<Component> Circuit::create4081(const std::string &name)
{
return std::make_unique<nts::comp::_4081>(name);
}
std::unique_ptr<Component>Circuit::create4071(const std::string &name)
{
return std::make_unique<nts::comp::_4071>(name);
}
std::unique_ptr<Component>Circuit::create4069(const std::string &name)
{
return std::make_unique<nts::comp::_4069>(name);
}
std::unique_ptr<Component>Circuit::create4040(const std::string &name)
{
return std::make_unique<nts::comp::_4040>(name);
}
std::unique_ptr<Component>Circuit::create4030(const std::string &name)
{
return std::make_unique<nts::comp::_4030>(name);
}
std::unique_ptr<Component>Circuit::create4011(const std::string &name)
{
return std::make_unique<nts::comp::_4011>(name);
}
std::unique_ptr<Component>Circuit::create4001(const std::string &name)
{
return std::make_unique<nts::comp::_4001>(name);
}
} | [
"arthurboulliard2@gmail.com"
] | arthurboulliard2@gmail.com |
e61e3c1a40955aa58e34f56d7a7ea1864f45ef3e | 14b0282112cddf7db391335f356c9a7a83100785 | /OC对象的本质/OC对象的本质/main.cpp | fd38d36c54abe90879feecaaf03c85871c82611a | [
"MIT"
] | permissive | CXTretar/InterviewLearnDemos | d527e1389edf376039ea3d61ebc8b78dadb04d56 | 465a0a48537ffd24b5df1153ab37341f9dc4b7f7 | refs/heads/master | 2020-06-18T02:11:01.924942 | 2020-05-24T15:25:52 | 2020-05-24T15:25:52 | 196,131,586 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,715,971 | cpp | #ifndef __OBJC2__
#define __OBJC2__
#endif
struct objc_selector; struct objc_class;
struct __rw_objc_super {
struct objc_object *object;
struct objc_object *superClass;
__rw_objc_super(struct objc_object *o, struct objc_object *s) : object(o), superClass(s) {}
};
#ifndef _REWRITER_typedef_Protocol
typedef struct objc_object Protocol;
#define _REWRITER_typedef_Protocol
#endif
#define __OBJC_RW_DLLIMPORT extern
__OBJC_RW_DLLIMPORT void objc_msgSend(void);
__OBJC_RW_DLLIMPORT void objc_msgSendSuper(void);
__OBJC_RW_DLLIMPORT void objc_msgSend_stret(void);
__OBJC_RW_DLLIMPORT void objc_msgSendSuper_stret(void);
__OBJC_RW_DLLIMPORT void objc_msgSend_fpret(void);
__OBJC_RW_DLLIMPORT struct objc_class *objc_getClass(const char *);
__OBJC_RW_DLLIMPORT struct objc_class *class_getSuperclass(struct objc_class *);
__OBJC_RW_DLLIMPORT struct objc_class *objc_getMetaClass(const char *);
__OBJC_RW_DLLIMPORT void objc_exception_throw( struct objc_object *);
__OBJC_RW_DLLIMPORT int objc_sync_enter( struct objc_object *);
__OBJC_RW_DLLIMPORT int objc_sync_exit( struct objc_object *);
__OBJC_RW_DLLIMPORT Protocol *objc_getProtocol(const char *);
#ifdef _WIN64
typedef unsigned long long _WIN_NSUInteger;
#else
typedef unsigned int _WIN_NSUInteger;
#endif
#ifndef __FASTENUMERATIONSTATE
struct __objcFastEnumerationState {
unsigned long state;
void **itemsPtr;
unsigned long *mutationsPtr;
unsigned long extra[5];
};
__OBJC_RW_DLLIMPORT void objc_enumerationMutation(struct objc_object *);
#define __FASTENUMERATIONSTATE
#endif
#ifndef __NSCONSTANTSTRINGIMPL
struct __NSConstantStringImpl {
int *isa;
int flags;
char *str;
#if _WIN64
long long length;
#else
long length;
#endif
};
#ifdef CF_EXPORT_CONSTANT_STRING
extern "C" __declspec(dllexport) int __CFConstantStringClassReference[];
#else
__OBJC_RW_DLLIMPORT int __CFConstantStringClassReference[];
#endif
#define __NSCONSTANTSTRINGIMPL
#endif
#ifndef BLOCK_IMPL
#define BLOCK_IMPL
struct __block_impl {
void *isa;
int Flags;
int Reserved;
void *FuncPtr;
};
// Runtime copy/destroy helper functions (from Block_private.h)
#ifdef __OBJC_EXPORT_BLOCKS
extern "C" __declspec(dllexport) void _Block_object_assign(void *, const void *, const int);
extern "C" __declspec(dllexport) void _Block_object_dispose(const void *, const int);
extern "C" __declspec(dllexport) void *_NSConcreteGlobalBlock[32];
extern "C" __declspec(dllexport) void *_NSConcreteStackBlock[32];
#else
__OBJC_RW_DLLIMPORT void _Block_object_assign(void *, const void *, const int);
__OBJC_RW_DLLIMPORT void _Block_object_dispose(const void *, const int);
__OBJC_RW_DLLIMPORT void *_NSConcreteGlobalBlock[32];
__OBJC_RW_DLLIMPORT void *_NSConcreteStackBlock[32];
#endif
#endif
#define __block
#define __weak
#include <stdarg.h>
struct __NSContainer_literal {
void * *arr;
__NSContainer_literal (unsigned int count, ...) {
va_list marker;
va_start(marker, count);
arr = new void *[count];
for (unsigned i = 0; i < count; i++)
arr[i] = va_arg(marker, void *);
va_end( marker );
};
~__NSContainer_literal() {
delete[] arr;
}
};
extern "C" __declspec(dllimport) void * objc_autoreleasePoolPush(void);
extern "C" __declspec(dllimport) void objc_autoreleasePoolPop(void *);
struct __AtAutoreleasePool {
__AtAutoreleasePool() {atautoreleasepoolobj = objc_autoreleasePoolPush();}
~__AtAutoreleasePool() {objc_autoreleasePoolPop(atautoreleasepoolobj);}
void * atautoreleasepoolobj;
};
#define __OFFSETOFIVAR__(TYPE, MEMBER) ((long long) &((TYPE *)0)->MEMBER)
typedef signed char __int8_t;
typedef unsigned char __uint8_t;
typedef short __int16_t;
typedef unsigned short __uint16_t;
typedef int __int32_t;
typedef unsigned int __uint32_t;
typedef long long __int64_t;
typedef unsigned long long __uint64_t;
typedef long __darwin_intptr_t;
typedef unsigned int __darwin_natural_t;
typedef int __darwin_ct_rune_t;
typedef union {
char __mbstate8[128];
long long _mbstateL;
} __mbstate_t;
typedef __mbstate_t __darwin_mbstate_t;
typedef long int __darwin_ptrdiff_t;
typedef long unsigned int __darwin_size_t;
typedef __builtin_va_list __darwin_va_list;
typedef int __darwin_wchar_t;
typedef __darwin_wchar_t __darwin_rune_t;
typedef int __darwin_wint_t;
typedef unsigned long __darwin_clock_t;
typedef __uint32_t __darwin_socklen_t;
typedef long __darwin_ssize_t;
typedef long __darwin_time_t;
typedef signed char int8_t;
typedef short int16_t;
typedef int int32_t;
typedef long long int64_t;
typedef unsigned char u_int8_t;
typedef unsigned short u_int16_t;
typedef unsigned int u_int32_t;
typedef unsigned long long u_int64_t;
typedef int64_t register_t;
typedef __darwin_intptr_t intptr_t;
typedef unsigned long uintptr_t;
typedef u_int64_t user_addr_t;
typedef u_int64_t user_size_t;
typedef int64_t user_ssize_t;
typedef int64_t user_long_t;
typedef u_int64_t user_ulong_t;
typedef int64_t user_time_t;
typedef int64_t user_off_t;
typedef u_int64_t syscall_arg_t;
typedef __int64_t __darwin_blkcnt_t;
typedef __int32_t __darwin_blksize_t;
typedef __int32_t __darwin_dev_t;
typedef unsigned int __darwin_fsblkcnt_t;
typedef unsigned int __darwin_fsfilcnt_t;
typedef __uint32_t __darwin_gid_t;
typedef __uint32_t __darwin_id_t;
typedef __uint64_t __darwin_ino64_t;
typedef __darwin_ino64_t __darwin_ino_t;
typedef __darwin_natural_t __darwin_mach_port_name_t;
typedef __darwin_mach_port_name_t __darwin_mach_port_t;
typedef __uint16_t __darwin_mode_t;
typedef __int64_t __darwin_off_t;
typedef __int32_t __darwin_pid_t;
typedef __uint32_t __darwin_sigset_t;
typedef __int32_t __darwin_suseconds_t;
typedef __uint32_t __darwin_uid_t;
typedef __uint32_t __darwin_useconds_t;
typedef unsigned char __darwin_uuid_t[16];
typedef char __darwin_uuid_string_t[37];
struct __darwin_pthread_handler_rec {
void (*__routine)(void *);
void *__arg;
struct __darwin_pthread_handler_rec *__next;
};
struct _opaque_pthread_attr_t {
long __sig;
char __opaque[56];
};
struct _opaque_pthread_cond_t {
long __sig;
char __opaque[40];
};
struct _opaque_pthread_condattr_t {
long __sig;
char __opaque[8];
};
struct _opaque_pthread_mutex_t {
long __sig;
char __opaque[56];
};
struct _opaque_pthread_mutexattr_t {
long __sig;
char __opaque[8];
};
struct _opaque_pthread_once_t {
long __sig;
char __opaque[8];
};
struct _opaque_pthread_rwlock_t {
long __sig;
char __opaque[192];
};
struct _opaque_pthread_rwlockattr_t {
long __sig;
char __opaque[16];
};
struct _opaque_pthread_t {
long __sig;
struct __darwin_pthread_handler_rec *__cleanup_stack;
char __opaque[8176];
};
typedef struct _opaque_pthread_attr_t __darwin_pthread_attr_t;
typedef struct _opaque_pthread_cond_t __darwin_pthread_cond_t;
typedef struct _opaque_pthread_condattr_t __darwin_pthread_condattr_t;
typedef unsigned long __darwin_pthread_key_t;
typedef struct _opaque_pthread_mutex_t __darwin_pthread_mutex_t;
typedef struct _opaque_pthread_mutexattr_t __darwin_pthread_mutexattr_t;
typedef struct _opaque_pthread_once_t __darwin_pthread_once_t;
typedef struct _opaque_pthread_rwlock_t __darwin_pthread_rwlock_t;
typedef struct _opaque_pthread_rwlockattr_t __darwin_pthread_rwlockattr_t;
typedef struct _opaque_pthread_t *__darwin_pthread_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
typedef unsigned long long uint64_t;
typedef int8_t int_least8_t;
typedef int16_t int_least16_t;
typedef int32_t int_least32_t;
typedef int64_t int_least64_t;
typedef uint8_t uint_least8_t;
typedef uint16_t uint_least16_t;
typedef uint32_t uint_least32_t;
typedef uint64_t uint_least64_t;
typedef int8_t int_fast8_t;
typedef int16_t int_fast16_t;
typedef int32_t int_fast32_t;
typedef int64_t int_fast64_t;
typedef uint8_t uint_fast8_t;
typedef uint16_t uint_fast16_t;
typedef uint32_t uint_fast32_t;
typedef uint64_t uint_fast64_t;
typedef long int intmax_t;
typedef long unsigned int uintmax_t;
static __inline__
uint16_t
_OSSwapInt16(
uint16_t data
)
{
return (uint16_t)(data << 8 | data >> 8);
}
static __inline__
uint32_t
_OSSwapInt32(
uint32_t data
)
{
data = __builtin_bswap32(data);
return data;
}
static __inline__
uint64_t
_OSSwapInt64(
uint64_t data
)
{
return __builtin_bswap64(data);
}
static __inline__
uint16_t
OSReadSwapInt16(
const volatile void * base,
uintptr_t offset
)
{
uint16_t result;
result = *(volatile uint16_t *)((volatile uintptr_t)base + offset);
return _OSSwapInt16(result);
}
static __inline__
uint32_t
OSReadSwapInt32(
const volatile void * base,
uintptr_t offset
)
{
uint32_t result;
result = *(volatile uint32_t *)((volatile uintptr_t)base + offset);
return _OSSwapInt32(result);
}
static __inline__
uint64_t
OSReadSwapInt64(
const volatile void * base,
uintptr_t offset
)
{
volatile uint32_t * inp;
union ullc {
uint64_t ull;
uint32_t ul[2];
} outv;
inp = (volatile uint32_t *)((volatile uintptr_t)base + offset);
outv.ul[0] = inp[1];
outv.ul[1] = inp[0];
outv.ul[0] = _OSSwapInt32(outv.ul[0]);
outv.ul[1] = _OSSwapInt32(outv.ul[1]);
return outv.ull;
}
static __inline__
void
OSWriteSwapInt16(
volatile void * base,
uintptr_t offset,
uint16_t data
)
{
*(volatile uint16_t *)((volatile uintptr_t)base + offset) = _OSSwapInt16(data);
}
static __inline__
void
OSWriteSwapInt32(
volatile void * base,
uintptr_t offset,
uint32_t data
)
{
*(volatile uint32_t *)((volatile uintptr_t)base + offset) = _OSSwapInt32(data);
}
static __inline__
void
OSWriteSwapInt64(
volatile void * base,
uintptr_t offset,
uint64_t data
)
{
*(volatile uint64_t *)((volatile uintptr_t)base + offset) = _OSSwapInt64(data);
}
typedef unsigned char u_char;
typedef unsigned short u_short;
typedef unsigned int u_int;
typedef unsigned long u_long;
typedef unsigned short ushort;
typedef unsigned int uint;
typedef u_int64_t u_quad_t;
typedef int64_t quad_t;
typedef quad_t * qaddr_t;
typedef char * caddr_t;
typedef int32_t daddr_t;
typedef __darwin_dev_t dev_t;
typedef u_int32_t fixpt_t;
typedef __darwin_blkcnt_t blkcnt_t;
typedef __darwin_blksize_t blksize_t;
typedef __darwin_gid_t gid_t;
typedef __uint32_t in_addr_t;
typedef __uint16_t in_port_t;
typedef __darwin_ino_t ino_t;
typedef __darwin_ino64_t ino64_t;
typedef __int32_t key_t;
typedef __darwin_mode_t mode_t;
typedef __uint16_t nlink_t;
typedef __darwin_id_t id_t;
typedef __darwin_pid_t pid_t;
typedef __darwin_off_t off_t;
typedef int32_t segsz_t;
typedef int32_t swblk_t;
typedef __darwin_uid_t uid_t;
static inline __int32_t
major(__uint32_t _x)
{
return (__int32_t)(((__uint32_t)_x >> 24) & 0xff);
}
static inline __int32_t
minor(__uint32_t _x)
{
return (__int32_t)((_x) & 0xffffff);
}
static inline dev_t
makedev(__uint32_t _major, __uint32_t _minor)
{
return (dev_t)(((_major) << 24) | (_minor));
}
typedef __darwin_clock_t clock_t;
typedef __darwin_size_t size_t;
typedef __darwin_ssize_t ssize_t;
typedef __darwin_time_t time_t;
typedef __darwin_useconds_t useconds_t;
typedef __darwin_suseconds_t suseconds_t;
typedef __darwin_size_t rsize_t;
typedef int errno_t;
extern "C" {
typedef struct fd_set {
__int32_t fds_bits[((((1024) % ((sizeof(__int32_t) * 8))) == 0) ? ((1024) / ((sizeof(__int32_t) * 8))) : (((1024) / ((sizeof(__int32_t) * 8))) + 1))];
} fd_set;
}
static inline int
__darwin_fd_isset(int _n, const struct fd_set *_p)
{
return _p->fds_bits[(unsigned long)_n / (sizeof(__int32_t) * 8)] & ((__int32_t)(((unsigned long)1) << ((unsigned long)_n % (sizeof(__int32_t) * 8))));
}
typedef __int32_t fd_mask;
typedef __darwin_pthread_attr_t pthread_attr_t;
typedef __darwin_pthread_cond_t pthread_cond_t;
typedef __darwin_pthread_condattr_t pthread_condattr_t;
typedef __darwin_pthread_mutex_t pthread_mutex_t;
typedef __darwin_pthread_mutexattr_t pthread_mutexattr_t;
typedef __darwin_pthread_once_t pthread_once_t;
typedef __darwin_pthread_rwlock_t pthread_rwlock_t;
typedef __darwin_pthread_rwlockattr_t pthread_rwlockattr_t;
typedef __darwin_pthread_t pthread_t;
typedef __darwin_pthread_key_t pthread_key_t;
typedef __darwin_fsblkcnt_t fsblkcnt_t;
typedef __darwin_fsfilcnt_t fsfilcnt_t;
typedef __builtin_va_list va_list;
typedef __builtin_va_list __gnuc_va_list;
typedef int __darwin_nl_item;
typedef int __darwin_wctrans_t;
typedef __uint32_t __darwin_wctype_t;
typedef enum {
P_ALL,
P_PID,
P_PGID
} idtype_t;
typedef int sig_atomic_t;
struct __darwin_arm_exception_state
{
__uint32_t __exception;
__uint32_t __fsr;
__uint32_t __far;
};
struct __darwin_arm_exception_state64
{
__uint64_t __far;
__uint32_t __esr;
__uint32_t __exception;
};
struct __darwin_arm_thread_state
{
__uint32_t __r[13];
__uint32_t __sp;
__uint32_t __lr;
__uint32_t __pc;
__uint32_t __cpsr;
};
struct __darwin_arm_thread_state64
{
__uint64_t __x[29];
__uint64_t __fp;
__uint64_t __lr;
__uint64_t __sp;
__uint64_t __pc;
__uint32_t __cpsr;
__uint32_t __pad;
};
struct __darwin_arm_vfp_state
{
__uint32_t __r[64];
__uint32_t __fpscr;
};
struct __darwin_arm_neon_state64
{
__uint128_t __v[32];
__uint32_t __fpsr;
__uint32_t __fpcr;
};
struct __darwin_arm_neon_state
{
__uint128_t __v[16];
__uint32_t __fpsr;
__uint32_t __fpcr;
};
struct __darwin_arm_amx_state_v1
{
__uint8_t __x[8][64];
__uint8_t __y[8][64];
__uint8_t __z[64][64];
__uint64_t __amx_state_t_el1;
} __attribute__((aligned(64)));
struct __arm_pagein_state
{
int __pagein_error;
};
struct arm_legacy_debug_state
{
__uint32_t __bvr[16];
__uint32_t __bcr[16];
__uint32_t __wvr[16];
__uint32_t __wcr[16];
};
struct __darwin_arm_debug_state32
{
__uint32_t __bvr[16];
__uint32_t __bcr[16];
__uint32_t __wvr[16];
__uint32_t __wcr[16];
__uint64_t __mdscr_el1;
};
struct __darwin_arm_debug_state64
{
__uint64_t __bvr[16];
__uint64_t __bcr[16];
__uint64_t __wvr[16];
__uint64_t __wcr[16];
__uint64_t __mdscr_el1;
};
struct __darwin_arm_cpmu_state64
{
__uint64_t __ctrs[16];
};
struct __darwin_mcontext32
{
struct __darwin_arm_exception_state __es;
struct __darwin_arm_thread_state __ss;
struct __darwin_arm_vfp_state __fs;
};
struct __darwin_mcontext64
{
struct __darwin_arm_exception_state64 __es;
struct __darwin_arm_thread_state64 __ss;
struct __darwin_arm_neon_state64 __ns;
};
typedef struct __darwin_mcontext64 *mcontext_t;
struct __darwin_sigaltstack
{
void *ss_sp;
__darwin_size_t ss_size;
int ss_flags;
};
typedef struct __darwin_sigaltstack stack_t;
struct __darwin_ucontext
{
int uc_onstack;
__darwin_sigset_t uc_sigmask;
struct __darwin_sigaltstack uc_stack;
struct __darwin_ucontext *uc_link;
__darwin_size_t uc_mcsize;
struct __darwin_mcontext64 *uc_mcontext;
};
typedef struct __darwin_ucontext ucontext_t;
typedef __darwin_sigset_t sigset_t;
union sigval {
int sival_int;
void *sival_ptr;
};
struct sigevent {
int sigev_notify;
int sigev_signo;
union sigval sigev_value;
void (*sigev_notify_function)(union sigval);
pthread_attr_t *sigev_notify_attributes;
};
typedef struct __siginfo {
int si_signo;
int si_errno;
int si_code;
pid_t si_pid;
uid_t si_uid;
int si_status;
void *si_addr;
union sigval si_value;
long si_band;
unsigned long __pad[7];
} siginfo_t;
union __sigaction_u {
void (*__sa_handler)(int);
void (*__sa_sigaction)(int, struct __siginfo *,
void *);
};
struct __sigaction {
union __sigaction_u __sigaction_u;
void (*sa_tramp)(void *, int, int, siginfo_t *, void *);
sigset_t sa_mask;
int sa_flags;
};
struct sigaction {
union __sigaction_u __sigaction_u;
sigset_t sa_mask;
int sa_flags;
};
typedef void (*sig_t)(int);
struct sigvec {
void (*sv_handler)(int);
int sv_mask;
int sv_flags;
};
struct sigstack {
char *ss_sp;
int ss_onstack;
};
extern "C" {
void(*signal(int, void (*)(int)))(int);
}
struct timeval
{
__darwin_time_t tv_sec;
__darwin_suseconds_t tv_usec;
};
typedef __uint64_t rlim_t;
struct rusage {
struct timeval ru_utime;
struct timeval ru_stime;
long ru_maxrss;
long ru_ixrss;
long ru_idrss;
long ru_isrss;
long ru_minflt;
long ru_majflt;
long ru_nswap;
long ru_inblock;
long ru_oublock;
long ru_msgsnd;
long ru_msgrcv;
long ru_nsignals;
long ru_nvcsw;
long ru_nivcsw;
};
typedef void *rusage_info_t;
struct rusage_info_v0 {
uint8_t ri_uuid[16];
uint64_t ri_user_time;
uint64_t ri_system_time;
uint64_t ri_pkg_idle_wkups;
uint64_t ri_interrupt_wkups;
uint64_t ri_pageins;
uint64_t ri_wired_size;
uint64_t ri_resident_size;
uint64_t ri_phys_footprint;
uint64_t ri_proc_start_abstime;
uint64_t ri_proc_exit_abstime;
};
struct rusage_info_v1 {
uint8_t ri_uuid[16];
uint64_t ri_user_time;
uint64_t ri_system_time;
uint64_t ri_pkg_idle_wkups;
uint64_t ri_interrupt_wkups;
uint64_t ri_pageins;
uint64_t ri_wired_size;
uint64_t ri_resident_size;
uint64_t ri_phys_footprint;
uint64_t ri_proc_start_abstime;
uint64_t ri_proc_exit_abstime;
uint64_t ri_child_user_time;
uint64_t ri_child_system_time;
uint64_t ri_child_pkg_idle_wkups;
uint64_t ri_child_interrupt_wkups;
uint64_t ri_child_pageins;
uint64_t ri_child_elapsed_abstime;
};
struct rusage_info_v2 {
uint8_t ri_uuid[16];
uint64_t ri_user_time;
uint64_t ri_system_time;
uint64_t ri_pkg_idle_wkups;
uint64_t ri_interrupt_wkups;
uint64_t ri_pageins;
uint64_t ri_wired_size;
uint64_t ri_resident_size;
uint64_t ri_phys_footprint;
uint64_t ri_proc_start_abstime;
uint64_t ri_proc_exit_abstime;
uint64_t ri_child_user_time;
uint64_t ri_child_system_time;
uint64_t ri_child_pkg_idle_wkups;
uint64_t ri_child_interrupt_wkups;
uint64_t ri_child_pageins;
uint64_t ri_child_elapsed_abstime;
uint64_t ri_diskio_bytesread;
uint64_t ri_diskio_byteswritten;
};
struct rusage_info_v3 {
uint8_t ri_uuid[16];
uint64_t ri_user_time;
uint64_t ri_system_time;
uint64_t ri_pkg_idle_wkups;
uint64_t ri_interrupt_wkups;
uint64_t ri_pageins;
uint64_t ri_wired_size;
uint64_t ri_resident_size;
uint64_t ri_phys_footprint;
uint64_t ri_proc_start_abstime;
uint64_t ri_proc_exit_abstime;
uint64_t ri_child_user_time;
uint64_t ri_child_system_time;
uint64_t ri_child_pkg_idle_wkups;
uint64_t ri_child_interrupt_wkups;
uint64_t ri_child_pageins;
uint64_t ri_child_elapsed_abstime;
uint64_t ri_diskio_bytesread;
uint64_t ri_diskio_byteswritten;
uint64_t ri_cpu_time_qos_default;
uint64_t ri_cpu_time_qos_maintenance;
uint64_t ri_cpu_time_qos_background;
uint64_t ri_cpu_time_qos_utility;
uint64_t ri_cpu_time_qos_legacy;
uint64_t ri_cpu_time_qos_user_initiated;
uint64_t ri_cpu_time_qos_user_interactive;
uint64_t ri_billed_system_time;
uint64_t ri_serviced_system_time;
};
struct rusage_info_v4 {
uint8_t ri_uuid[16];
uint64_t ri_user_time;
uint64_t ri_system_time;
uint64_t ri_pkg_idle_wkups;
uint64_t ri_interrupt_wkups;
uint64_t ri_pageins;
uint64_t ri_wired_size;
uint64_t ri_resident_size;
uint64_t ri_phys_footprint;
uint64_t ri_proc_start_abstime;
uint64_t ri_proc_exit_abstime;
uint64_t ri_child_user_time;
uint64_t ri_child_system_time;
uint64_t ri_child_pkg_idle_wkups;
uint64_t ri_child_interrupt_wkups;
uint64_t ri_child_pageins;
uint64_t ri_child_elapsed_abstime;
uint64_t ri_diskio_bytesread;
uint64_t ri_diskio_byteswritten;
uint64_t ri_cpu_time_qos_default;
uint64_t ri_cpu_time_qos_maintenance;
uint64_t ri_cpu_time_qos_background;
uint64_t ri_cpu_time_qos_utility;
uint64_t ri_cpu_time_qos_legacy;
uint64_t ri_cpu_time_qos_user_initiated;
uint64_t ri_cpu_time_qos_user_interactive;
uint64_t ri_billed_system_time;
uint64_t ri_serviced_system_time;
uint64_t ri_logical_writes;
uint64_t ri_lifetime_max_phys_footprint;
uint64_t ri_instructions;
uint64_t ri_cycles;
uint64_t ri_billed_energy;
uint64_t ri_serviced_energy;
uint64_t ri_interval_max_phys_footprint;
uint64_t ri_runnable_time;
};
typedef struct rusage_info_v4 rusage_info_current;
struct rlimit {
rlim_t rlim_cur;
rlim_t rlim_max;
};
struct proc_rlimit_control_wakeupmon {
uint32_t wm_flags;
int32_t wm_rate;
};
extern "C" {
int getpriority(int, id_t);
int getiopolicy_np(int, int) __attribute__((availability(ios,introduced=2.0)));
int getrlimit(int, struct rlimit *) __asm("_" "getrlimit" );
int getrusage(int, struct rusage *);
int setpriority(int, id_t, int);
int setiopolicy_np(int, int, int) __attribute__((availability(ios,introduced=2.0)));
int setrlimit(int, const struct rlimit *) __asm("_" "setrlimit" );
}
union wait {
int w_status;
struct {
unsigned int w_Termsig:7,
w_Coredump:1,
w_Retcode:8,
w_Filler:16;
} w_T;
struct {
unsigned int w_Stopval:8,
w_Stopsig:8,
w_Filler:16;
} w_S;
};
extern "C" {
pid_t wait(int *) __asm("_" "wait" );
pid_t waitpid(pid_t, int *, int) __asm("_" "waitpid" );
int waitid(idtype_t, id_t, siginfo_t *, int) __asm("_" "waitid" );
pid_t wait3(int *, int, struct rusage *);
pid_t wait4(pid_t, int *, int, struct rusage *);
}
extern "C" {
void *alloca(size_t);
}
typedef __darwin_ct_rune_t ct_rune_t;
typedef __darwin_rune_t rune_t;
typedef struct {
int quot;
int rem;
} div_t;
typedef struct {
long quot;
long rem;
} ldiv_t;
typedef struct {
long long quot;
long long rem;
} lldiv_t;
extern int __mb_cur_max;
extern "C" {
void *malloc(size_t __size) __attribute__((__warn_unused_result__)) __attribute__((alloc_size(1)));
void *calloc(size_t __count, size_t __size) __attribute__((__warn_unused_result__)) __attribute__((alloc_size(1,2)));
void free(void *);
void *realloc(void *__ptr, size_t __size) __attribute__((__warn_unused_result__)) __attribute__((alloc_size(2)));
void *valloc(size_t) __attribute__((alloc_size(1)));
int posix_memalign(void **__memptr, size_t __alignment, size_t __size) __attribute__((availability(ios,introduced=3.0)));
}
extern "C" {
void abort(void) __attribute__((__cold__)) __attribute__((__noreturn__));
int abs(int) __attribute__((__const__));
int atexit(void (* _Nonnull)(void));
double atof(const char *);
int atoi(const char *);
long atol(const char *);
long long
atoll(const char *);
void *bsearch(const void *__key, const void *__base, size_t __nel,
size_t __width, int (* _Nonnull __compar)(const void *, const void *));
div_t div(int, int) __attribute__((__const__));
void exit(int) __attribute__((__noreturn__));
char *getenv(const char *);
long labs(long) __attribute__((__const__));
ldiv_t ldiv(long, long) __attribute__((__const__));
long long
llabs(long long);
lldiv_t lldiv(long long, long long);
int mblen(const char *__s, size_t __n);
size_t mbstowcs(wchar_t * , const char * , size_t);
int mbtowc(wchar_t * , const char * , size_t);
void qsort(void *__base, size_t __nel, size_t __width,
int (* _Nonnull __compar)(const void *, const void *));
int rand(void) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead.")));
void srand(unsigned) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead.")));
double strtod(const char *, char **) __asm("_" "strtod" );
float strtof(const char *, char **) __asm("_" "strtof" );
long strtol(const char *__str, char **__endptr, int __base);
long double
strtold(const char *, char **);
long long
strtoll(const char *__str, char **__endptr, int __base);
unsigned long
strtoul(const char *__str, char **__endptr, int __base);
unsigned long long
strtoull(const char *__str, char **__endptr, int __base);
__attribute__((__availability__(swift, unavailable, message="Use posix_spawn APIs or NSTask instead.")))
__attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable)))
__attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)))
int system(const char *) __asm("_" "system" );
size_t wcstombs(char * , const wchar_t * , size_t);
int wctomb(char *, wchar_t);
void _Exit(int) __attribute__((__noreturn__));
long a64l(const char *);
double drand48(void);
char *ecvt(double, int, int *, int *);
double erand48(unsigned short[3]);
char *fcvt(double, int, int *, int *);
char *gcvt(double, int, char *);
int getsubopt(char **, char * const *, char **);
int grantpt(int);
char *initstate(unsigned, char *, size_t);
long jrand48(unsigned short[3]) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead.")));
char *l64a(long);
void lcong48(unsigned short[7]);
long lrand48(void) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead.")));
char *mktemp(char *);
int mkstemp(char *);
long mrand48(void) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead.")));
long nrand48(unsigned short[3]) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead.")));
int posix_openpt(int);
char *ptsname(int);
int ptsname_r(int fildes, char *buffer, size_t buflen) __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))) __attribute__((availability(tvos,introduced=11.3))) __attribute__((availability(watchos,introduced=4.3)));
int putenv(char *) __asm("_" "putenv" );
long random(void) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead.")));
int rand_r(unsigned *) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead.")));
char *realpath(const char * , char * ) __asm("_" "realpath" "$DARWIN_EXTSN");
unsigned short
*seed48(unsigned short[3]);
int setenv(const char * __name, const char * __value, int __overwrite) __asm("_" "setenv" );
void setkey(const char *) __asm("_" "setkey" );
char *setstate(const char *);
void srand48(long);
void srandom(unsigned);
int unlockpt(int);
int unsetenv(const char *) __asm("_" "unsetenv" );
uint32_t arc4random(void);
void arc4random_addrandom(unsigned char * , int )
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(macosx,deprecated=10.12,message="use arc4random_stir")))
__attribute__((availability(ios,introduced=2.0))) __attribute__((availability(ios,deprecated=10.0,message="use arc4random_stir")))
__attribute__((availability(tvos,introduced=2.0))) __attribute__((availability(tvos,deprecated=10.0,message="use arc4random_stir")))
__attribute__((availability(watchos,introduced=1.0))) __attribute__((availability(watchos,deprecated=3.0,message="use arc4random_stir")));
void arc4random_buf(void * __buf, size_t __nbytes) __attribute__((availability(ios,introduced=4.3)));
void arc4random_stir(void);
uint32_t
arc4random_uniform(uint32_t __upper_bound) __attribute__((availability(ios,introduced=4.3)));
int atexit_b(void (^ _Nonnull)(void)) __attribute__((availability(ios,introduced=3.2)));
void *bsearch_b(const void *__key, const void *__base, size_t __nel,
size_t __width, int (^ _Nonnull __compar)(const void *, const void *)) __attribute__((availability(ios,introduced=3.2)));
char *cgetcap(char *, const char *, int);
int cgetclose(void);
int cgetent(char **, char **, const char *);
int cgetfirst(char **, char **);
int cgetmatch(const char *, const char *);
int cgetnext(char **, char **);
int cgetnum(char *, const char *, long *);
int cgetset(const char *);
int cgetstr(char *, const char *, char **);
int cgetustr(char *, const char *, char **);
int daemon(int, int) __asm("_" "daemon" ) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use posix_spawn APIs instead."))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
char *devname(dev_t, mode_t);
char *devname_r(dev_t, mode_t, char *buf, int len);
char *getbsize(int *, long *);
int getloadavg(double [], int);
const char
*getprogname(void);
void setprogname(const char *);
int heapsort(void *__base, size_t __nel, size_t __width,
int (* _Nonnull __compar)(const void *, const void *));
int heapsort_b(void *__base, size_t __nel, size_t __width,
int (^ _Nonnull __compar)(const void *, const void *) __attribute__((__noescape__)))
__attribute__((availability(ios,introduced=3.2)));
int mergesort(void *__base, size_t __nel, size_t __width,
int (* _Nonnull __compar)(const void *, const void *));
int mergesort_b(void *__base, size_t __nel, size_t __width,
int (^ _Nonnull __compar)(const void *, const void *) __attribute__((__noescape__)))
__attribute__((availability(ios,introduced=3.2)));
void psort(void *__base, size_t __nel, size_t __width,
int (* _Nonnull __compar)(const void *, const void *))
__attribute__((availability(ios,introduced=3.2)));
void psort_b(void *__base, size_t __nel, size_t __width,
int (^ _Nonnull __compar)(const void *, const void *) __attribute__((__noescape__)))
__attribute__((availability(ios,introduced=3.2)));
void psort_r(void *__base, size_t __nel, size_t __width, void *,
int (* _Nonnull __compar)(void *, const void *, const void *))
__attribute__((availability(ios,introduced=3.2)));
void qsort_b(void *__base, size_t __nel, size_t __width,
int (^ _Nonnull __compar)(const void *, const void *) __attribute__((__noescape__)))
__attribute__((availability(ios,introduced=3.2)));
void qsort_r(void *__base, size_t __nel, size_t __width, void *,
int (* _Nonnull __compar)(void *, const void *, const void *));
int radixsort(const unsigned char **__base, int __nel, const unsigned char *__table,
unsigned __endbyte);
int rpmatch(const char *)
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0)));
int sradixsort(const unsigned char **__base, int __nel, const unsigned char *__table,
unsigned __endbyte);
void sranddev(void);
void srandomdev(void);
void *reallocf(void *__ptr, size_t __size) __attribute__((alloc_size(2)));
long long
strtoq(const char *__str, char **__endptr, int __base);
unsigned long long
strtouq(const char *__str, char **__endptr, int __base);
extern char *suboptarg;
}
extern "C" {
void __assert_rtn(const char *, const char *, int, const char *) __attribute__((__noreturn__)) __attribute__((__cold__)) __attribute__((__disable_tail_calls__));
}
typedef __darwin_wint_t wint_t;
typedef struct {
__darwin_rune_t __min;
__darwin_rune_t __max;
__darwin_rune_t __map;
__uint32_t *__types;
} _RuneEntry;
typedef struct {
int __nranges;
_RuneEntry *__ranges;
} _RuneRange;
typedef struct {
char __name[14];
__uint32_t __mask;
} _RuneCharClass;
typedef struct {
char __magic[8];
char __encoding[32];
__darwin_rune_t (*__sgetrune)(const char *, __darwin_size_t, char const **);
int (*__sputrune)(__darwin_rune_t, char *, __darwin_size_t, char **);
__darwin_rune_t __invalid_rune;
__uint32_t __runetype[(1 <<8 )];
__darwin_rune_t __maplower[(1 <<8 )];
__darwin_rune_t __mapupper[(1 <<8 )];
_RuneRange __runetype_ext;
_RuneRange __maplower_ext;
_RuneRange __mapupper_ext;
void *__variable;
int __variable_len;
int __ncharclasses;
_RuneCharClass *__charclasses;
} _RuneLocale;
extern "C" {
extern _RuneLocale _DefaultRuneLocale;
extern _RuneLocale *_CurrentRuneLocale;
}
extern "C" {
unsigned long ___runetype(__darwin_ct_rune_t);
__darwin_ct_rune_t ___tolower(__darwin_ct_rune_t);
__darwin_ct_rune_t ___toupper(__darwin_ct_rune_t);
}
inline int
isascii(int _c)
{
return ((_c & ~0x7F) == 0);
}
extern "C" {
int __maskrune(__darwin_ct_rune_t, unsigned long);
}
inline int
__istype(__darwin_ct_rune_t _c, unsigned long _f)
{
return (isascii(_c) ? !!(_DefaultRuneLocale.__runetype[_c] & _f)
: !!__maskrune(_c, _f));
}
inline __darwin_ct_rune_t
__isctype(__darwin_ct_rune_t _c, unsigned long _f)
{
return (_c < 0 || _c >= (1 <<8 )) ? 0 :
!!(_DefaultRuneLocale.__runetype[_c] & _f);
}
extern "C" {
__darwin_ct_rune_t __toupper(__darwin_ct_rune_t);
__darwin_ct_rune_t __tolower(__darwin_ct_rune_t);
}
inline int
__wcwidth(__darwin_ct_rune_t _c)
{
unsigned int _x;
if (_c == 0)
return (0);
_x = (unsigned int)__maskrune(_c, 0xe0000000L|0x00040000L);
if ((_x & 0xe0000000L) != 0)
return ((_x & 0xe0000000L) >> 30);
return ((_x & 0x00040000L) != 0 ? 1 : -1);
}
inline int
isalnum(int _c)
{
return (__istype(_c, 0x00000100L|0x00000400L));
}
inline int
isalpha(int _c)
{
return (__istype(_c, 0x00000100L));
}
inline int
isblank(int _c)
{
return (__istype(_c, 0x00020000L));
}
inline int
iscntrl(int _c)
{
return (__istype(_c, 0x00000200L));
}
inline int
isdigit(int _c)
{
return (__isctype(_c, 0x00000400L));
}
inline int
isgraph(int _c)
{
return (__istype(_c, 0x00000800L));
}
inline int
islower(int _c)
{
return (__istype(_c, 0x00001000L));
}
inline int
isprint(int _c)
{
return (__istype(_c, 0x00040000L));
}
inline int
ispunct(int _c)
{
return (__istype(_c, 0x00002000L));
}
inline int
isspace(int _c)
{
return (__istype(_c, 0x00004000L));
}
inline int
isupper(int _c)
{
return (__istype(_c, 0x00008000L));
}
inline int
isxdigit(int _c)
{
return (__isctype(_c, 0x00010000L));
}
inline int
toascii(int _c)
{
return (_c & 0x7F);
}
inline int
tolower(int _c)
{
return (__tolower(_c));
}
inline int
toupper(int _c)
{
return (__toupper(_c));
}
inline int
digittoint(int _c)
{
return (__maskrune(_c, 0x0F));
}
inline int
ishexnumber(int _c)
{
return (__istype(_c, 0x00010000L));
}
inline int
isideogram(int _c)
{
return (__istype(_c, 0x00080000L));
}
inline int
isnumber(int _c)
{
return (__istype(_c, 0x00000400L));
}
inline int
isphonogram(int _c)
{
return (__istype(_c, 0x00200000L));
}
inline int
isrune(int _c)
{
return (__istype(_c, 0xFFFFFFF0L));
}
inline int
isspecial(int _c)
{
return (__istype(_c, 0x00100000L));
}
extern "C" {
extern int * __error(void);
}
struct lconv {
char *decimal_point;
char *thousands_sep;
char *grouping;
char *int_curr_symbol;
char *currency_symbol;
char *mon_decimal_point;
char *mon_thousands_sep;
char *mon_grouping;
char *positive_sign;
char *negative_sign;
char int_frac_digits;
char frac_digits;
char p_cs_precedes;
char p_sep_by_space;
char n_cs_precedes;
char n_sep_by_space;
char p_sign_posn;
char n_sign_posn;
char int_p_cs_precedes;
char int_n_cs_precedes;
char int_p_sep_by_space;
char int_n_sep_by_space;
char int_p_sign_posn;
char int_n_sign_posn;
};
extern "C" {
struct lconv *localeconv(void);
}
extern "C" {
char *setlocale(int, const char *);
}
extern "C" {
typedef float float_t;
typedef double double_t;
extern int __math_errhandling(void);
extern int __fpclassifyf(float);
extern int __fpclassifyd(double);
extern int __fpclassifyl(long double);
inline __attribute__ ((__always_inline__)) int __inline_isfinitef(float);
inline __attribute__ ((__always_inline__)) int __inline_isfinited(double);
inline __attribute__ ((__always_inline__)) int __inline_isfinitel(long double);
inline __attribute__ ((__always_inline__)) int __inline_isinff(float);
inline __attribute__ ((__always_inline__)) int __inline_isinfd(double);
inline __attribute__ ((__always_inline__)) int __inline_isinfl(long double);
inline __attribute__ ((__always_inline__)) int __inline_isnanf(float);
inline __attribute__ ((__always_inline__)) int __inline_isnand(double);
inline __attribute__ ((__always_inline__)) int __inline_isnanl(long double);
inline __attribute__ ((__always_inline__)) int __inline_isnormalf(float);
inline __attribute__ ((__always_inline__)) int __inline_isnormald(double);
inline __attribute__ ((__always_inline__)) int __inline_isnormall(long double);
inline __attribute__ ((__always_inline__)) int __inline_signbitf(float);
inline __attribute__ ((__always_inline__)) int __inline_signbitd(double);
inline __attribute__ ((__always_inline__)) int __inline_signbitl(long double);
inline __attribute__ ((__always_inline__)) int __inline_isfinitef(float __x) {
return __x == __x && __builtin_fabsf(__x) != __builtin_inff();
}
inline __attribute__ ((__always_inline__)) int __inline_isfinited(double __x) {
return __x == __x && __builtin_fabs(__x) != __builtin_inf();
}
inline __attribute__ ((__always_inline__)) int __inline_isfinitel(long double __x) {
return __x == __x && __builtin_fabsl(__x) != __builtin_infl();
}
inline __attribute__ ((__always_inline__)) int __inline_isinff(float __x) {
return __builtin_fabsf(__x) == __builtin_inff();
}
inline __attribute__ ((__always_inline__)) int __inline_isinfd(double __x) {
return __builtin_fabs(__x) == __builtin_inf();
}
inline __attribute__ ((__always_inline__)) int __inline_isinfl(long double __x) {
return __builtin_fabsl(__x) == __builtin_infl();
}
inline __attribute__ ((__always_inline__)) int __inline_isnanf(float __x) {
return __x != __x;
}
inline __attribute__ ((__always_inline__)) int __inline_isnand(double __x) {
return __x != __x;
}
inline __attribute__ ((__always_inline__)) int __inline_isnanl(long double __x) {
return __x != __x;
}
inline __attribute__ ((__always_inline__)) int __inline_signbitf(float __x) {
union { float __f; unsigned int __u; } __u;
__u.__f = __x;
return (int)(__u.__u >> 31);
}
inline __attribute__ ((__always_inline__)) int __inline_signbitd(double __x) {
union { double __f; unsigned long long __u; } __u;
__u.__f = __x;
return (int)(__u.__u >> 63);
}
inline __attribute__ ((__always_inline__)) int __inline_signbitl(long double __x) {
union { long double __f; unsigned long long __u;} __u;
__u.__f = __x;
return (int)(__u.__u >> 63);
}
inline __attribute__ ((__always_inline__)) int __inline_isnormalf(float __x) {
return __inline_isfinitef(__x) && __builtin_fabsf(__x) >= 1.17549435e-38F;
}
inline __attribute__ ((__always_inline__)) int __inline_isnormald(double __x) {
return __inline_isfinited(__x) && __builtin_fabs(__x) >= 2.2250738585072014e-308;
}
inline __attribute__ ((__always_inline__)) int __inline_isnormall(long double __x) {
return __inline_isfinitel(__x) && __builtin_fabsl(__x) >= 2.2250738585072014e-308L;
}
extern float acosf(float);
extern double acos(double);
extern long double acosl(long double);
extern float asinf(float);
extern double asin(double);
extern long double asinl(long double);
extern float atanf(float);
extern double atan(double);
extern long double atanl(long double);
extern float atan2f(float, float);
extern double atan2(double, double);
extern long double atan2l(long double, long double);
extern float cosf(float);
extern double cos(double);
extern long double cosl(long double);
extern float sinf(float);
extern double sin(double);
extern long double sinl(long double);
extern float tanf(float);
extern double tan(double);
extern long double tanl(long double);
extern float acoshf(float);
extern double acosh(double);
extern long double acoshl(long double);
extern float asinhf(float);
extern double asinh(double);
extern long double asinhl(long double);
extern float atanhf(float);
extern double atanh(double);
extern long double atanhl(long double);
extern float coshf(float);
extern double cosh(double);
extern long double coshl(long double);
extern float sinhf(float);
extern double sinh(double);
extern long double sinhl(long double);
extern float tanhf(float);
extern double tanh(double);
extern long double tanhl(long double);
extern float expf(float);
extern double exp(double);
extern long double expl(long double);
extern float exp2f(float);
extern double exp2(double);
extern long double exp2l(long double);
extern float expm1f(float);
extern double expm1(double);
extern long double expm1l(long double);
extern float logf(float);
extern double log(double);
extern long double logl(long double);
extern float log10f(float);
extern double log10(double);
extern long double log10l(long double);
extern float log2f(float);
extern double log2(double);
extern long double log2l(long double);
extern float log1pf(float);
extern double log1p(double);
extern long double log1pl(long double);
extern float logbf(float);
extern double logb(double);
extern long double logbl(long double);
extern float modff(float, float *);
extern double modf(double, double *);
extern long double modfl(long double, long double *);
extern float ldexpf(float, int);
extern double ldexp(double, int);
extern long double ldexpl(long double, int);
extern float frexpf(float, int *);
extern double frexp(double, int *);
extern long double frexpl(long double, int *);
extern int ilogbf(float);
extern int ilogb(double);
extern int ilogbl(long double);
extern float scalbnf(float, int);
extern double scalbn(double, int);
extern long double scalbnl(long double, int);
extern float scalblnf(float, long int);
extern double scalbln(double, long int);
extern long double scalblnl(long double, long int);
extern float fabsf(float);
extern double fabs(double);
extern long double fabsl(long double);
extern float cbrtf(float);
extern double cbrt(double);
extern long double cbrtl(long double);
extern float hypotf(float, float);
extern double hypot(double, double);
extern long double hypotl(long double, long double);
extern float powf(float, float);
extern double pow(double, double);
extern long double powl(long double, long double);
extern float sqrtf(float);
extern double sqrt(double);
extern long double sqrtl(long double);
extern float erff(float);
extern double erf(double);
extern long double erfl(long double);
extern float erfcf(float);
extern double erfc(double);
extern long double erfcl(long double);
extern float lgammaf(float);
extern double lgamma(double);
extern long double lgammal(long double);
extern float tgammaf(float);
extern double tgamma(double);
extern long double tgammal(long double);
extern float ceilf(float);
extern double ceil(double);
extern long double ceill(long double);
extern float floorf(float);
extern double floor(double);
extern long double floorl(long double);
extern float nearbyintf(float);
extern double nearbyint(double);
extern long double nearbyintl(long double);
extern float rintf(float);
extern double rint(double);
extern long double rintl(long double);
extern long int lrintf(float);
extern long int lrint(double);
extern long int lrintl(long double);
extern float roundf(float);
extern double round(double);
extern long double roundl(long double);
extern long int lroundf(float);
extern long int lround(double);
extern long int lroundl(long double);
extern long long int llrintf(float);
extern long long int llrint(double);
extern long long int llrintl(long double);
extern long long int llroundf(float);
extern long long int llround(double);
extern long long int llroundl(long double);
extern float truncf(float);
extern double trunc(double);
extern long double truncl(long double);
extern float fmodf(float, float);
extern double fmod(double, double);
extern long double fmodl(long double, long double);
extern float remainderf(float, float);
extern double remainder(double, double);
extern long double remainderl(long double, long double);
extern float remquof(float, float, int *);
extern double remquo(double, double, int *);
extern long double remquol(long double, long double, int *);
extern float copysignf(float, float);
extern double copysign(double, double);
extern long double copysignl(long double, long double);
extern float nanf(const char *);
extern double nan(const char *);
extern long double nanl(const char *);
extern float nextafterf(float, float);
extern double nextafter(double, double);
extern long double nextafterl(long double, long double);
extern double nexttoward(double, long double);
extern float nexttowardf(float, long double);
extern long double nexttowardl(long double, long double);
extern float fdimf(float, float);
extern double fdim(double, double);
extern long double fdiml(long double, long double);
extern float fmaxf(float, float);
extern double fmax(double, double);
extern long double fmaxl(long double, long double);
extern float fminf(float, float);
extern double fmin(double, double);
extern long double fminl(long double, long double);
extern float fmaf(float, float, float);
extern double fma(double, double, double);
extern long double fmal(long double, long double, long double);
extern float __inff(void)
__attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="use `(float)INFINITY` instead"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern double __inf(void)
__attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="use `INFINITY` instead"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern long double __infl(void)
__attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="use `(long double)INFINITY` instead"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern float __nan(void)
__attribute__((availability(macos,introduced=10.0,deprecated=10.14,message="use `NAN` instead"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern float __exp10f(float) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0)));
extern double __exp10(double) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0)));
inline __attribute__ ((__always_inline__)) void __sincosf(float __x, float *__sinp, float *__cosp);
inline __attribute__ ((__always_inline__)) void __sincos(double __x, double *__sinp, double *__cosp);
extern float __cospif(float) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0)));
extern double __cospi(double) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0)));
extern float __sinpif(float) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0)));
extern double __sinpi(double) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0)));
extern float __tanpif(float) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0)));
extern double __tanpi(double) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0)));
inline __attribute__ ((__always_inline__)) void __sincospif(float __x, float *__sinp, float *__cosp);
inline __attribute__ ((__always_inline__)) void __sincospi(double __x, double *__sinp, double *__cosp);
struct __float2 { float __sinval; float __cosval; };
struct __double2 { double __sinval; double __cosval; };
extern struct __float2 __sincosf_stret(float);
extern struct __double2 __sincos_stret(double);
extern struct __float2 __sincospif_stret(float);
extern struct __double2 __sincospi_stret(double);
inline __attribute__ ((__always_inline__)) void __sincosf(float __x, float *__sinp, float *__cosp) {
const struct __float2 __stret = __sincosf_stret(__x);
*__sinp = __stret.__sinval; *__cosp = __stret.__cosval;
}
inline __attribute__ ((__always_inline__)) void __sincos(double __x, double *__sinp, double *__cosp) {
const struct __double2 __stret = __sincos_stret(__x);
*__sinp = __stret.__sinval; *__cosp = __stret.__cosval;
}
inline __attribute__ ((__always_inline__)) void __sincospif(float __x, float *__sinp, float *__cosp) {
const struct __float2 __stret = __sincospif_stret(__x);
*__sinp = __stret.__sinval; *__cosp = __stret.__cosval;
}
inline __attribute__ ((__always_inline__)) void __sincospi(double __x, double *__sinp, double *__cosp) {
const struct __double2 __stret = __sincospi_stret(__x);
*__sinp = __stret.__sinval; *__cosp = __stret.__cosval;
}
extern double j0(double) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.2)));
extern double j1(double) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.2)));
extern double jn(int, double) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.2)));
extern double y0(double) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.2)));
extern double y1(double) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.2)));
extern double yn(int, double) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.2)));
extern double scalb(double, double);
extern int signgam;
extern long int rinttol(double)
__attribute__((availability(macos,introduced=10.0,deprecated=10.9,replacement="lrint"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern long int roundtol(double)
__attribute__((availability(macos,introduced=10.0,deprecated=10.9,replacement="lround"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern double drem(double, double)
__attribute__((availability(macos,introduced=10.0,deprecated=10.9,replacement="remainder"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern int finite(double)
__attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Use `isfinite((double)x)` instead."))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern double gamma(double)
__attribute__((availability(macos,introduced=10.0,deprecated=10.9,replacement="tgamma"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern double significand(double)
__attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Use `2*frexp( )` or `scalbn(x, -ilogb(x))` instead."))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
}
typedef int jmp_buf[((14 + 8 + 2) * 2)];
typedef int sigjmp_buf[((14 + 8 + 2) * 2) + 1];
extern "C" {
extern int setjmp(jmp_buf);
extern void longjmp(jmp_buf, int) __attribute__((__noreturn__));
int _setjmp(jmp_buf);
void _longjmp(jmp_buf, int) __attribute__((__noreturn__));
int sigsetjmp(sigjmp_buf, int);
void siglongjmp(sigjmp_buf, int) __attribute__((__noreturn__));
void longjmperror(void);
}
extern const char *const sys_signame[32];
extern const char *const sys_siglist[32];
extern "C" {
int raise(int);
}
extern "C" {
void (* _Nullable bsd_signal(int, void (* _Nullable)(int)))(int);
int kill(pid_t, int) __asm("_" "kill" );
int killpg(pid_t, int) __asm("_" "killpg" );
int pthread_kill(pthread_t, int);
int pthread_sigmask(int, const sigset_t *, sigset_t *) __asm("_" "pthread_sigmask" );
int sigaction(int, const struct sigaction * ,
struct sigaction * );
int sigaddset(sigset_t *, int);
int sigaltstack(const stack_t * , stack_t * ) __asm("_" "sigaltstack" ) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
int sigdelset(sigset_t *, int);
int sigemptyset(sigset_t *);
int sigfillset(sigset_t *);
int sighold(int);
int sigignore(int);
int siginterrupt(int, int);
int sigismember(const sigset_t *, int);
int sigpause(int) __asm("_" "sigpause" );
int sigpending(sigset_t *);
int sigprocmask(int, const sigset_t * , sigset_t * );
int sigrelse(int);
void (* _Nullable sigset(int, void (* _Nullable)(int)))(int);
int sigsuspend(const sigset_t *) __asm("_" "sigsuspend" );
int sigwait(const sigset_t * , int * ) __asm("_" "sigwait" );
void psignal(unsigned int, const char *);
int sigblock(int);
int sigsetmask(int);
int sigvec(int, struct sigvec *, struct sigvec *);
}
typedef long int ptrdiff_t;
typedef __darwin_va_list va_list;
extern "C" {
int renameat(int, const char *, int, const char *) __attribute__((availability(ios,introduced=8.0)));
int renamex_np(const char *, const char *, unsigned int) __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
int renameatx_np(int, const char *, int, const char *, unsigned int) __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
}
typedef __darwin_off_t fpos_t;
struct __sbuf {
unsigned char *_base;
int _size;
};
struct __sFILEX;
typedef struct __sFILE {
unsigned char *_p;
int _r;
int _w;
short _flags;
short _file;
struct __sbuf _bf;
int _lbfsize;
void *_cookie;
int (* _Nullable _close)(void *);
int (* _Nullable _read) (void *, char *, int);
fpos_t (* _Nullable _seek) (void *, fpos_t, int);
int (* _Nullable _write)(void *, const char *, int);
struct __sbuf _ub;
struct __sFILEX *_extra;
int _ur;
unsigned char _ubuf[3];
unsigned char _nbuf[1];
struct __sbuf _lb;
int _blksize;
fpos_t _offset;
} FILE;
extern "C" {
extern FILE *__stdinp;
extern FILE *__stdoutp;
extern FILE *__stderrp;
}
extern "C" {
void clearerr(FILE *);
int fclose(FILE *);
int feof(FILE *);
int ferror(FILE *);
int fflush(FILE *);
int fgetc(FILE *);
int fgetpos(FILE * , fpos_t *);
char *fgets(char * , int, FILE *);
FILE *fopen(const char * __filename, const char * __mode) __asm("_" "fopen" );
int fprintf(FILE * , const char * , ...) __attribute__((__format__ (__printf__, 2, 3)));
int fputc(int, FILE *);
int fputs(const char * , FILE * ) __asm("_" "fputs" );
size_t fread(void * __ptr, size_t __size, size_t __nitems, FILE * __stream);
FILE *freopen(const char * , const char * ,
FILE * ) __asm("_" "freopen" );
int fscanf(FILE * , const char * , ...) __attribute__((__format__ (__scanf__, 2, 3)));
int fseek(FILE *, long, int);
int fsetpos(FILE *, const fpos_t *);
long ftell(FILE *);
size_t fwrite(const void * __ptr, size_t __size, size_t __nitems, FILE * __stream) __asm("_" "fwrite" );
int getc(FILE *);
int getchar(void);
char *gets(char *);
void perror(const char *) __attribute__((__cold__));
int printf(const char * , ...) __attribute__((__format__ (__printf__, 1, 2)));
int putc(int, FILE *);
int putchar(int);
int puts(const char *);
int remove(const char *);
int rename (const char *__old, const char *__new);
void rewind(FILE *);
int scanf(const char * , ...) __attribute__((__format__ (__scanf__, 1, 2)));
void setbuf(FILE * , char * );
int setvbuf(FILE * , char * , int, size_t);
int sprintf(char * , const char * , ...) __attribute__((__format__ (__printf__, 2, 3))) __attribute__((__availability__(swift, unavailable, message="Use snprintf instead.")));
int sscanf(const char * , const char * , ...) __attribute__((__format__ (__scanf__, 2, 3)));
FILE *tmpfile(void);
__attribute__((__availability__(swift, unavailable, message="Use mkstemp(3) instead.")))
__attribute__((__deprecated__("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of tmpnam(3), it is highly recommended that you use mkstemp(3) instead.")))
char *tmpnam(char *);
int ungetc(int, FILE *);
int vfprintf(FILE * , const char * , va_list) __attribute__((__format__ (__printf__, 2, 0)));
int vprintf(const char * , va_list) __attribute__((__format__ (__printf__, 1, 0)));
int vsprintf(char * , const char * , va_list) __attribute__((__format__ (__printf__, 2, 0))) __attribute__((__availability__(swift, unavailable, message="Use vsnprintf instead.")));
}
extern "C" {
char *ctermid(char *);
FILE *fdopen(int, const char *) __asm("_" "fdopen" );
int fileno(FILE *);
}
extern "C" {
int pclose(FILE *) __attribute__((__availability__(swift, unavailable, message="Use posix_spawn APIs or NSTask instead.")));
FILE *popen(const char *, const char *) __asm("_" "popen" ) __attribute__((__availability__(swift, unavailable, message="Use posix_spawn APIs or NSTask instead.")));
}
extern "C" {
int __srget(FILE *);
int __svfscanf(FILE *, const char *, va_list) __attribute__((__format__ (__scanf__, 2, 0)));
int __swbuf(int, FILE *);
}
inline __attribute__ ((__always_inline__)) int __sputc(int _c, FILE *_p) {
if (--_p->_w >= 0 || (_p->_w >= _p->_lbfsize && (char)_c != '\n'))
return (*_p->_p++ = _c);
else
return (__swbuf(_c, _p));
}
extern "C" {
void flockfile(FILE *);
int ftrylockfile(FILE *);
void funlockfile(FILE *);
int getc_unlocked(FILE *);
int getchar_unlocked(void);
int putc_unlocked(int, FILE *);
int putchar_unlocked(int);
int getw(FILE *);
int putw(int, FILE *);
__attribute__((__availability__(swift, unavailable, message="Use mkstemp(3) instead.")))
__attribute__((__deprecated__("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of tempnam(3), it is highly recommended that you use mkstemp(3) instead.")))
char *tempnam(const char *__dir, const char *__prefix) __asm("_" "tempnam" );
}
extern "C" {
int fseeko(FILE * __stream, off_t __offset, int __whence);
off_t ftello(FILE * __stream);
}
extern "C" {
int snprintf(char * __str, size_t __size, const char * __format, ...) __attribute__((__format__ (__printf__, 3, 4)));
int vfscanf(FILE * __stream, const char * __format, va_list) __attribute__((__format__ (__scanf__, 2, 0)));
int vscanf(const char * __format, va_list) __attribute__((__format__ (__scanf__, 1, 0)));
int vsnprintf(char * __str, size_t __size, const char * __format, va_list) __attribute__((__format__ (__printf__, 3, 0)));
int vsscanf(const char * __str, const char * __format, va_list) __attribute__((__format__ (__scanf__, 2, 0)));
}
extern "C" {
int dprintf(int, const char * , ...) __attribute__((__format__ (__printf__, 2, 3))) __attribute__((availability(ios,introduced=4.3)));
int vdprintf(int, const char * , va_list) __attribute__((__format__ (__printf__, 2, 0))) __attribute__((availability(ios,introduced=4.3)));
ssize_t getdelim(char ** __linep, size_t * __linecapp, int __delimiter, FILE * __stream) __attribute__((availability(ios,introduced=4.3)));
ssize_t getline(char ** __linep, size_t * __linecapp, FILE * __stream) __attribute__((availability(ios,introduced=4.3)));
FILE *fmemopen(void * __buf, size_t __size, const char * __mode) __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
FILE *open_memstream(char **__bufp, size_t *__sizep) __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
}
extern "C" {
extern const int sys_nerr;
extern const char *const sys_errlist[];
int asprintf(char ** , const char * , ...) __attribute__((__format__ (__printf__, 2, 3)));
char *ctermid_r(char *);
char *fgetln(FILE *, size_t *);
const char *fmtcheck(const char *, const char *);
int fpurge(FILE *);
void setbuffer(FILE *, char *, int);
int setlinebuf(FILE *);
int vasprintf(char ** , const char * , va_list) __attribute__((__format__ (__printf__, 2, 0)));
FILE *zopen(const char *, const char *, int);
FILE *funopen(const void *,
int (* _Nullable)(void *, char *, int),
int (* _Nullable)(void *, const char *, int),
fpos_t (* _Nullable)(void *, fpos_t, int),
int (* _Nullable)(void *));
}
extern "C" {
void *memchr(const void *__s, int __c, size_t __n);
int memcmp(const void *__s1, const void *__s2, size_t __n);
void *memcpy(void *__dst, const void *__src, size_t __n);
void *memmove(void *__dst, const void *__src, size_t __len);
void *memset(void *__b, int __c, size_t __len);
char *strcat(char *__s1, const char *__s2);
char *strchr(const char *__s, int __c);
int strcmp(const char *__s1, const char *__s2);
int strcoll(const char *__s1, const char *__s2);
char *strcpy(char *__dst, const char *__src);
size_t strcspn(const char *__s, const char *__charset);
char *strerror(int __errnum) __asm("_" "strerror" );
size_t strlen(const char *__s);
char *strncat(char *__s1, const char *__s2, size_t __n);
int strncmp(const char *__s1, const char *__s2, size_t __n);
char *strncpy(char *__dst, const char *__src, size_t __n);
char *strpbrk(const char *__s, const char *__charset);
char *strrchr(const char *__s, int __c);
size_t strspn(const char *__s, const char *__charset);
char *strstr(const char *__big, const char *__little);
char *strtok(char *__str, const char *__sep);
size_t strxfrm(char *__s1, const char *__s2, size_t __n);
}
extern "C" {
char *strtok_r(char *__str, const char *__sep, char **__lasts);
}
extern "C" {
int strerror_r(int __errnum, char *__strerrbuf, size_t __buflen);
char *strdup(const char *__s1);
void *memccpy(void *__dst, const void *__src, int __c, size_t __n);
}
extern "C" {
char *stpcpy(char *__dst, const char *__src);
char *stpncpy(char *__dst, const char *__src, size_t __n) __attribute__((availability(ios,introduced=4.3)));
char *strndup(const char *__s1, size_t __n) __attribute__((availability(ios,introduced=4.3)));
size_t strnlen(const char *__s1, size_t __n) __attribute__((availability(ios,introduced=4.3)));
char *strsignal(int __sig);
}
extern "C" {
errno_t memset_s(void *__s, rsize_t __smax, int __c, rsize_t __n) __attribute__((availability(ios,introduced=7.0)));
}
extern "C" {
void *memmem(const void *__big, size_t __big_len, const void *__little, size_t __little_len) __attribute__((availability(ios,introduced=4.3)));
void memset_pattern4(void *__b, const void *__pattern4, size_t __len) __attribute__((availability(ios,introduced=3.0)));
void memset_pattern8(void *__b, const void *__pattern8, size_t __len) __attribute__((availability(ios,introduced=3.0)));
void memset_pattern16(void *__b, const void *__pattern16, size_t __len) __attribute__((availability(ios,introduced=3.0)));
char *strcasestr(const char *__big, const char *__little);
char *strnstr(const char *__big, const char *__little, size_t __len);
size_t strlcat(char *__dst, const char *__source, size_t __size);
size_t strlcpy(char *__dst, const char *__source, size_t __size);
void strmode(int __mode, char *__bp);
char *strsep(char **__stringp, const char *__delim);
void swab(const void * , void * , ssize_t);
__attribute__((availability(macosx,introduced=10.12.1))) __attribute__((availability(ios,introduced=10.1)))
__attribute__((availability(tvos,introduced=10.0.1))) __attribute__((availability(watchos,introduced=3.1)))
int timingsafe_bcmp(const void *__b1, const void *__b2, size_t __len);
}
extern "C" {
int bcmp(const void *, const void *, size_t) ;
void bcopy(const void *, void *, size_t) ;
void bzero(void *, size_t) ;
char *index(const char *, int) ;
char *rindex(const char *, int) ;
int ffs(int);
int strcasecmp(const char *, const char *);
int strncasecmp(const char *, const char *, size_t);
}
extern "C" {
int ffsl(long) __attribute__((availability(ios,introduced=2.0)));
int ffsll(long long) __attribute__((availability(ios,introduced=7.0)));
int fls(int) __attribute__((availability(ios,introduced=2.0)));
int flsl(long) __attribute__((availability(ios,introduced=2.0)));
int flsll(long long) __attribute__((availability(ios,introduced=7.0)));
}
struct timespec
{
__darwin_time_t tv_sec;
long tv_nsec;
};
struct tm {
int tm_sec;
int tm_min;
int tm_hour;
int tm_mday;
int tm_mon;
int tm_year;
int tm_wday;
int tm_yday;
int tm_isdst;
long tm_gmtoff;
char *tm_zone;
};
extern char *tzname[];
extern int getdate_err;
extern long timezone __asm("_" "timezone" );
extern int daylight;
extern "C" {
char *asctime(const struct tm *);
clock_t clock(void) __asm("_" "clock" );
char *ctime(const time_t *);
double difftime(time_t, time_t);
struct tm *getdate(const char *);
struct tm *gmtime(const time_t *);
struct tm *localtime(const time_t *);
time_t mktime(struct tm *) __asm("_" "mktime" );
size_t strftime(char * , size_t, const char * , const struct tm * ) __asm("_" "strftime" );
char *strptime(const char * , const char * , struct tm * ) __asm("_" "strptime" );
time_t time(time_t *);
void tzset(void);
char *asctime_r(const struct tm * , char * );
char *ctime_r(const time_t *, char *);
struct tm *gmtime_r(const time_t * , struct tm * );
struct tm *localtime_r(const time_t * , struct tm * );
time_t posix2time(time_t);
void tzsetwall(void);
time_t time2posix(time_t);
time_t timelocal(struct tm * const);
time_t timegm(struct tm * const);
int nanosleep(const struct timespec *__rqtp, struct timespec *__rmtp) __asm("_" "nanosleep" );
typedef enum {
_CLOCK_REALTIME __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 0,
_CLOCK_MONOTONIC __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 6,
_CLOCK_MONOTONIC_RAW __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 4,
_CLOCK_MONOTONIC_RAW_APPROX __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 5,
_CLOCK_UPTIME_RAW __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 8,
_CLOCK_UPTIME_RAW_APPROX __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 9,
_CLOCK_PROCESS_CPUTIME_ID __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 12,
_CLOCK_THREAD_CPUTIME_ID __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 16
} clockid_t;
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)))
int clock_getres(clockid_t __clock_id, struct timespec *__res);
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)))
int clock_gettime(clockid_t __clock_id, struct timespec *__tp);
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)))
__uint64_t clock_gettime_nsec_np(clockid_t __clock_id);
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,unavailable)))
__attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable)))
int clock_settime(clockid_t __clock_id, const struct timespec *__tp);
}
extern "C" {
extern "C" void *_Block_copy(const void *aBlock)
__attribute__((availability(ios,introduced=3.2)));
extern "C" void _Block_release(const void *aBlock)
__attribute__((availability(ios,introduced=3.2)));
extern "C" void _Block_object_assign(void *, const void *, const int)
__attribute__((availability(ios,introduced=3.2)));
extern "C" void _Block_object_dispose(const void *, const int)
__attribute__((availability(ios,introduced=3.2)));
extern "C" void * _NSConcreteGlobalBlock[32]
__attribute__((availability(ios,introduced=3.2)));
extern "C" void * _NSConcreteStackBlock[32]
__attribute__((availability(ios,introduced=3.2)));
}
extern "C" {
#pragma pack(push, 2)
typedef unsigned char UInt8;
typedef signed char SInt8;
typedef unsigned short UInt16;
typedef signed short SInt16;
typedef unsigned int UInt32;
typedef signed int SInt32;
struct wide {
UInt32 lo;
SInt32 hi;
};
typedef struct wide wide;
struct UnsignedWide {
UInt32 lo;
UInt32 hi;
};
typedef struct UnsignedWide UnsignedWide;
typedef signed long long SInt64;
typedef unsigned long long UInt64;
typedef SInt32 Fixed;
typedef Fixed * FixedPtr;
typedef SInt32 Fract;
typedef Fract * FractPtr;
typedef UInt32 UnsignedFixed;
typedef UnsignedFixed * UnsignedFixedPtr;
typedef short ShortFixed;
typedef ShortFixed * ShortFixedPtr;
typedef float Float32;
typedef double Float64;
struct Float80 {
SInt16 exp;
UInt16 man[4];
};
typedef struct Float80 Float80;
struct Float96 {
SInt16 exp[2];
UInt16 man[4];
};
typedef struct Float96 Float96;
struct Float32Point {
Float32 x;
Float32 y;
};
typedef struct Float32Point Float32Point;
typedef char * Ptr;
typedef Ptr * Handle;
typedef long Size;
typedef SInt16 OSErr;
typedef SInt32 OSStatus;
typedef void * LogicalAddress;
typedef const void * ConstLogicalAddress;
typedef void * PhysicalAddress;
typedef UInt8 * BytePtr;
typedef unsigned long ByteCount;
typedef unsigned long ByteOffset;
typedef SInt32 Duration;
typedef UnsignedWide AbsoluteTime;
typedef UInt32 OptionBits;
typedef unsigned long ItemCount;
typedef UInt32 PBVersion;
typedef SInt16 ScriptCode;
typedef SInt16 LangCode;
typedef SInt16 RegionCode;
typedef UInt32 FourCharCode;
typedef FourCharCode OSType;
typedef FourCharCode ResType;
typedef OSType * OSTypePtr;
typedef ResType * ResTypePtr;
typedef unsigned char Boolean;
typedef long ( * ProcPtr)(void);
typedef void ( * Register68kProcPtr)(void);
typedef ProcPtr UniversalProcPtr;
typedef ProcPtr * ProcHandle;
typedef UniversalProcPtr * UniversalProcHandle;
typedef void * PRefCon;
typedef void * URefCon;
typedef void * SRefCon;
enum {
noErr = 0
};
enum {
kNilOptions = 0
};
enum {
kVariableLengthArray
__attribute__((deprecated))
= 1
};
enum {
kUnknownType = 0x3F3F3F3F
};
typedef UInt32 UnicodeScalarValue;
typedef UInt32 UTF32Char;
typedef UInt16 UniChar;
typedef UInt16 UTF16Char;
typedef UInt8 UTF8Char;
typedef UniChar * UniCharPtr;
typedef unsigned long UniCharCount;
typedef UniCharCount * UniCharCountPtr;
typedef unsigned char Str255[256];
typedef unsigned char Str63[64];
typedef unsigned char Str32[33];
typedef unsigned char Str31[32];
typedef unsigned char Str27[28];
typedef unsigned char Str15[16];
typedef unsigned char Str32Field[34];
typedef Str63 StrFileName;
typedef unsigned char * StringPtr;
typedef StringPtr * StringHandle;
typedef const unsigned char * ConstStringPtr;
typedef const unsigned char * ConstStr255Param;
typedef const unsigned char * ConstStr63Param;
typedef const unsigned char * ConstStr32Param;
typedef const unsigned char * ConstStr31Param;
typedef const unsigned char * ConstStr27Param;
typedef const unsigned char * ConstStr15Param;
typedef ConstStr63Param ConstStrFileNameParam;
inline unsigned char StrLength(ConstStr255Param string) { return (*string); }
struct ProcessSerialNumber {
UInt32 highLongOfPSN;
UInt32 lowLongOfPSN;
};
typedef struct ProcessSerialNumber ProcessSerialNumber;
typedef ProcessSerialNumber * ProcessSerialNumberPtr;
struct Point {
short v;
short h;
};
typedef struct Point Point;
typedef Point * PointPtr;
struct Rect {
short top;
short left;
short bottom;
short right;
};
typedef struct Rect Rect;
typedef Rect * RectPtr;
struct FixedPoint {
Fixed x;
Fixed y;
};
typedef struct FixedPoint FixedPoint;
struct FixedRect {
Fixed left;
Fixed top;
Fixed right;
Fixed bottom;
};
typedef struct FixedRect FixedRect;
typedef short CharParameter;
enum {
normal = 0,
bold = 1,
italic = 2,
underline = 4,
outline = 8,
shadow = 0x10,
condense = 0x20,
extend = 0x40
};
typedef unsigned char Style;
typedef short StyleParameter;
typedef Style StyleField;
typedef SInt32 TimeValue;
typedef SInt32 TimeScale;
typedef wide CompTimeValue;
typedef SInt64 TimeValue64;
typedef struct TimeBaseRecord* TimeBase;
struct TimeRecord {
CompTimeValue value;
TimeScale scale;
TimeBase base;
};
typedef struct TimeRecord TimeRecord;
struct NumVersion {
UInt8 nonRelRev;
UInt8 stage;
UInt8 minorAndBugRev;
UInt8 majorRev;
};
typedef struct NumVersion NumVersion;
enum {
developStage = 0x20,
alphaStage = 0x40,
betaStage = 0x60,
finalStage = 0x80
};
union NumVersionVariant {
NumVersion parts;
UInt32 whole;
};
typedef union NumVersionVariant NumVersionVariant;
typedef NumVersionVariant * NumVersionVariantPtr;
typedef NumVersionVariantPtr * NumVersionVariantHandle;
struct VersRec {
NumVersion numericVersion;
short countryCode;
Str255 shortVersion;
Str255 reserved;
};
typedef struct VersRec VersRec;
typedef VersRec * VersRecPtr;
typedef VersRecPtr * VersRecHndl;
typedef UInt8 Byte;
typedef SInt8 SignedByte;
typedef wide * WidePtr;
typedef UnsignedWide * UnsignedWidePtr;
typedef Float80 extended80;
typedef Float96 extended96;
typedef SInt8 VHSelect;
extern void
Debugger(void) __attribute__((availability(ios,unavailable)));
extern void
DebugStr(ConstStr255Param debuggerMsg) __attribute__((availability(ios,unavailable)));
extern void
SysBreak(void) __attribute__((availability(ios,unavailable)));
extern void
SysBreakStr(ConstStr255Param debuggerMsg) __attribute__((availability(ios,unavailable)));
extern void
SysBreakFunc(ConstStr255Param debuggerMsg) __attribute__((availability(ios,unavailable)));
#pragma pack(pop)
}
extern "C" {
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
// @class NSAttributedString;
#ifndef _REWRITER_typedef_NSAttributedString
#define _REWRITER_typedef_NSAttributedString
typedef struct objc_object NSAttributedString;
typedef struct {} _objc_exc_NSAttributedString;
#endif
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
// @class NSNull;
#ifndef _REWRITER_typedef_NSNull
#define _REWRITER_typedef_NSNull
typedef struct objc_object NSNull;
typedef struct {} _objc_exc_NSNull;
#endif
// @class NSCharacterSet;
#ifndef _REWRITER_typedef_NSCharacterSet
#define _REWRITER_typedef_NSCharacterSet
typedef struct objc_object NSCharacterSet;
typedef struct {} _objc_exc_NSCharacterSet;
#endif
// @class NSData;
#ifndef _REWRITER_typedef_NSData
#define _REWRITER_typedef_NSData
typedef struct objc_object NSData;
typedef struct {} _objc_exc_NSData;
#endif
// @class NSDate;
#ifndef _REWRITER_typedef_NSDate
#define _REWRITER_typedef_NSDate
typedef struct objc_object NSDate;
typedef struct {} _objc_exc_NSDate;
#endif
// @class NSTimeZone;
#ifndef _REWRITER_typedef_NSTimeZone
#define _REWRITER_typedef_NSTimeZone
typedef struct objc_object NSTimeZone;
typedef struct {} _objc_exc_NSTimeZone;
#endif
// @class NSDictionary;
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
// @class NSError;
#ifndef _REWRITER_typedef_NSError
#define _REWRITER_typedef_NSError
typedef struct objc_object NSError;
typedef struct {} _objc_exc_NSError;
#endif
// @class NSLocale;
#ifndef _REWRITER_typedef_NSLocale
#define _REWRITER_typedef_NSLocale
typedef struct objc_object NSLocale;
typedef struct {} _objc_exc_NSLocale;
#endif
// @class NSNumber;
#ifndef _REWRITER_typedef_NSNumber
#define _REWRITER_typedef_NSNumber
typedef struct objc_object NSNumber;
typedef struct {} _objc_exc_NSNumber;
#endif
// @class NSSet;
#ifndef _REWRITER_typedef_NSSet
#define _REWRITER_typedef_NSSet
typedef struct objc_object NSSet;
typedef struct {} _objc_exc_NSSet;
#endif
// @class NSURL;
#ifndef _REWRITER_typedef_NSURL
#define _REWRITER_typedef_NSURL
typedef struct objc_object NSURL;
typedef struct {} _objc_exc_NSURL;
#endif
extern double kCFCoreFoundationVersionNumber;
typedef unsigned long CFTypeID;
typedef unsigned long CFOptionFlags;
typedef unsigned long CFHashCode;
typedef signed long CFIndex;
typedef const __attribute__((objc_bridge(id))) void * CFTypeRef;
typedef const struct __attribute__((objc_bridge(NSString))) __CFString * CFStringRef;
typedef struct __attribute__((objc_bridge_mutable(NSMutableString))) __CFString * CFMutableStringRef;
typedef __attribute__((objc_bridge(id))) CFTypeRef CFPropertyListRef;
typedef CFIndex CFComparisonResult; enum {
kCFCompareLessThan = -1L,
kCFCompareEqualTo = 0,
kCFCompareGreaterThan = 1
};
typedef CFComparisonResult (*CFComparatorFunction)(const void *val1, const void *val2, void *context);
static const CFIndex kCFNotFound = -1;
typedef struct {
CFIndex location;
CFIndex length;
} CFRange;
static __inline__ __attribute__((always_inline)) CFRange CFRangeMake(CFIndex loc, CFIndex len) {
CFRange range;
range.location = loc;
range.length = len;
return range;
}
extern
CFRange __CFRangeMake(CFIndex loc, CFIndex len);
typedef const struct __attribute__((objc_bridge(NSNull))) __CFNull * CFNullRef;
extern
CFTypeID CFNullGetTypeID(void);
extern
const CFNullRef kCFNull;
typedef const struct __attribute__((objc_bridge(id))) __CFAllocator * CFAllocatorRef;
extern
const CFAllocatorRef kCFAllocatorDefault;
extern
const CFAllocatorRef kCFAllocatorSystemDefault;
extern
const CFAllocatorRef kCFAllocatorMalloc;
extern
const CFAllocatorRef kCFAllocatorMallocZone;
extern
const CFAllocatorRef kCFAllocatorNull;
extern
const CFAllocatorRef kCFAllocatorUseContext;
typedef const void * (*CFAllocatorRetainCallBack)(const void *info);
typedef void (*CFAllocatorReleaseCallBack)(const void *info);
typedef CFStringRef (*CFAllocatorCopyDescriptionCallBack)(const void *info);
typedef void * (*CFAllocatorAllocateCallBack)(CFIndex allocSize, CFOptionFlags hint, void *info);
typedef void * (*CFAllocatorReallocateCallBack)(void *ptr, CFIndex newsize, CFOptionFlags hint, void *info);
typedef void (*CFAllocatorDeallocateCallBack)(void *ptr, void *info);
typedef CFIndex (*CFAllocatorPreferredSizeCallBack)(CFIndex size, CFOptionFlags hint, void *info);
typedef struct {
CFIndex version;
void * info;
CFAllocatorRetainCallBack retain;
CFAllocatorReleaseCallBack release;
CFAllocatorCopyDescriptionCallBack copyDescription;
CFAllocatorAllocateCallBack allocate;
CFAllocatorReallocateCallBack reallocate;
CFAllocatorDeallocateCallBack deallocate;
CFAllocatorPreferredSizeCallBack preferredSize;
} CFAllocatorContext;
extern
CFTypeID CFAllocatorGetTypeID(void);
extern
void CFAllocatorSetDefault(CFAllocatorRef allocator);
extern
CFAllocatorRef CFAllocatorGetDefault(void);
extern
CFAllocatorRef CFAllocatorCreate(CFAllocatorRef allocator, CFAllocatorContext *context);
extern
void *CFAllocatorAllocate(CFAllocatorRef allocator, CFIndex size, CFOptionFlags hint);
extern
void *CFAllocatorReallocate(CFAllocatorRef allocator, void *ptr, CFIndex newsize, CFOptionFlags hint);
extern
void CFAllocatorDeallocate(CFAllocatorRef allocator, void *ptr);
extern
CFIndex CFAllocatorGetPreferredSizeForSize(CFAllocatorRef allocator, CFIndex size, CFOptionFlags hint);
extern
void CFAllocatorGetContext(CFAllocatorRef allocator, CFAllocatorContext *context);
extern
CFTypeID CFGetTypeID(CFTypeRef cf);
extern
CFStringRef CFCopyTypeIDDescription(CFTypeID type_id);
extern
CFTypeRef CFRetain(CFTypeRef cf);
extern
void CFRelease(CFTypeRef cf);
extern
CFTypeRef CFAutorelease(CFTypeRef __attribute__((cf_consumed)) arg) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFIndex CFGetRetainCount(CFTypeRef cf);
extern
Boolean CFEqual(CFTypeRef cf1, CFTypeRef cf2);
extern
CFHashCode CFHash(CFTypeRef cf);
extern
CFStringRef CFCopyDescription(CFTypeRef cf);
extern
CFAllocatorRef CFGetAllocator(CFTypeRef cf);
extern
CFTypeRef CFMakeCollectable(CFTypeRef cf) ;
}
extern "C" {
typedef const void * (*CFArrayRetainCallBack)(CFAllocatorRef allocator, const void *value);
typedef void (*CFArrayReleaseCallBack)(CFAllocatorRef allocator, const void *value);
typedef CFStringRef (*CFArrayCopyDescriptionCallBack)(const void *value);
typedef Boolean (*CFArrayEqualCallBack)(const void *value1, const void *value2);
typedef struct {
CFIndex version;
CFArrayRetainCallBack retain;
CFArrayReleaseCallBack release;
CFArrayCopyDescriptionCallBack copyDescription;
CFArrayEqualCallBack equal;
} CFArrayCallBacks;
extern
const CFArrayCallBacks kCFTypeArrayCallBacks;
typedef void (*CFArrayApplierFunction)(const void *value, void *context);
typedef const struct __attribute__((objc_bridge(NSArray))) __CFArray * CFArrayRef;
typedef struct __attribute__((objc_bridge_mutable(NSMutableArray))) __CFArray * CFMutableArrayRef;
extern
CFTypeID CFArrayGetTypeID(void);
extern
CFArrayRef CFArrayCreate(CFAllocatorRef allocator, const void **values, CFIndex numValues, const CFArrayCallBacks *callBacks);
extern
CFArrayRef CFArrayCreateCopy(CFAllocatorRef allocator, CFArrayRef theArray);
extern
CFMutableArrayRef CFArrayCreateMutable(CFAllocatorRef allocator, CFIndex capacity, const CFArrayCallBacks *callBacks);
extern
CFMutableArrayRef CFArrayCreateMutableCopy(CFAllocatorRef allocator, CFIndex capacity, CFArrayRef theArray);
extern
CFIndex CFArrayGetCount(CFArrayRef theArray);
extern
CFIndex CFArrayGetCountOfValue(CFArrayRef theArray, CFRange range, const void *value);
extern
Boolean CFArrayContainsValue(CFArrayRef theArray, CFRange range, const void *value);
extern
const void *CFArrayGetValueAtIndex(CFArrayRef theArray, CFIndex idx);
extern
void CFArrayGetValues(CFArrayRef theArray, CFRange range, const void **values);
extern
void CFArrayApplyFunction(CFArrayRef theArray, CFRange range, CFArrayApplierFunction __attribute__((noescape)) applier, void *context);
extern
CFIndex CFArrayGetFirstIndexOfValue(CFArrayRef theArray, CFRange range, const void *value);
extern
CFIndex CFArrayGetLastIndexOfValue(CFArrayRef theArray, CFRange range, const void *value);
extern
CFIndex CFArrayBSearchValues(CFArrayRef theArray, CFRange range, const void *value, CFComparatorFunction comparator, void *context);
extern
void CFArrayAppendValue(CFMutableArrayRef theArray, const void *value);
extern
void CFArrayInsertValueAtIndex(CFMutableArrayRef theArray, CFIndex idx, const void *value);
extern
void CFArraySetValueAtIndex(CFMutableArrayRef theArray, CFIndex idx, const void *value);
extern
void CFArrayRemoveValueAtIndex(CFMutableArrayRef theArray, CFIndex idx);
extern
void CFArrayRemoveAllValues(CFMutableArrayRef theArray);
extern
void CFArrayReplaceValues(CFMutableArrayRef theArray, CFRange range, const void **newValues, CFIndex newCount);
extern
void CFArrayExchangeValuesAtIndices(CFMutableArrayRef theArray, CFIndex idx1, CFIndex idx2);
extern
void CFArraySortValues(CFMutableArrayRef theArray, CFRange range, CFComparatorFunction comparator, void *context);
extern
void CFArrayAppendArray(CFMutableArrayRef theArray, CFArrayRef otherArray, CFRange otherRange);
}
extern "C" {
typedef const void * (*CFBagRetainCallBack)(CFAllocatorRef allocator, const void *value);
typedef void (*CFBagReleaseCallBack)(CFAllocatorRef allocator, const void *value);
typedef CFStringRef (*CFBagCopyDescriptionCallBack)(const void *value);
typedef Boolean (*CFBagEqualCallBack)(const void *value1, const void *value2);
typedef CFHashCode (*CFBagHashCallBack)(const void *value);
typedef struct {
CFIndex version;
CFBagRetainCallBack retain;
CFBagReleaseCallBack release;
CFBagCopyDescriptionCallBack copyDescription;
CFBagEqualCallBack equal;
CFBagHashCallBack hash;
} CFBagCallBacks;
extern
const CFBagCallBacks kCFTypeBagCallBacks;
extern
const CFBagCallBacks kCFCopyStringBagCallBacks;
typedef void (*CFBagApplierFunction)(const void *value, void *context);
typedef const struct __attribute__((objc_bridge(id))) __CFBag * CFBagRef;
typedef struct __attribute__((objc_bridge_mutable(id))) __CFBag * CFMutableBagRef;
extern
CFTypeID CFBagGetTypeID(void);
extern
CFBagRef CFBagCreate(CFAllocatorRef allocator, const void **values, CFIndex numValues, const CFBagCallBacks *callBacks);
extern
CFBagRef CFBagCreateCopy(CFAllocatorRef allocator, CFBagRef theBag);
extern
CFMutableBagRef CFBagCreateMutable(CFAllocatorRef allocator, CFIndex capacity, const CFBagCallBacks *callBacks);
extern
CFMutableBagRef CFBagCreateMutableCopy(CFAllocatorRef allocator, CFIndex capacity, CFBagRef theBag);
extern
CFIndex CFBagGetCount(CFBagRef theBag);
extern
CFIndex CFBagGetCountOfValue(CFBagRef theBag, const void *value);
extern
Boolean CFBagContainsValue(CFBagRef theBag, const void *value);
extern
const void *CFBagGetValue(CFBagRef theBag, const void *value);
extern
Boolean CFBagGetValueIfPresent(CFBagRef theBag, const void *candidate, const void **value);
extern
void CFBagGetValues(CFBagRef theBag, const void **values);
extern
void CFBagApplyFunction(CFBagRef theBag, CFBagApplierFunction __attribute__((noescape)) applier, void *context);
extern
void CFBagAddValue(CFMutableBagRef theBag, const void *value);
extern
void CFBagReplaceValue(CFMutableBagRef theBag, const void *value);
extern
void CFBagSetValue(CFMutableBagRef theBag, const void *value);
extern
void CFBagRemoveValue(CFMutableBagRef theBag, const void *value);
extern
void CFBagRemoveAllValues(CFMutableBagRef theBag);
}
extern "C" {
typedef struct {
CFIndex version;
void * info;
const void *(*retain)(const void *info);
void (*release)(const void *info);
CFStringRef (*copyDescription)(const void *info);
} CFBinaryHeapCompareContext;
typedef struct {
CFIndex version;
const void *(*retain)(CFAllocatorRef allocator, const void *ptr);
void (*release)(CFAllocatorRef allocator, const void *ptr);
CFStringRef (*copyDescription)(const void *ptr);
CFComparisonResult (*compare)(const void *ptr1, const void *ptr2, void *context);
} CFBinaryHeapCallBacks;
extern const CFBinaryHeapCallBacks kCFStringBinaryHeapCallBacks;
typedef void (*CFBinaryHeapApplierFunction)(const void *val, void *context);
typedef struct __attribute__((objc_bridge_mutable(id))) __CFBinaryHeap * CFBinaryHeapRef;
extern CFTypeID CFBinaryHeapGetTypeID(void);
extern CFBinaryHeapRef CFBinaryHeapCreate(CFAllocatorRef allocator, CFIndex capacity, const CFBinaryHeapCallBacks *callBacks, const CFBinaryHeapCompareContext *compareContext);
extern CFBinaryHeapRef CFBinaryHeapCreateCopy(CFAllocatorRef allocator, CFIndex capacity, CFBinaryHeapRef heap);
extern CFIndex CFBinaryHeapGetCount(CFBinaryHeapRef heap);
extern CFIndex CFBinaryHeapGetCountOfValue(CFBinaryHeapRef heap, const void *value);
extern Boolean CFBinaryHeapContainsValue(CFBinaryHeapRef heap, const void *value);
extern const void * CFBinaryHeapGetMinimum(CFBinaryHeapRef heap);
extern Boolean CFBinaryHeapGetMinimumIfPresent(CFBinaryHeapRef heap, const void **value);
extern void CFBinaryHeapGetValues(CFBinaryHeapRef heap, const void **values);
extern void CFBinaryHeapApplyFunction(CFBinaryHeapRef heap, CFBinaryHeapApplierFunction __attribute__((noescape)) applier, void *context);
extern void CFBinaryHeapAddValue(CFBinaryHeapRef heap, const void *value);
extern void CFBinaryHeapRemoveMinimumValue(CFBinaryHeapRef heap);
extern void CFBinaryHeapRemoveAllValues(CFBinaryHeapRef heap);
}
extern "C" {
typedef UInt32 CFBit;
typedef const struct __attribute__((objc_bridge(id))) __CFBitVector * CFBitVectorRef;
typedef struct __attribute__((objc_bridge_mutable(id))) __CFBitVector * CFMutableBitVectorRef;
extern CFTypeID CFBitVectorGetTypeID(void);
extern CFBitVectorRef CFBitVectorCreate(CFAllocatorRef allocator, const UInt8 *bytes, CFIndex numBits);
extern CFBitVectorRef CFBitVectorCreateCopy(CFAllocatorRef allocator, CFBitVectorRef bv);
extern CFMutableBitVectorRef CFBitVectorCreateMutable(CFAllocatorRef allocator, CFIndex capacity);
extern CFMutableBitVectorRef CFBitVectorCreateMutableCopy(CFAllocatorRef allocator, CFIndex capacity, CFBitVectorRef bv);
extern CFIndex CFBitVectorGetCount(CFBitVectorRef bv);
extern CFIndex CFBitVectorGetCountOfBit(CFBitVectorRef bv, CFRange range, CFBit value);
extern Boolean CFBitVectorContainsBit(CFBitVectorRef bv, CFRange range, CFBit value);
extern CFBit CFBitVectorGetBitAtIndex(CFBitVectorRef bv, CFIndex idx);
extern void CFBitVectorGetBits(CFBitVectorRef bv, CFRange range, UInt8 *bytes);
extern CFIndex CFBitVectorGetFirstIndexOfBit(CFBitVectorRef bv, CFRange range, CFBit value);
extern CFIndex CFBitVectorGetLastIndexOfBit(CFBitVectorRef bv, CFRange range, CFBit value);
extern void CFBitVectorSetCount(CFMutableBitVectorRef bv, CFIndex count);
extern void CFBitVectorFlipBitAtIndex(CFMutableBitVectorRef bv, CFIndex idx);
extern void CFBitVectorFlipBits(CFMutableBitVectorRef bv, CFRange range);
extern void CFBitVectorSetBitAtIndex(CFMutableBitVectorRef bv, CFIndex idx, CFBit value);
extern void CFBitVectorSetBits(CFMutableBitVectorRef bv, CFRange range, CFBit value);
extern void CFBitVectorSetAllBits(CFMutableBitVectorRef bv, CFBit value);
}
enum {
OSUnknownByteOrder,
OSLittleEndian,
OSBigEndian
};
static __inline__
int32_t
OSHostByteOrder(void)
{
return OSLittleEndian;
}
static __inline__
uint16_t
_OSReadInt16(
const volatile void * base,
uintptr_t byteOffset
)
{
return *(volatile uint16_t *)((uintptr_t)base + byteOffset);
}
static __inline__
uint32_t
_OSReadInt32(
const volatile void * base,
uintptr_t byteOffset
)
{
return *(volatile uint32_t *)((uintptr_t)base + byteOffset);
}
static __inline__
uint64_t
_OSReadInt64(
const volatile void * base,
uintptr_t byteOffset
)
{
return *(volatile uint64_t *)((uintptr_t)base + byteOffset);
}
static __inline__
void
_OSWriteInt16(
volatile void * base,
uintptr_t byteOffset,
uint16_t data
)
{
*(volatile uint16_t *)((uintptr_t)base + byteOffset) = data;
}
static __inline__
void
_OSWriteInt32(
volatile void * base,
uintptr_t byteOffset,
uint32_t data
)
{
*(volatile uint32_t *)((uintptr_t)base + byteOffset) = data;
}
static __inline__
void
_OSWriteInt64(
volatile void * base,
uintptr_t byteOffset,
uint64_t data
)
{
*(volatile uint64_t *)((uintptr_t)base + byteOffset) = data;
}
extern "C" {
enum __CFByteOrder {
CFByteOrderUnknown,
CFByteOrderLittleEndian,
CFByteOrderBigEndian
};
typedef CFIndex CFByteOrder;
static __inline__ __attribute__((always_inline)) CFByteOrder CFByteOrderGetCurrent(void) {
int32_t byteOrder = OSHostByteOrder();
switch (byteOrder) {
case OSLittleEndian: return CFByteOrderLittleEndian;
case OSBigEndian: return CFByteOrderBigEndian;
default: break;
}
return CFByteOrderUnknown;
}
static __inline__ __attribute__((always_inline)) uint16_t CFSwapInt16(uint16_t arg) {
return ((__uint16_t)(__builtin_constant_p(arg) ? ((__uint16_t)((((__uint16_t)(arg) & 0xff00) >> 8) | (((__uint16_t)(arg) & 0x00ff) << 8))) : _OSSwapInt16(arg)));
}
static __inline__ __attribute__((always_inline)) uint32_t CFSwapInt32(uint32_t arg) {
return (__builtin_constant_p(arg) ? ((__uint32_t)((((__uint32_t)(arg) & 0xff000000) >> 24) | (((__uint32_t)(arg) & 0x00ff0000) >> 8) | (((__uint32_t)(arg) & 0x0000ff00) << 8) | (((__uint32_t)(arg) & 0x000000ff) << 24))) : _OSSwapInt32(arg));
}
static __inline__ __attribute__((always_inline)) uint64_t CFSwapInt64(uint64_t arg) {
return (__builtin_constant_p(arg) ? ((__uint64_t)((((__uint64_t)(arg) & 0xff00000000000000ULL) >> 56) | (((__uint64_t)(arg) & 0x00ff000000000000ULL) >> 40) | (((__uint64_t)(arg) & 0x0000ff0000000000ULL) >> 24) | (((__uint64_t)(arg) & 0x000000ff00000000ULL) >> 8) | (((__uint64_t)(arg) & 0x00000000ff000000ULL) << 8) | (((__uint64_t)(arg) & 0x0000000000ff0000ULL) << 24) | (((__uint64_t)(arg) & 0x000000000000ff00ULL) << 40) | (((__uint64_t)(arg) & 0x00000000000000ffULL) << 56))) : _OSSwapInt64(arg));
}
static __inline__ __attribute__((always_inline)) uint16_t CFSwapInt16BigToHost(uint16_t arg) {
return ((__uint16_t)(__builtin_constant_p(arg) ? ((__uint16_t)((((__uint16_t)(arg) & 0xff00) >> 8) | (((__uint16_t)(arg) & 0x00ff) << 8))) : _OSSwapInt16(arg)));
}
static __inline__ __attribute__((always_inline)) uint32_t CFSwapInt32BigToHost(uint32_t arg) {
return (__builtin_constant_p(arg) ? ((__uint32_t)((((__uint32_t)(arg) & 0xff000000) >> 24) | (((__uint32_t)(arg) & 0x00ff0000) >> 8) | (((__uint32_t)(arg) & 0x0000ff00) << 8) | (((__uint32_t)(arg) & 0x000000ff) << 24))) : _OSSwapInt32(arg));
}
static __inline__ __attribute__((always_inline)) uint64_t CFSwapInt64BigToHost(uint64_t arg) {
return (__builtin_constant_p(arg) ? ((__uint64_t)((((__uint64_t)(arg) & 0xff00000000000000ULL) >> 56) | (((__uint64_t)(arg) & 0x00ff000000000000ULL) >> 40) | (((__uint64_t)(arg) & 0x0000ff0000000000ULL) >> 24) | (((__uint64_t)(arg) & 0x000000ff00000000ULL) >> 8) | (((__uint64_t)(arg) & 0x00000000ff000000ULL) << 8) | (((__uint64_t)(arg) & 0x0000000000ff0000ULL) << 24) | (((__uint64_t)(arg) & 0x000000000000ff00ULL) << 40) | (((__uint64_t)(arg) & 0x00000000000000ffULL) << 56))) : _OSSwapInt64(arg));
}
static __inline__ __attribute__((always_inline)) uint16_t CFSwapInt16HostToBig(uint16_t arg) {
return ((__uint16_t)(__builtin_constant_p(arg) ? ((__uint16_t)((((__uint16_t)(arg) & 0xff00) >> 8) | (((__uint16_t)(arg) & 0x00ff) << 8))) : _OSSwapInt16(arg)));
}
static __inline__ __attribute__((always_inline)) uint32_t CFSwapInt32HostToBig(uint32_t arg) {
return (__builtin_constant_p(arg) ? ((__uint32_t)((((__uint32_t)(arg) & 0xff000000) >> 24) | (((__uint32_t)(arg) & 0x00ff0000) >> 8) | (((__uint32_t)(arg) & 0x0000ff00) << 8) | (((__uint32_t)(arg) & 0x000000ff) << 24))) : _OSSwapInt32(arg));
}
static __inline__ __attribute__((always_inline)) uint64_t CFSwapInt64HostToBig(uint64_t arg) {
return (__builtin_constant_p(arg) ? ((__uint64_t)((((__uint64_t)(arg) & 0xff00000000000000ULL) >> 56) | (((__uint64_t)(arg) & 0x00ff000000000000ULL) >> 40) | (((__uint64_t)(arg) & 0x0000ff0000000000ULL) >> 24) | (((__uint64_t)(arg) & 0x000000ff00000000ULL) >> 8) | (((__uint64_t)(arg) & 0x00000000ff000000ULL) << 8) | (((__uint64_t)(arg) & 0x0000000000ff0000ULL) << 24) | (((__uint64_t)(arg) & 0x000000000000ff00ULL) << 40) | (((__uint64_t)(arg) & 0x00000000000000ffULL) << 56))) : _OSSwapInt64(arg));
}
static __inline__ __attribute__((always_inline)) uint16_t CFSwapInt16LittleToHost(uint16_t arg) {
return ((uint16_t)(arg));
}
static __inline__ __attribute__((always_inline)) uint32_t CFSwapInt32LittleToHost(uint32_t arg) {
return ((uint32_t)(arg));
}
static __inline__ __attribute__((always_inline)) uint64_t CFSwapInt64LittleToHost(uint64_t arg) {
return ((uint64_t)(arg));
}
static __inline__ __attribute__((always_inline)) uint16_t CFSwapInt16HostToLittle(uint16_t arg) {
return ((uint16_t)(arg));
}
static __inline__ __attribute__((always_inline)) uint32_t CFSwapInt32HostToLittle(uint32_t arg) {
return ((uint32_t)(arg));
}
static __inline__ __attribute__((always_inline)) uint64_t CFSwapInt64HostToLittle(uint64_t arg) {
return ((uint64_t)(arg));
}
typedef struct {uint32_t v;} CFSwappedFloat32;
typedef struct {uint64_t v;} CFSwappedFloat64;
static __inline__ __attribute__((always_inline)) CFSwappedFloat32 CFConvertFloat32HostToSwapped(Float32 arg) {
union CFSwap {
Float32 v;
CFSwappedFloat32 sv;
} result;
result.v = arg;
result.sv.v = CFSwapInt32(result.sv.v);
return result.sv;
}
static __inline__ __attribute__((always_inline)) Float32 CFConvertFloat32SwappedToHost(CFSwappedFloat32 arg) {
union CFSwap {
Float32 v;
CFSwappedFloat32 sv;
} result;
result.sv = arg;
result.sv.v = CFSwapInt32(result.sv.v);
return result.v;
}
static __inline__ __attribute__((always_inline)) CFSwappedFloat64 CFConvertFloat64HostToSwapped(Float64 arg) {
union CFSwap {
Float64 v;
CFSwappedFloat64 sv;
} result;
result.v = arg;
result.sv.v = CFSwapInt64(result.sv.v);
return result.sv;
}
static __inline__ __attribute__((always_inline)) Float64 CFConvertFloat64SwappedToHost(CFSwappedFloat64 arg) {
union CFSwap {
Float64 v;
CFSwappedFloat64 sv;
} result;
result.sv = arg;
result.sv.v = CFSwapInt64(result.sv.v);
return result.v;
}
static __inline__ __attribute__((always_inline)) CFSwappedFloat32 CFConvertFloatHostToSwapped(float arg) {
union CFSwap {
float v;
CFSwappedFloat32 sv;
} result;
result.v = arg;
result.sv.v = CFSwapInt32(result.sv.v);
return result.sv;
}
static __inline__ __attribute__((always_inline)) float CFConvertFloatSwappedToHost(CFSwappedFloat32 arg) {
union CFSwap {
float v;
CFSwappedFloat32 sv;
} result;
result.sv = arg;
result.sv.v = CFSwapInt32(result.sv.v);
return result.v;
}
static __inline__ __attribute__((always_inline)) CFSwappedFloat64 CFConvertDoubleHostToSwapped(double arg) {
union CFSwap {
double v;
CFSwappedFloat64 sv;
} result;
result.v = arg;
result.sv.v = CFSwapInt64(result.sv.v);
return result.sv;
}
static __inline__ __attribute__((always_inline)) double CFConvertDoubleSwappedToHost(CFSwappedFloat64 arg) {
union CFSwap {
double v;
CFSwappedFloat64 sv;
} result;
result.sv = arg;
result.sv.v = CFSwapInt64(result.sv.v);
return result.v;
}
}
extern "C" {
typedef const void * (*CFDictionaryRetainCallBack)(CFAllocatorRef allocator, const void *value);
typedef void (*CFDictionaryReleaseCallBack)(CFAllocatorRef allocator, const void *value);
typedef CFStringRef (*CFDictionaryCopyDescriptionCallBack)(const void *value);
typedef Boolean (*CFDictionaryEqualCallBack)(const void *value1, const void *value2);
typedef CFHashCode (*CFDictionaryHashCallBack)(const void *value);
typedef struct {
CFIndex version;
CFDictionaryRetainCallBack retain;
CFDictionaryReleaseCallBack release;
CFDictionaryCopyDescriptionCallBack copyDescription;
CFDictionaryEqualCallBack equal;
CFDictionaryHashCallBack hash;
} CFDictionaryKeyCallBacks;
extern
const CFDictionaryKeyCallBacks kCFTypeDictionaryKeyCallBacks;
extern
const CFDictionaryKeyCallBacks kCFCopyStringDictionaryKeyCallBacks;
typedef struct {
CFIndex version;
CFDictionaryRetainCallBack retain;
CFDictionaryReleaseCallBack release;
CFDictionaryCopyDescriptionCallBack copyDescription;
CFDictionaryEqualCallBack equal;
} CFDictionaryValueCallBacks;
extern
const CFDictionaryValueCallBacks kCFTypeDictionaryValueCallBacks;
typedef void (*CFDictionaryApplierFunction)(const void *key, const void *value, void *context);
typedef const struct __attribute__((objc_bridge(NSDictionary))) __CFDictionary * CFDictionaryRef;
typedef struct __attribute__((objc_bridge_mutable(NSMutableDictionary))) __CFDictionary * CFMutableDictionaryRef;
extern
CFTypeID CFDictionaryGetTypeID(void);
extern
CFDictionaryRef CFDictionaryCreate(CFAllocatorRef allocator, const void **keys, const void **values, CFIndex numValues, const CFDictionaryKeyCallBacks *keyCallBacks, const CFDictionaryValueCallBacks *valueCallBacks);
extern
CFDictionaryRef CFDictionaryCreateCopy(CFAllocatorRef allocator, CFDictionaryRef theDict);
extern
CFMutableDictionaryRef CFDictionaryCreateMutable(CFAllocatorRef allocator, CFIndex capacity, const CFDictionaryKeyCallBacks *keyCallBacks, const CFDictionaryValueCallBacks *valueCallBacks);
extern
CFMutableDictionaryRef CFDictionaryCreateMutableCopy(CFAllocatorRef allocator, CFIndex capacity, CFDictionaryRef theDict);
extern
CFIndex CFDictionaryGetCount(CFDictionaryRef theDict);
extern
CFIndex CFDictionaryGetCountOfKey(CFDictionaryRef theDict, const void *key);
extern
CFIndex CFDictionaryGetCountOfValue(CFDictionaryRef theDict, const void *value);
extern
Boolean CFDictionaryContainsKey(CFDictionaryRef theDict, const void *key);
extern
Boolean CFDictionaryContainsValue(CFDictionaryRef theDict, const void *value);
extern
const void *CFDictionaryGetValue(CFDictionaryRef theDict, const void *key);
extern
Boolean CFDictionaryGetValueIfPresent(CFDictionaryRef theDict, const void *key, const void **value);
extern
void CFDictionaryGetKeysAndValues(CFDictionaryRef theDict, const void **keys, const void **values);
extern
void CFDictionaryApplyFunction(CFDictionaryRef theDict, CFDictionaryApplierFunction __attribute__((noescape)) applier, void *context);
extern
void CFDictionaryAddValue(CFMutableDictionaryRef theDict, const void *key, const void *value);
extern
void CFDictionarySetValue(CFMutableDictionaryRef theDict, const void *key, const void *value);
extern
void CFDictionaryReplaceValue(CFMutableDictionaryRef theDict, const void *key, const void *value);
extern
void CFDictionaryRemoveValue(CFMutableDictionaryRef theDict, const void *key);
extern
void CFDictionaryRemoveAllValues(CFMutableDictionaryRef theDict);
}
extern "C" {
typedef CFStringRef CFNotificationName __attribute__((swift_wrapper(struct)));
typedef struct __attribute__((objc_bridge_mutable(id))) __CFNotificationCenter * CFNotificationCenterRef;
typedef void (*CFNotificationCallback)(CFNotificationCenterRef center, void *observer, CFNotificationName name, const void *object, CFDictionaryRef userInfo);
typedef CFIndex CFNotificationSuspensionBehavior; enum {
CFNotificationSuspensionBehaviorDrop = 1,
CFNotificationSuspensionBehaviorCoalesce = 2,
CFNotificationSuspensionBehaviorHold = 3,
CFNotificationSuspensionBehaviorDeliverImmediately = 4
};
extern CFTypeID CFNotificationCenterGetTypeID(void);
extern CFNotificationCenterRef CFNotificationCenterGetLocalCenter(void);
extern CFNotificationCenterRef CFNotificationCenterGetDarwinNotifyCenter(void);
extern void CFNotificationCenterAddObserver(CFNotificationCenterRef center, const void *observer, CFNotificationCallback callBack, CFStringRef name, const void *object, CFNotificationSuspensionBehavior suspensionBehavior);
extern void CFNotificationCenterRemoveObserver(CFNotificationCenterRef center, const void *observer, CFNotificationName name, const void *object);
extern void CFNotificationCenterRemoveEveryObserver(CFNotificationCenterRef center, const void *observer);
extern void CFNotificationCenterPostNotification(CFNotificationCenterRef center, CFNotificationName name, const void *object, CFDictionaryRef userInfo, Boolean deliverImmediately);
enum {
kCFNotificationDeliverImmediately = (1UL << 0),
kCFNotificationPostToAllSessions = (1UL << 1)
};
extern void CFNotificationCenterPostNotificationWithOptions(CFNotificationCenterRef center, CFNotificationName name, const void *object, CFDictionaryRef userInfo, CFOptionFlags options);
}
extern "C" {
typedef CFStringRef CFLocaleIdentifier __attribute__((swift_wrapper(struct)));
typedef CFStringRef CFLocaleKey __attribute__((swift_wrapper(enum)));
typedef const struct __attribute__((objc_bridge(NSLocale))) __CFLocale *CFLocaleRef;
extern
CFTypeID CFLocaleGetTypeID(void);
extern
CFLocaleRef CFLocaleGetSystem(void);
extern
CFLocaleRef CFLocaleCopyCurrent(void);
extern
CFArrayRef CFLocaleCopyAvailableLocaleIdentifiers(void);
extern
CFArrayRef CFLocaleCopyISOLanguageCodes(void);
extern
CFArrayRef CFLocaleCopyISOCountryCodes(void);
extern
CFArrayRef CFLocaleCopyISOCurrencyCodes(void);
extern
CFArrayRef CFLocaleCopyCommonISOCurrencyCodes(void) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFArrayRef CFLocaleCopyPreferredLanguages(void) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFLocaleIdentifier CFLocaleCreateCanonicalLanguageIdentifierFromString(CFAllocatorRef allocator, CFStringRef localeIdentifier);
extern
CFLocaleIdentifier CFLocaleCreateCanonicalLocaleIdentifierFromString(CFAllocatorRef allocator, CFStringRef localeIdentifier);
extern
CFLocaleIdentifier CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes(CFAllocatorRef allocator, LangCode lcode, RegionCode rcode);
extern
CFLocaleIdentifier CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode(CFAllocatorRef allocator, uint32_t lcid) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
uint32_t CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier(CFLocaleIdentifier localeIdentifier) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef CFIndex CFLocaleLanguageDirection; enum {
kCFLocaleLanguageDirectionUnknown = 0,
kCFLocaleLanguageDirectionLeftToRight = 1,
kCFLocaleLanguageDirectionRightToLeft = 2,
kCFLocaleLanguageDirectionTopToBottom = 3,
kCFLocaleLanguageDirectionBottomToTop = 4
};
extern
CFLocaleLanguageDirection CFLocaleGetLanguageCharacterDirection(CFStringRef isoLangCode) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFLocaleLanguageDirection CFLocaleGetLanguageLineDirection(CFStringRef isoLangCode) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFDictionaryRef CFLocaleCreateComponentsFromLocaleIdentifier(CFAllocatorRef allocator, CFLocaleIdentifier localeID);
extern
CFLocaleIdentifier CFLocaleCreateLocaleIdentifierFromComponents(CFAllocatorRef allocator, CFDictionaryRef dictionary);
extern
CFLocaleRef CFLocaleCreate(CFAllocatorRef allocator, CFLocaleIdentifier localeIdentifier);
extern
CFLocaleRef CFLocaleCreateCopy(CFAllocatorRef allocator, CFLocaleRef locale);
extern
CFLocaleIdentifier CFLocaleGetIdentifier(CFLocaleRef locale);
extern
CFTypeRef CFLocaleGetValue(CFLocaleRef locale, CFLocaleKey key);
extern
CFStringRef CFLocaleCopyDisplayNameForPropertyValue(CFLocaleRef displayLocale, CFLocaleKey key, CFStringRef value);
extern const CFNotificationName kCFLocaleCurrentLocaleDidChangeNotification __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFLocaleKey kCFLocaleIdentifier;
extern const CFLocaleKey kCFLocaleLanguageCode;
extern const CFLocaleKey kCFLocaleCountryCode;
extern const CFLocaleKey kCFLocaleScriptCode;
extern const CFLocaleKey kCFLocaleVariantCode;
extern const CFLocaleKey kCFLocaleExemplarCharacterSet;
extern const CFLocaleKey kCFLocaleCalendarIdentifier;
extern const CFLocaleKey kCFLocaleCalendar;
extern const CFLocaleKey kCFLocaleCollationIdentifier;
extern const CFLocaleKey kCFLocaleUsesMetricSystem;
extern const CFLocaleKey kCFLocaleMeasurementSystem;
extern const CFLocaleKey kCFLocaleDecimalSeparator;
extern const CFLocaleKey kCFLocaleGroupingSeparator;
extern const CFLocaleKey kCFLocaleCurrencySymbol;
extern const CFLocaleKey kCFLocaleCurrencyCode;
extern const CFLocaleKey kCFLocaleCollatorIdentifier __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFLocaleKey kCFLocaleQuotationBeginDelimiterKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFLocaleKey kCFLocaleQuotationEndDelimiterKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFLocaleKey kCFLocaleAlternateQuotationBeginDelimiterKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFLocaleKey kCFLocaleAlternateQuotationEndDelimiterKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef CFStringRef CFCalendarIdentifier __attribute__((swift_wrapper(enum)));
extern const CFCalendarIdentifier kCFGregorianCalendar;
extern const CFCalendarIdentifier kCFBuddhistCalendar;
extern const CFCalendarIdentifier kCFChineseCalendar;
extern const CFCalendarIdentifier kCFHebrewCalendar;
extern const CFCalendarIdentifier kCFIslamicCalendar;
extern const CFCalendarIdentifier kCFIslamicCivilCalendar;
extern const CFCalendarIdentifier kCFJapaneseCalendar;
extern const CFCalendarIdentifier kCFRepublicOfChinaCalendar __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFCalendarIdentifier kCFPersianCalendar __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFCalendarIdentifier kCFIndianCalendar __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFCalendarIdentifier kCFISO8601Calendar __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFCalendarIdentifier kCFIslamicTabularCalendar __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFCalendarIdentifier kCFIslamicUmmAlQuraCalendar __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
}
extern "C" {
typedef double CFTimeInterval;
typedef CFTimeInterval CFAbsoluteTime;
extern
CFAbsoluteTime CFAbsoluteTimeGetCurrent(void);
extern
const CFTimeInterval kCFAbsoluteTimeIntervalSince1970;
extern
const CFTimeInterval kCFAbsoluteTimeIntervalSince1904;
typedef const struct __attribute__((objc_bridge(NSDate))) __CFDate * CFDateRef;
extern
CFTypeID CFDateGetTypeID(void);
extern
CFDateRef CFDateCreate(CFAllocatorRef allocator, CFAbsoluteTime at);
extern
CFAbsoluteTime CFDateGetAbsoluteTime(CFDateRef theDate);
extern
CFTimeInterval CFDateGetTimeIntervalSinceDate(CFDateRef theDate, CFDateRef otherDate);
extern
CFComparisonResult CFDateCompare(CFDateRef theDate, CFDateRef otherDate, void *context);
typedef const struct __attribute__((objc_bridge(NSTimeZone))) __CFTimeZone * CFTimeZoneRef;
typedef struct {
SInt32 year;
SInt8 month;
SInt8 day;
SInt8 hour;
SInt8 minute;
double second;
} CFGregorianDate __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead")));
typedef struct {
SInt32 years;
SInt32 months;
SInt32 days;
SInt32 hours;
SInt32 minutes;
double seconds;
} CFGregorianUnits __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead")));
typedef CFOptionFlags CFGregorianUnitFlags; enum {
kCFGregorianUnitsYears __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead"))) = (1UL << 0),
kCFGregorianUnitsMonths __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead"))) = (1UL << 1),
kCFGregorianUnitsDays __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead"))) = (1UL << 2),
kCFGregorianUnitsHours __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead"))) = (1UL << 3),
kCFGregorianUnitsMinutes __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead"))) = (1UL << 4),
kCFGregorianUnitsSeconds __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead"))) = (1UL << 5),
kCFGregorianAllUnits __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead"))) = 0x00FFFFFF
};
extern
Boolean CFGregorianDateIsValid(CFGregorianDate gdate, CFOptionFlags unitFlags) __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead")));
extern
CFAbsoluteTime CFGregorianDateGetAbsoluteTime(CFGregorianDate gdate, CFTimeZoneRef tz) __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead")));
extern
CFGregorianDate CFAbsoluteTimeGetGregorianDate(CFAbsoluteTime at, CFTimeZoneRef tz) __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead")));
extern
CFAbsoluteTime CFAbsoluteTimeAddGregorianUnits(CFAbsoluteTime at, CFTimeZoneRef tz, CFGregorianUnits units) __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead")));
extern
CFGregorianUnits CFAbsoluteTimeGetDifferenceAsGregorianUnits(CFAbsoluteTime at1, CFAbsoluteTime at2, CFTimeZoneRef tz, CFOptionFlags unitFlags) __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead")));
extern
SInt32 CFAbsoluteTimeGetDayOfWeek(CFAbsoluteTime at, CFTimeZoneRef tz) __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead")));
extern
SInt32 CFAbsoluteTimeGetDayOfYear(CFAbsoluteTime at, CFTimeZoneRef tz) __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead")));
extern
SInt32 CFAbsoluteTimeGetWeekOfYear(CFAbsoluteTime at, CFTimeZoneRef tz) __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead")));
}
extern "C" {
typedef const struct __attribute__((objc_bridge(NSData))) __CFData * CFDataRef;
typedef struct __attribute__((objc_bridge_mutable(NSMutableData))) __CFData * CFMutableDataRef;
extern
CFTypeID CFDataGetTypeID(void);
extern
CFDataRef CFDataCreate(CFAllocatorRef allocator, const UInt8 *bytes, CFIndex length);
extern
CFDataRef CFDataCreateWithBytesNoCopy(CFAllocatorRef allocator, const UInt8 *bytes, CFIndex length, CFAllocatorRef bytesDeallocator);
extern
CFDataRef CFDataCreateCopy(CFAllocatorRef allocator, CFDataRef theData);
extern
CFMutableDataRef CFDataCreateMutable(CFAllocatorRef allocator, CFIndex capacity);
extern
CFMutableDataRef CFDataCreateMutableCopy(CFAllocatorRef allocator, CFIndex capacity, CFDataRef theData);
extern
CFIndex CFDataGetLength(CFDataRef theData);
extern
const UInt8 *CFDataGetBytePtr(CFDataRef theData);
extern
UInt8 *CFDataGetMutableBytePtr(CFMutableDataRef theData);
extern
void CFDataGetBytes(CFDataRef theData, CFRange range, UInt8 *buffer);
extern
void CFDataSetLength(CFMutableDataRef theData, CFIndex length);
extern
void CFDataIncreaseLength(CFMutableDataRef theData, CFIndex extraLength);
extern
void CFDataAppendBytes(CFMutableDataRef theData, const UInt8 *bytes, CFIndex length);
extern
void CFDataReplaceBytes(CFMutableDataRef theData, CFRange range, const UInt8 *newBytes, CFIndex newLength);
extern
void CFDataDeleteBytes(CFMutableDataRef theData, CFRange range);
typedef CFOptionFlags CFDataSearchFlags; enum {
kCFDataSearchBackwards = 1UL << 0,
kCFDataSearchAnchored = 1UL << 1
} __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFRange CFDataFind(CFDataRef theData, CFDataRef dataToFind, CFRange searchRange, CFDataSearchFlags compareOptions) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
}
extern "C" {
typedef const struct __attribute__((objc_bridge(NSCharacterSet))) __CFCharacterSet * CFCharacterSetRef;
typedef struct __attribute__((objc_bridge_mutable(NSMutableCharacterSet))) __CFCharacterSet * CFMutableCharacterSetRef;
typedef CFIndex CFCharacterSetPredefinedSet; enum {
kCFCharacterSetControl = 1,
kCFCharacterSetWhitespace,
kCFCharacterSetWhitespaceAndNewline,
kCFCharacterSetDecimalDigit,
kCFCharacterSetLetter,
kCFCharacterSetLowercaseLetter,
kCFCharacterSetUppercaseLetter,
kCFCharacterSetNonBase,
kCFCharacterSetDecomposable,
kCFCharacterSetAlphaNumeric,
kCFCharacterSetPunctuation,
kCFCharacterSetCapitalizedLetter = 13,
kCFCharacterSetSymbol = 14,
kCFCharacterSetNewline __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 15,
kCFCharacterSetIllegal = 12
};
extern
CFTypeID CFCharacterSetGetTypeID(void);
extern
CFCharacterSetRef CFCharacterSetGetPredefined(CFCharacterSetPredefinedSet theSetIdentifier);
extern
CFCharacterSetRef CFCharacterSetCreateWithCharactersInRange(CFAllocatorRef alloc, CFRange theRange);
extern
CFCharacterSetRef CFCharacterSetCreateWithCharactersInString(CFAllocatorRef alloc, CFStringRef theString);
extern
CFCharacterSetRef CFCharacterSetCreateWithBitmapRepresentation(CFAllocatorRef alloc, CFDataRef theData);
extern CFCharacterSetRef CFCharacterSetCreateInvertedSet(CFAllocatorRef alloc, CFCharacterSetRef theSet);
extern Boolean CFCharacterSetIsSupersetOfSet(CFCharacterSetRef theSet, CFCharacterSetRef theOtherset);
extern Boolean CFCharacterSetHasMemberInPlane(CFCharacterSetRef theSet, CFIndex thePlane);
extern
CFMutableCharacterSetRef CFCharacterSetCreateMutable(CFAllocatorRef alloc);
extern
CFCharacterSetRef CFCharacterSetCreateCopy(CFAllocatorRef alloc, CFCharacterSetRef theSet);
extern
CFMutableCharacterSetRef CFCharacterSetCreateMutableCopy(CFAllocatorRef alloc, CFCharacterSetRef theSet);
extern
Boolean CFCharacterSetIsCharacterMember(CFCharacterSetRef theSet, UniChar theChar);
extern Boolean CFCharacterSetIsLongCharacterMember(CFCharacterSetRef theSet, UTF32Char theChar);
extern
CFDataRef CFCharacterSetCreateBitmapRepresentation(CFAllocatorRef alloc, CFCharacterSetRef theSet);
extern
void CFCharacterSetAddCharactersInRange(CFMutableCharacterSetRef theSet, CFRange theRange);
extern
void CFCharacterSetRemoveCharactersInRange(CFMutableCharacterSetRef theSet, CFRange theRange);
extern
void CFCharacterSetAddCharactersInString(CFMutableCharacterSetRef theSet, CFStringRef theString);
extern
void CFCharacterSetRemoveCharactersInString(CFMutableCharacterSetRef theSet, CFStringRef theString);
extern
void CFCharacterSetUnion(CFMutableCharacterSetRef theSet, CFCharacterSetRef theOtherSet);
extern
void CFCharacterSetIntersect(CFMutableCharacterSetRef theSet, CFCharacterSetRef theOtherSet);
extern
void CFCharacterSetInvert(CFMutableCharacterSetRef theSet);
}
extern "C" {
typedef UInt32 CFStringEncoding;
typedef CFStringEncoding CFStringBuiltInEncodings; enum {
kCFStringEncodingMacRoman = 0,
kCFStringEncodingWindowsLatin1 = 0x0500,
kCFStringEncodingISOLatin1 = 0x0201,
kCFStringEncodingNextStepLatin = 0x0B01,
kCFStringEncodingASCII = 0x0600,
kCFStringEncodingUnicode = 0x0100,
kCFStringEncodingUTF8 = 0x08000100,
kCFStringEncodingNonLossyASCII = 0x0BFF,
kCFStringEncodingUTF16 = 0x0100,
kCFStringEncodingUTF16BE = 0x10000100,
kCFStringEncodingUTF16LE = 0x14000100,
kCFStringEncodingUTF32 = 0x0c000100,
kCFStringEncodingUTF32BE = 0x18000100,
kCFStringEncodingUTF32LE = 0x1c000100
};
extern
CFTypeID CFStringGetTypeID(void);
extern
CFStringRef CFStringCreateWithPascalString(CFAllocatorRef alloc, ConstStr255Param pStr, CFStringEncoding encoding);
extern
CFStringRef CFStringCreateWithCString(CFAllocatorRef alloc, const char *cStr, CFStringEncoding encoding);
extern
CFStringRef CFStringCreateWithBytes(CFAllocatorRef alloc, const UInt8 *bytes, CFIndex numBytes, CFStringEncoding encoding, Boolean isExternalRepresentation);
extern
CFStringRef CFStringCreateWithCharacters(CFAllocatorRef alloc, const UniChar *chars, CFIndex numChars);
extern
CFStringRef CFStringCreateWithPascalStringNoCopy(CFAllocatorRef alloc, ConstStr255Param pStr, CFStringEncoding encoding, CFAllocatorRef contentsDeallocator);
extern
CFStringRef CFStringCreateWithCStringNoCopy(CFAllocatorRef alloc, const char *cStr, CFStringEncoding encoding, CFAllocatorRef contentsDeallocator);
extern
CFStringRef CFStringCreateWithBytesNoCopy(CFAllocatorRef alloc, const UInt8 *bytes, CFIndex numBytes, CFStringEncoding encoding, Boolean isExternalRepresentation, CFAllocatorRef contentsDeallocator);
extern
CFStringRef CFStringCreateWithCharactersNoCopy(CFAllocatorRef alloc, const UniChar *chars, CFIndex numChars, CFAllocatorRef contentsDeallocator);
extern
CFStringRef CFStringCreateWithSubstring(CFAllocatorRef alloc, CFStringRef str, CFRange range);
extern
CFStringRef CFStringCreateCopy(CFAllocatorRef alloc, CFStringRef theString);
extern
CFStringRef CFStringCreateWithFormat(CFAllocatorRef alloc, CFDictionaryRef formatOptions, CFStringRef format, ...) __attribute__((format(CFString, 3, 4)));
extern
CFStringRef CFStringCreateWithFormatAndArguments(CFAllocatorRef alloc, CFDictionaryRef formatOptions, CFStringRef format, va_list arguments) __attribute__((format(CFString, 3, 0)));
extern
CFMutableStringRef CFStringCreateMutable(CFAllocatorRef alloc, CFIndex maxLength);
extern
CFMutableStringRef CFStringCreateMutableCopy(CFAllocatorRef alloc, CFIndex maxLength, CFStringRef theString);
extern
CFMutableStringRef CFStringCreateMutableWithExternalCharactersNoCopy(CFAllocatorRef alloc, UniChar *chars, CFIndex numChars, CFIndex capacity, CFAllocatorRef externalCharactersAllocator);
extern
CFIndex CFStringGetLength(CFStringRef theString);
extern
UniChar CFStringGetCharacterAtIndex(CFStringRef theString, CFIndex idx);
extern
void CFStringGetCharacters(CFStringRef theString, CFRange range, UniChar *buffer);
extern
Boolean CFStringGetPascalString(CFStringRef theString, StringPtr buffer, CFIndex bufferSize, CFStringEncoding encoding);
extern
Boolean CFStringGetCString(CFStringRef theString, char *buffer, CFIndex bufferSize, CFStringEncoding encoding);
extern
ConstStringPtr CFStringGetPascalStringPtr(CFStringRef theString, CFStringEncoding encoding);
extern
const char *CFStringGetCStringPtr(CFStringRef theString, CFStringEncoding encoding);
extern
const UniChar *CFStringGetCharactersPtr(CFStringRef theString);
extern
CFIndex CFStringGetBytes(CFStringRef theString, CFRange range, CFStringEncoding encoding, UInt8 lossByte, Boolean isExternalRepresentation, UInt8 *buffer, CFIndex maxBufLen, CFIndex *usedBufLen);
extern
CFStringRef CFStringCreateFromExternalRepresentation(CFAllocatorRef alloc, CFDataRef data, CFStringEncoding encoding);
extern
CFDataRef CFStringCreateExternalRepresentation(CFAllocatorRef alloc, CFStringRef theString, CFStringEncoding encoding, UInt8 lossByte);
extern
CFStringEncoding CFStringGetSmallestEncoding(CFStringRef theString);
extern
CFStringEncoding CFStringGetFastestEncoding(CFStringRef theString);
extern
CFStringEncoding CFStringGetSystemEncoding(void);
extern
CFIndex CFStringGetMaximumSizeForEncoding(CFIndex length, CFStringEncoding encoding);
extern
Boolean CFStringGetFileSystemRepresentation(CFStringRef string, char *buffer, CFIndex maxBufLen);
extern
CFIndex CFStringGetMaximumSizeOfFileSystemRepresentation(CFStringRef string);
extern
CFStringRef CFStringCreateWithFileSystemRepresentation(CFAllocatorRef alloc, const char *buffer);
typedef CFOptionFlags CFStringCompareFlags; enum {
kCFCompareCaseInsensitive = 1,
kCFCompareBackwards = 4,
kCFCompareAnchored = 8,
kCFCompareNonliteral = 16,
kCFCompareLocalized = 32,
kCFCompareNumerically = 64,
kCFCompareDiacriticInsensitive __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 128,
kCFCompareWidthInsensitive __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 256,
kCFCompareForcedOrdering __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 512
};
extern
CFComparisonResult CFStringCompareWithOptionsAndLocale(CFStringRef theString1, CFStringRef theString2, CFRange rangeToCompare, CFStringCompareFlags compareOptions, CFLocaleRef locale) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFComparisonResult CFStringCompareWithOptions(CFStringRef theString1, CFStringRef theString2, CFRange rangeToCompare, CFStringCompareFlags compareOptions);
extern
CFComparisonResult CFStringCompare(CFStringRef theString1, CFStringRef theString2, CFStringCompareFlags compareOptions);
extern
Boolean CFStringFindWithOptionsAndLocale(CFStringRef theString, CFStringRef stringToFind, CFRange rangeToSearch, CFStringCompareFlags searchOptions, CFLocaleRef locale, CFRange *result) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
Boolean CFStringFindWithOptions(CFStringRef theString, CFStringRef stringToFind, CFRange rangeToSearch, CFStringCompareFlags searchOptions, CFRange *result);
extern
CFArrayRef CFStringCreateArrayWithFindResults(CFAllocatorRef alloc, CFStringRef theString, CFStringRef stringToFind, CFRange rangeToSearch, CFStringCompareFlags compareOptions);
extern
CFRange CFStringFind(CFStringRef theString, CFStringRef stringToFind, CFStringCompareFlags compareOptions);
extern
Boolean CFStringHasPrefix(CFStringRef theString, CFStringRef prefix);
extern
Boolean CFStringHasSuffix(CFStringRef theString, CFStringRef suffix);
extern CFRange CFStringGetRangeOfComposedCharactersAtIndex(CFStringRef theString, CFIndex theIndex);
extern Boolean CFStringFindCharacterFromSet(CFStringRef theString, CFCharacterSetRef theSet, CFRange rangeToSearch, CFStringCompareFlags searchOptions, CFRange *result);
extern
void CFStringGetLineBounds(CFStringRef theString, CFRange range, CFIndex *lineBeginIndex, CFIndex *lineEndIndex, CFIndex *contentsEndIndex);
extern
void CFStringGetParagraphBounds(CFStringRef string, CFRange range, CFIndex *parBeginIndex, CFIndex *parEndIndex, CFIndex *contentsEndIndex) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFIndex CFStringGetHyphenationLocationBeforeIndex(CFStringRef string, CFIndex location, CFRange limitRange, CFOptionFlags options, CFLocaleRef locale, UTF32Char *character) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
Boolean CFStringIsHyphenationAvailableForLocale(CFLocaleRef locale) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.3))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFStringRef CFStringCreateByCombiningStrings(CFAllocatorRef alloc, CFArrayRef theArray, CFStringRef separatorString);
extern
CFArrayRef CFStringCreateArrayBySeparatingStrings(CFAllocatorRef alloc, CFStringRef theString, CFStringRef separatorString);
extern
SInt32 CFStringGetIntValue(CFStringRef str);
extern
double CFStringGetDoubleValue(CFStringRef str);
extern
void CFStringAppend(CFMutableStringRef theString, CFStringRef appendedString);
extern
void CFStringAppendCharacters(CFMutableStringRef theString, const UniChar *chars, CFIndex numChars);
extern
void CFStringAppendPascalString(CFMutableStringRef theString, ConstStr255Param pStr, CFStringEncoding encoding);
extern
void CFStringAppendCString(CFMutableStringRef theString, const char *cStr, CFStringEncoding encoding);
extern
void CFStringAppendFormat(CFMutableStringRef theString, CFDictionaryRef formatOptions, CFStringRef format, ...) __attribute__((format(CFString, 3, 4)));
extern
void CFStringAppendFormatAndArguments(CFMutableStringRef theString, CFDictionaryRef formatOptions, CFStringRef format, va_list arguments) __attribute__((format(CFString, 3, 0)));
extern
void CFStringInsert(CFMutableStringRef str, CFIndex idx, CFStringRef insertedStr);
extern
void CFStringDelete(CFMutableStringRef theString, CFRange range);
extern
void CFStringReplace(CFMutableStringRef theString, CFRange range, CFStringRef replacement);
extern
void CFStringReplaceAll(CFMutableStringRef theString, CFStringRef replacement);
extern
CFIndex CFStringFindAndReplace(CFMutableStringRef theString, CFStringRef stringToFind, CFStringRef replacementString, CFRange rangeToSearch, CFStringCompareFlags compareOptions);
extern
void CFStringSetExternalCharactersNoCopy(CFMutableStringRef theString, UniChar *chars, CFIndex length, CFIndex capacity);
extern
void CFStringPad(CFMutableStringRef theString, CFStringRef padString, CFIndex length, CFIndex indexIntoPad);
extern
void CFStringTrim(CFMutableStringRef theString, CFStringRef trimString);
extern
void CFStringTrimWhitespace(CFMutableStringRef theString);
extern
void CFStringLowercase(CFMutableStringRef theString, CFLocaleRef locale);
extern
void CFStringUppercase(CFMutableStringRef theString, CFLocaleRef locale);
extern
void CFStringCapitalize(CFMutableStringRef theString, CFLocaleRef locale);
typedef CFIndex CFStringNormalizationForm; enum {
kCFStringNormalizationFormD = 0,
kCFStringNormalizationFormKD,
kCFStringNormalizationFormC,
kCFStringNormalizationFormKC
};
extern void CFStringNormalize(CFMutableStringRef theString, CFStringNormalizationForm theForm);
extern
void CFStringFold(CFMutableStringRef theString, CFStringCompareFlags theFlags, CFLocaleRef theLocale) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
Boolean CFStringTransform(CFMutableStringRef string, CFRange *range, CFStringRef transform, Boolean reverse);
extern const CFStringRef kCFStringTransformStripCombiningMarks;
extern const CFStringRef kCFStringTransformToLatin;
extern const CFStringRef kCFStringTransformFullwidthHalfwidth;
extern const CFStringRef kCFStringTransformLatinKatakana;
extern const CFStringRef kCFStringTransformLatinHiragana;
extern const CFStringRef kCFStringTransformHiraganaKatakana;
extern const CFStringRef kCFStringTransformMandarinLatin;
extern const CFStringRef kCFStringTransformLatinHangul;
extern const CFStringRef kCFStringTransformLatinArabic;
extern const CFStringRef kCFStringTransformLatinHebrew;
extern const CFStringRef kCFStringTransformLatinThai;
extern const CFStringRef kCFStringTransformLatinCyrillic;
extern const CFStringRef kCFStringTransformLatinGreek;
extern const CFStringRef kCFStringTransformToXMLHex;
extern const CFStringRef kCFStringTransformToUnicodeName;
extern const CFStringRef kCFStringTransformStripDiacritics __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
Boolean CFStringIsEncodingAvailable(CFStringEncoding encoding);
extern
const CFStringEncoding *CFStringGetListOfAvailableEncodings(void);
extern
CFStringRef CFStringGetNameOfEncoding(CFStringEncoding encoding);
extern
unsigned long CFStringConvertEncodingToNSStringEncoding(CFStringEncoding encoding);
extern
CFStringEncoding CFStringConvertNSStringEncodingToEncoding(unsigned long encoding);
extern
UInt32 CFStringConvertEncodingToWindowsCodepage(CFStringEncoding encoding);
extern
CFStringEncoding CFStringConvertWindowsCodepageToEncoding(UInt32 codepage);
extern
CFStringEncoding CFStringConvertIANACharSetNameToEncoding(CFStringRef theString);
extern
CFStringRef CFStringConvertEncodingToIANACharSetName(CFStringEncoding encoding);
extern
CFStringEncoding CFStringGetMostCompatibleMacStringEncoding(CFStringEncoding encoding);
typedef struct {
UniChar buffer[64];
CFStringRef theString;
const UniChar *directUniCharBuffer;
const char *directCStringBuffer;
CFRange rangeToBuffer;
CFIndex bufferedRangeStart;
CFIndex bufferedRangeEnd;
} CFStringInlineBuffer;
static __inline__ __attribute__((always_inline)) void CFStringInitInlineBuffer(CFStringRef str, CFStringInlineBuffer *buf, CFRange range) {
buf->theString = str;
buf->rangeToBuffer = range;
buf->directCStringBuffer = (buf->directUniCharBuffer = CFStringGetCharactersPtr(str)) ? __null : CFStringGetCStringPtr(str, kCFStringEncodingASCII);
buf->bufferedRangeStart = buf->bufferedRangeEnd = 0;
}
static __inline__ __attribute__((always_inline)) UniChar CFStringGetCharacterFromInlineBuffer(CFStringInlineBuffer *buf, CFIndex idx) {
if (idx < 0 || idx >= buf->rangeToBuffer.length) return 0;
if (buf->directUniCharBuffer) return buf->directUniCharBuffer[idx + buf->rangeToBuffer.location];
if (buf->directCStringBuffer) return (UniChar)(buf->directCStringBuffer[idx + buf->rangeToBuffer.location]);
if (idx >= buf->bufferedRangeEnd || idx < buf->bufferedRangeStart) {
if ((buf->bufferedRangeStart = idx - 4) < 0) buf->bufferedRangeStart = 0;
buf->bufferedRangeEnd = buf->bufferedRangeStart + 64;
if (buf->bufferedRangeEnd > buf->rangeToBuffer.length) buf->bufferedRangeEnd = buf->rangeToBuffer.length;
CFStringGetCharacters(buf->theString, CFRangeMake(buf->rangeToBuffer.location + buf->bufferedRangeStart, buf->bufferedRangeEnd - buf->bufferedRangeStart), buf->buffer);
}
return buf->buffer[idx - buf->bufferedRangeStart];
}
static __inline__ __attribute__((always_inline)) Boolean CFStringIsSurrogateHighCharacter(UniChar character) {
return ((character >= 0xD800UL) && (character <= 0xDBFFUL) ? true : false);
}
static __inline__ __attribute__((always_inline)) Boolean CFStringIsSurrogateLowCharacter(UniChar character) {
return ((character >= 0xDC00UL) && (character <= 0xDFFFUL) ? true : false);
}
static __inline__ __attribute__((always_inline)) UTF32Char CFStringGetLongCharacterForSurrogatePair(UniChar surrogateHigh, UniChar surrogateLow) {
return (UTF32Char)(((surrogateHigh - 0xD800UL) << 10) + (surrogateLow - 0xDC00UL) + 0x0010000UL);
}
static __inline__ __attribute__((always_inline)) Boolean CFStringGetSurrogatePairForLongCharacter(UTF32Char character, UniChar *surrogates) {
if ((character > 0xFFFFUL) && (character < 0x110000UL)) {
character -= 0x10000;
if (__null != surrogates) {
surrogates[0] = (UniChar)((character >> 10) + 0xD800UL);
surrogates[1] = (UniChar)((character & 0x3FF) + 0xDC00UL);
}
return true;
} else {
if (__null != surrogates) *surrogates = (UniChar)character;
return false;
}
}
extern
void CFShow(CFTypeRef obj);
extern
void CFShowStr(CFStringRef str);
extern
CFStringRef __CFStringMakeConstantString(const char *cStr) __attribute__((format_arg(1)));
}
extern "C" {
extern
CFTypeID CFTimeZoneGetTypeID(void);
extern
CFTimeZoneRef CFTimeZoneCopySystem(void);
extern
void CFTimeZoneResetSystem(void);
extern
CFTimeZoneRef CFTimeZoneCopyDefault(void);
extern
void CFTimeZoneSetDefault(CFTimeZoneRef tz);
extern
CFArrayRef CFTimeZoneCopyKnownNames(void);
extern
CFDictionaryRef CFTimeZoneCopyAbbreviationDictionary(void);
extern
void CFTimeZoneSetAbbreviationDictionary(CFDictionaryRef dict);
extern
CFTimeZoneRef CFTimeZoneCreate(CFAllocatorRef allocator, CFStringRef name, CFDataRef data);
extern
CFTimeZoneRef CFTimeZoneCreateWithTimeIntervalFromGMT(CFAllocatorRef allocator, CFTimeInterval ti);
extern
CFTimeZoneRef CFTimeZoneCreateWithName(CFAllocatorRef allocator, CFStringRef name, Boolean tryAbbrev);
extern
CFStringRef CFTimeZoneGetName(CFTimeZoneRef tz);
extern
CFDataRef CFTimeZoneGetData(CFTimeZoneRef tz);
extern
CFTimeInterval CFTimeZoneGetSecondsFromGMT(CFTimeZoneRef tz, CFAbsoluteTime at);
extern
CFStringRef CFTimeZoneCopyAbbreviation(CFTimeZoneRef tz, CFAbsoluteTime at);
extern
Boolean CFTimeZoneIsDaylightSavingTime(CFTimeZoneRef tz, CFAbsoluteTime at);
extern
CFTimeInterval CFTimeZoneGetDaylightSavingTimeOffset(CFTimeZoneRef tz, CFAbsoluteTime at) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFAbsoluteTime CFTimeZoneGetNextDaylightSavingTimeTransition(CFTimeZoneRef tz, CFAbsoluteTime at) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef CFIndex CFTimeZoneNameStyle; enum {
kCFTimeZoneNameStyleStandard,
kCFTimeZoneNameStyleShortStandard,
kCFTimeZoneNameStyleDaylightSaving,
kCFTimeZoneNameStyleShortDaylightSaving,
kCFTimeZoneNameStyleGeneric,
kCFTimeZoneNameStyleShortGeneric
} __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFStringRef CFTimeZoneCopyLocalizedName(CFTimeZoneRef tz, CFTimeZoneNameStyle style, CFLocaleRef locale) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFNotificationName kCFTimeZoneSystemTimeZoneDidChangeNotification __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
}
extern "C" {
typedef struct __attribute__((objc_bridge_mutable(NSCalendar))) __CFCalendar * CFCalendarRef;
extern
CFTypeID CFCalendarGetTypeID(void);
extern
CFCalendarRef CFCalendarCopyCurrent(void);
extern
CFCalendarRef CFCalendarCreateWithIdentifier(CFAllocatorRef allocator, CFCalendarIdentifier identifier);
extern
CFCalendarIdentifier CFCalendarGetIdentifier(CFCalendarRef calendar);
extern
CFLocaleRef CFCalendarCopyLocale(CFCalendarRef calendar);
extern
void CFCalendarSetLocale(CFCalendarRef calendar, CFLocaleRef locale);
extern
CFTimeZoneRef CFCalendarCopyTimeZone(CFCalendarRef calendar);
extern
void CFCalendarSetTimeZone(CFCalendarRef calendar, CFTimeZoneRef tz);
extern
CFIndex CFCalendarGetFirstWeekday(CFCalendarRef calendar);
extern
void CFCalendarSetFirstWeekday(CFCalendarRef calendar, CFIndex wkdy);
extern
CFIndex CFCalendarGetMinimumDaysInFirstWeek(CFCalendarRef calendar);
extern
void CFCalendarSetMinimumDaysInFirstWeek(CFCalendarRef calendar, CFIndex mwd);
typedef CFOptionFlags CFCalendarUnit; enum {
kCFCalendarUnitEra = (1UL << 1),
kCFCalendarUnitYear = (1UL << 2),
kCFCalendarUnitMonth = (1UL << 3),
kCFCalendarUnitDay = (1UL << 4),
kCFCalendarUnitHour = (1UL << 5),
kCFCalendarUnitMinute = (1UL << 6),
kCFCalendarUnitSecond = (1UL << 7),
kCFCalendarUnitWeek __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use kCFCalendarUnitWeekOfYear or kCFCalendarUnitWeekOfMonth instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use kCFCalendarUnitWeekOfYear or kCFCalendarUnitWeekOfMonth instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use kCFCalendarUnitWeekOfYear or kCFCalendarUnitWeekOfMonth instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use kCFCalendarUnitWeekOfYear or kCFCalendarUnitWeekOfMonth instead"))) = (1UL << 8),
kCFCalendarUnitWeekday = (1UL << 9),
kCFCalendarUnitWeekdayOrdinal = (1UL << 10),
kCFCalendarUnitQuarter __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1UL << 11),
kCFCalendarUnitWeekOfMonth __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1UL << 12),
kCFCalendarUnitWeekOfYear __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1UL << 13),
kCFCalendarUnitYearForWeekOfYear __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1UL << 14),
};
extern
CFRange CFCalendarGetMinimumRangeOfUnit(CFCalendarRef calendar, CFCalendarUnit unit);
extern
CFRange CFCalendarGetMaximumRangeOfUnit(CFCalendarRef calendar, CFCalendarUnit unit);
extern
CFRange CFCalendarGetRangeOfUnit(CFCalendarRef calendar, CFCalendarUnit smallerUnit, CFCalendarUnit biggerUnit, CFAbsoluteTime at);
extern
CFIndex CFCalendarGetOrdinalityOfUnit(CFCalendarRef calendar, CFCalendarUnit smallerUnit, CFCalendarUnit biggerUnit, CFAbsoluteTime at);
extern
Boolean CFCalendarGetTimeRangeOfUnit(CFCalendarRef calendar, CFCalendarUnit unit, CFAbsoluteTime at, CFAbsoluteTime *startp, CFTimeInterval *tip) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
Boolean CFCalendarComposeAbsoluteTime(CFCalendarRef calendar, CFAbsoluteTime *at, const char *componentDesc, ...);
extern
Boolean CFCalendarDecomposeAbsoluteTime(CFCalendarRef calendar, CFAbsoluteTime at, const char *componentDesc, ...);
enum {
kCFCalendarComponentsWrap = (1UL << 0)
};
extern
Boolean CFCalendarAddComponents(CFCalendarRef calendar, CFAbsoluteTime *at, CFOptionFlags options, const char *componentDesc, ...);
extern
Boolean CFCalendarGetComponentDifference(CFCalendarRef calendar, CFAbsoluteTime startingAT, CFAbsoluteTime resultAT, CFOptionFlags options, const char *componentDesc, ...);
}
extern "C" {
typedef CFStringRef CFDateFormatterKey __attribute__((swift_wrapper(enum)));
typedef struct __attribute__((objc_bridge_mutable(id))) __CFDateFormatter *CFDateFormatterRef;
extern
CFStringRef CFDateFormatterCreateDateFormatFromTemplate(CFAllocatorRef allocator, CFStringRef tmplate, CFOptionFlags options, CFLocaleRef locale) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFTypeID CFDateFormatterGetTypeID(void);
typedef CFIndex CFDateFormatterStyle; enum {
kCFDateFormatterNoStyle = 0,
kCFDateFormatterShortStyle = 1,
kCFDateFormatterMediumStyle = 2,
kCFDateFormatterLongStyle = 3,
kCFDateFormatterFullStyle = 4
};
typedef CFOptionFlags CFISO8601DateFormatOptions; enum {
kCFISO8601DateFormatWithYear __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = (1UL << 0),
kCFISO8601DateFormatWithMonth __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = (1UL << 1),
kCFISO8601DateFormatWithWeekOfYear __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = (1UL << 2),
kCFISO8601DateFormatWithDay __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = (1UL << 4),
kCFISO8601DateFormatWithTime __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = (1UL << 5),
kCFISO8601DateFormatWithTimeZone __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = (1UL << 6),
kCFISO8601DateFormatWithSpaceBetweenDateAndTime __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = (1UL << 7),
kCFISO8601DateFormatWithDashSeparatorInDate __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = (1UL << 8),
kCFISO8601DateFormatWithColonSeparatorInTime __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = (1UL << 9),
kCFISO8601DateFormatWithColonSeparatorInTimeZone __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = (1UL << 10),
kCFISO8601DateFormatWithFractionalSeconds __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))) = (1UL << 11),
kCFISO8601DateFormatWithFullDate __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithYear | kCFISO8601DateFormatWithMonth | kCFISO8601DateFormatWithDay | kCFISO8601DateFormatWithDashSeparatorInDate,
kCFISO8601DateFormatWithFullTime __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithTime | kCFISO8601DateFormatWithColonSeparatorInTime | kCFISO8601DateFormatWithTimeZone | kCFISO8601DateFormatWithColonSeparatorInTimeZone,
kCFISO8601DateFormatWithInternetDateTime __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithFullDate | kCFISO8601DateFormatWithFullTime,
};
extern
CFDateFormatterRef CFDateFormatterCreateISO8601Formatter(CFAllocatorRef allocator, CFISO8601DateFormatOptions formatOptions) __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
extern
CFDateFormatterRef CFDateFormatterCreate(CFAllocatorRef allocator, CFLocaleRef locale, CFDateFormatterStyle dateStyle, CFDateFormatterStyle timeStyle);
extern
CFLocaleRef CFDateFormatterGetLocale(CFDateFormatterRef formatter);
extern
CFDateFormatterStyle CFDateFormatterGetDateStyle(CFDateFormatterRef formatter);
extern
CFDateFormatterStyle CFDateFormatterGetTimeStyle(CFDateFormatterRef formatter);
extern
CFStringRef CFDateFormatterGetFormat(CFDateFormatterRef formatter);
extern
void CFDateFormatterSetFormat(CFDateFormatterRef formatter, CFStringRef formatString);
extern
CFStringRef CFDateFormatterCreateStringWithDate(CFAllocatorRef allocator, CFDateFormatterRef formatter, CFDateRef date);
extern
CFStringRef CFDateFormatterCreateStringWithAbsoluteTime(CFAllocatorRef allocator, CFDateFormatterRef formatter, CFAbsoluteTime at);
extern
CFDateRef CFDateFormatterCreateDateFromString(CFAllocatorRef allocator, CFDateFormatterRef formatter, CFStringRef string, CFRange *rangep);
extern
Boolean CFDateFormatterGetAbsoluteTimeFromString(CFDateFormatterRef formatter, CFStringRef string, CFRange *rangep, CFAbsoluteTime *atp);
extern
void CFDateFormatterSetProperty(CFDateFormatterRef formatter, CFStringRef key, CFTypeRef value);
extern
CFTypeRef CFDateFormatterCopyProperty(CFDateFormatterRef formatter, CFDateFormatterKey key);
extern const CFDateFormatterKey kCFDateFormatterIsLenient;
extern const CFDateFormatterKey kCFDateFormatterTimeZone;
extern const CFDateFormatterKey kCFDateFormatterCalendarName;
extern const CFDateFormatterKey kCFDateFormatterDefaultFormat;
extern const CFDateFormatterKey kCFDateFormatterTwoDigitStartDate;
extern const CFDateFormatterKey kCFDateFormatterDefaultDate;
extern const CFDateFormatterKey kCFDateFormatterCalendar;
extern const CFDateFormatterKey kCFDateFormatterEraSymbols;
extern const CFDateFormatterKey kCFDateFormatterMonthSymbols;
extern const CFDateFormatterKey kCFDateFormatterShortMonthSymbols;
extern const CFDateFormatterKey kCFDateFormatterWeekdaySymbols;
extern const CFDateFormatterKey kCFDateFormatterShortWeekdaySymbols;
extern const CFDateFormatterKey kCFDateFormatterAMSymbol;
extern const CFDateFormatterKey kCFDateFormatterPMSymbol;
extern const CFDateFormatterKey kCFDateFormatterLongEraSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFDateFormatterKey kCFDateFormatterVeryShortMonthSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFDateFormatterKey kCFDateFormatterStandaloneMonthSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFDateFormatterKey kCFDateFormatterShortStandaloneMonthSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFDateFormatterKey kCFDateFormatterVeryShortStandaloneMonthSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFDateFormatterKey kCFDateFormatterVeryShortWeekdaySymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFDateFormatterKey kCFDateFormatterStandaloneWeekdaySymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFDateFormatterKey kCFDateFormatterShortStandaloneWeekdaySymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFDateFormatterKey kCFDateFormatterVeryShortStandaloneWeekdaySymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFDateFormatterKey kCFDateFormatterQuarterSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFDateFormatterKey kCFDateFormatterShortQuarterSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFDateFormatterKey kCFDateFormatterStandaloneQuarterSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFDateFormatterKey kCFDateFormatterShortStandaloneQuarterSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFDateFormatterKey kCFDateFormatterGregorianStartDate __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFDateFormatterKey kCFDateFormatterDoesRelativeDateFormattingKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
}
extern "C" {
typedef CFStringRef CFErrorDomain __attribute__((swift_wrapper(struct)));
typedef struct __attribute__((objc_bridge(NSError))) __CFError * CFErrorRef;
extern
CFTypeID CFErrorGetTypeID(void) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFErrorDomain kCFErrorDomainPOSIX __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFErrorDomain kCFErrorDomainOSStatus __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFErrorDomain kCFErrorDomainMach __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFErrorDomain kCFErrorDomainCocoa __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFStringRef kCFErrorLocalizedDescriptionKey __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFStringRef kCFErrorLocalizedFailureKey __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
extern const CFStringRef kCFErrorLocalizedFailureReasonKey __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFStringRef kCFErrorLocalizedRecoverySuggestionKey __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFStringRef kCFErrorDescriptionKey __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFStringRef kCFErrorUnderlyingErrorKey __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFStringRef kCFErrorURLKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFStringRef kCFErrorFilePathKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFErrorRef CFErrorCreate(CFAllocatorRef allocator, CFErrorDomain domain, CFIndex code, CFDictionaryRef userInfo) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFErrorRef CFErrorCreateWithUserInfoKeysAndValues(CFAllocatorRef allocator, CFErrorDomain domain, CFIndex code, const void *const *userInfoKeys, const void *const *userInfoValues, CFIndex numUserInfoValues) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFErrorDomain CFErrorGetDomain(CFErrorRef err) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFIndex CFErrorGetCode(CFErrorRef err) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFDictionaryRef CFErrorCopyUserInfo(CFErrorRef err) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFStringRef CFErrorCopyDescription(CFErrorRef err) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFStringRef CFErrorCopyFailureReason(CFErrorRef err) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFStringRef CFErrorCopyRecoverySuggestion(CFErrorRef err) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
}
extern "C" {
typedef const struct __attribute__((objc_bridge(NSNumber))) __CFBoolean * CFBooleanRef;
extern
const CFBooleanRef kCFBooleanTrue;
extern
const CFBooleanRef kCFBooleanFalse;
extern
CFTypeID CFBooleanGetTypeID(void);
extern
Boolean CFBooleanGetValue(CFBooleanRef boolean);
typedef CFIndex CFNumberType; enum {
kCFNumberSInt8Type = 1,
kCFNumberSInt16Type = 2,
kCFNumberSInt32Type = 3,
kCFNumberSInt64Type = 4,
kCFNumberFloat32Type = 5,
kCFNumberFloat64Type = 6,
kCFNumberCharType = 7,
kCFNumberShortType = 8,
kCFNumberIntType = 9,
kCFNumberLongType = 10,
kCFNumberLongLongType = 11,
kCFNumberFloatType = 12,
kCFNumberDoubleType = 13,
kCFNumberCFIndexType = 14,
kCFNumberNSIntegerType __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 15,
kCFNumberCGFloatType __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 16,
kCFNumberMaxType = 16
};
typedef const struct __attribute__((objc_bridge(NSNumber))) __CFNumber * CFNumberRef;
extern
const CFNumberRef kCFNumberPositiveInfinity;
extern
const CFNumberRef kCFNumberNegativeInfinity;
extern
const CFNumberRef kCFNumberNaN;
extern
CFTypeID CFNumberGetTypeID(void);
extern
CFNumberRef CFNumberCreate(CFAllocatorRef allocator, CFNumberType theType, const void *valuePtr);
extern
CFNumberType CFNumberGetType(CFNumberRef number);
extern
CFIndex CFNumberGetByteSize(CFNumberRef number);
extern
Boolean CFNumberIsFloatType(CFNumberRef number);
extern
Boolean CFNumberGetValue(CFNumberRef number, CFNumberType theType, void *valuePtr);
extern
CFComparisonResult CFNumberCompare(CFNumberRef number, CFNumberRef otherNumber, void *context);
}
extern "C" {
typedef CFStringRef CFNumberFormatterKey __attribute__((swift_wrapper(enum)));
typedef struct __attribute__((objc_bridge_mutable(id))) __CFNumberFormatter *CFNumberFormatterRef;
extern
CFTypeID CFNumberFormatterGetTypeID(void);
typedef CFIndex CFNumberFormatterStyle; enum {
kCFNumberFormatterNoStyle = 0,
kCFNumberFormatterDecimalStyle = 1,
kCFNumberFormatterCurrencyStyle = 2,
kCFNumberFormatterPercentStyle = 3,
kCFNumberFormatterScientificStyle = 4,
kCFNumberFormatterSpellOutStyle = 5,
kCFNumberFormatterOrdinalStyle __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 6,
kCFNumberFormatterCurrencyISOCodeStyle __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 8,
kCFNumberFormatterCurrencyPluralStyle __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 9,
kCFNumberFormatterCurrencyAccountingStyle __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 10,
};
extern
CFNumberFormatterRef CFNumberFormatterCreate(CFAllocatorRef allocator, CFLocaleRef locale, CFNumberFormatterStyle style);
extern
CFLocaleRef CFNumberFormatterGetLocale(CFNumberFormatterRef formatter);
extern
CFNumberFormatterStyle CFNumberFormatterGetStyle(CFNumberFormatterRef formatter);
extern
CFStringRef CFNumberFormatterGetFormat(CFNumberFormatterRef formatter);
extern
void CFNumberFormatterSetFormat(CFNumberFormatterRef formatter, CFStringRef formatString);
extern
CFStringRef CFNumberFormatterCreateStringWithNumber(CFAllocatorRef allocator, CFNumberFormatterRef formatter, CFNumberRef number);
extern
CFStringRef CFNumberFormatterCreateStringWithValue(CFAllocatorRef allocator, CFNumberFormatterRef formatter, CFNumberType numberType, const void *valuePtr);
typedef CFOptionFlags CFNumberFormatterOptionFlags; enum {
kCFNumberFormatterParseIntegersOnly = 1
};
extern
CFNumberRef CFNumberFormatterCreateNumberFromString(CFAllocatorRef allocator, CFNumberFormatterRef formatter, CFStringRef string, CFRange *rangep, CFOptionFlags options);
extern
Boolean CFNumberFormatterGetValueFromString(CFNumberFormatterRef formatter, CFStringRef string, CFRange *rangep, CFNumberType numberType, void *valuePtr);
extern
void CFNumberFormatterSetProperty(CFNumberFormatterRef formatter, CFNumberFormatterKey key, CFTypeRef value);
extern
CFTypeRef CFNumberFormatterCopyProperty(CFNumberFormatterRef formatter, CFNumberFormatterKey key);
extern const CFNumberFormatterKey kCFNumberFormatterCurrencyCode;
extern const CFNumberFormatterKey kCFNumberFormatterDecimalSeparator;
extern const CFNumberFormatterKey kCFNumberFormatterCurrencyDecimalSeparator;
extern const CFNumberFormatterKey kCFNumberFormatterAlwaysShowDecimalSeparator;
extern const CFNumberFormatterKey kCFNumberFormatterGroupingSeparator;
extern const CFNumberFormatterKey kCFNumberFormatterUseGroupingSeparator;
extern const CFNumberFormatterKey kCFNumberFormatterPercentSymbol;
extern const CFNumberFormatterKey kCFNumberFormatterZeroSymbol;
extern const CFNumberFormatterKey kCFNumberFormatterNaNSymbol;
extern const CFNumberFormatterKey kCFNumberFormatterInfinitySymbol;
extern const CFNumberFormatterKey kCFNumberFormatterMinusSign;
extern const CFNumberFormatterKey kCFNumberFormatterPlusSign;
extern const CFNumberFormatterKey kCFNumberFormatterCurrencySymbol;
extern const CFNumberFormatterKey kCFNumberFormatterExponentSymbol;
extern const CFNumberFormatterKey kCFNumberFormatterMinIntegerDigits;
extern const CFNumberFormatterKey kCFNumberFormatterMaxIntegerDigits;
extern const CFNumberFormatterKey kCFNumberFormatterMinFractionDigits;
extern const CFNumberFormatterKey kCFNumberFormatterMaxFractionDigits;
extern const CFNumberFormatterKey kCFNumberFormatterGroupingSize;
extern const CFNumberFormatterKey kCFNumberFormatterSecondaryGroupingSize;
extern const CFNumberFormatterKey kCFNumberFormatterRoundingMode;
extern const CFNumberFormatterKey kCFNumberFormatterRoundingIncrement;
extern const CFNumberFormatterKey kCFNumberFormatterFormatWidth;
extern const CFNumberFormatterKey kCFNumberFormatterPaddingPosition;
extern const CFNumberFormatterKey kCFNumberFormatterPaddingCharacter;
extern const CFNumberFormatterKey kCFNumberFormatterDefaultFormat;
extern const CFNumberFormatterKey kCFNumberFormatterMultiplier;
extern const CFNumberFormatterKey kCFNumberFormatterPositivePrefix;
extern const CFNumberFormatterKey kCFNumberFormatterPositiveSuffix;
extern const CFNumberFormatterKey kCFNumberFormatterNegativePrefix;
extern const CFNumberFormatterKey kCFNumberFormatterNegativeSuffix;
extern const CFNumberFormatterKey kCFNumberFormatterPerMillSymbol;
extern const CFNumberFormatterKey kCFNumberFormatterInternationalCurrencySymbol;
extern const CFNumberFormatterKey kCFNumberFormatterCurrencyGroupingSeparator __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFNumberFormatterKey kCFNumberFormatterIsLenient __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFNumberFormatterKey kCFNumberFormatterUseSignificantDigits __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFNumberFormatterKey kCFNumberFormatterMinSignificantDigits __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern const CFNumberFormatterKey kCFNumberFormatterMaxSignificantDigits __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef CFIndex CFNumberFormatterRoundingMode; enum {
kCFNumberFormatterRoundCeiling = 0,
kCFNumberFormatterRoundFloor = 1,
kCFNumberFormatterRoundDown = 2,
kCFNumberFormatterRoundUp = 3,
kCFNumberFormatterRoundHalfEven = 4,
kCFNumberFormatterRoundHalfDown = 5,
kCFNumberFormatterRoundHalfUp = 6
};
typedef CFIndex CFNumberFormatterPadPosition; enum {
kCFNumberFormatterPadBeforePrefix = 0,
kCFNumberFormatterPadAfterPrefix = 1,
kCFNumberFormatterPadBeforeSuffix = 2,
kCFNumberFormatterPadAfterSuffix = 3
};
extern
Boolean CFNumberFormatterGetDecimalInfoForCurrencyCode(CFStringRef currencyCode, int32_t *defaultFractionDigits, double *roundingIncrement);
}
#pragma clang assume_nonnull begin
extern "C" {
extern
const CFStringRef kCFPreferencesAnyApplication;
extern
const CFStringRef kCFPreferencesCurrentApplication;
extern
const CFStringRef kCFPreferencesAnyHost;
extern
const CFStringRef kCFPreferencesCurrentHost;
extern
const CFStringRef kCFPreferencesAnyUser;
extern
const CFStringRef kCFPreferencesCurrentUser;
extern
_Nullable CFPropertyListRef CFPreferencesCopyAppValue(CFStringRef key, CFStringRef applicationID);
extern
Boolean CFPreferencesGetAppBooleanValue(CFStringRef key, CFStringRef applicationID, Boolean * _Nullable keyExistsAndHasValidFormat);
extern
CFIndex CFPreferencesGetAppIntegerValue(CFStringRef key, CFStringRef applicationID, Boolean * _Nullable keyExistsAndHasValidFormat);
extern
void CFPreferencesSetAppValue(CFStringRef key, _Nullable CFPropertyListRef value, CFStringRef applicationID);
extern
void CFPreferencesAddSuitePreferencesToApp(CFStringRef applicationID, CFStringRef suiteID);
extern
void CFPreferencesRemoveSuitePreferencesFromApp(CFStringRef applicationID, CFStringRef suiteID);
extern
Boolean CFPreferencesAppSynchronize(CFStringRef applicationID);
extern
_Nullable CFPropertyListRef CFPreferencesCopyValue(CFStringRef key, CFStringRef applicationID, CFStringRef userName, CFStringRef hostName);
extern
CFDictionaryRef CFPreferencesCopyMultiple(_Nullable CFArrayRef keysToFetch, CFStringRef applicationID, CFStringRef userName, CFStringRef hostName);
extern
void CFPreferencesSetValue(CFStringRef key, _Nullable CFPropertyListRef value, CFStringRef applicationID, CFStringRef userName, CFStringRef hostName);
extern
void CFPreferencesSetMultiple(_Nullable CFDictionaryRef keysToSet, _Nullable CFArrayRef keysToRemove, CFStringRef applicationID, CFStringRef userName, CFStringRef hostName);
extern
Boolean CFPreferencesSynchronize(CFStringRef applicationID, CFStringRef userName, CFStringRef hostName);
extern
_Nullable CFArrayRef CFPreferencesCopyApplicationList(CFStringRef userName, CFStringRef hostName) __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Unsupported API"))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Unsupported API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Unsupported API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Unsupported API")));
extern
_Nullable CFArrayRef CFPreferencesCopyKeyList(CFStringRef applicationID, CFStringRef userName, CFStringRef hostName);
extern
Boolean CFPreferencesAppValueIsForced(CFStringRef key, CFStringRef applicationID);
}
#pragma clang assume_nonnull end
extern "C" {
typedef CFIndex CFURLPathStyle; enum {
kCFURLPOSIXPathStyle = 0,
kCFURLHFSPathStyle __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Carbon File Manager is deprecated, use kCFURLPOSIXPathStyle where possible"))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Carbon File Manager is deprecated, use kCFURLPOSIXPathStyle where possible"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Carbon File Manager is deprecated, use kCFURLPOSIXPathStyle where possible"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Carbon File Manager is deprecated, use kCFURLPOSIXPathStyle where possible"))),
kCFURLWindowsPathStyle
};
typedef const struct __attribute__((objc_bridge(NSURL))) __CFURL * CFURLRef;
extern
CFTypeID CFURLGetTypeID(void);
extern
CFURLRef CFURLCreateWithBytes(CFAllocatorRef allocator, const UInt8 *URLBytes, CFIndex length, CFStringEncoding encoding, CFURLRef baseURL);
extern
CFDataRef CFURLCreateData(CFAllocatorRef allocator, CFURLRef url, CFStringEncoding encoding, Boolean escapeWhitespace);
extern
CFURLRef CFURLCreateWithString(CFAllocatorRef allocator, CFStringRef URLString, CFURLRef baseURL);
extern
CFURLRef CFURLCreateAbsoluteURLWithBytes(CFAllocatorRef alloc, const UInt8 *relativeURLBytes, CFIndex length, CFStringEncoding encoding, CFURLRef baseURL, Boolean useCompatibilityMode);
extern
CFURLRef CFURLCreateWithFileSystemPath(CFAllocatorRef allocator, CFStringRef filePath, CFURLPathStyle pathStyle, Boolean isDirectory);
extern
CFURLRef CFURLCreateFromFileSystemRepresentation(CFAllocatorRef allocator, const UInt8 *buffer, CFIndex bufLen, Boolean isDirectory);
extern
CFURLRef CFURLCreateWithFileSystemPathRelativeToBase(CFAllocatorRef allocator, CFStringRef filePath, CFURLPathStyle pathStyle, Boolean isDirectory, CFURLRef baseURL);
extern
CFURLRef CFURLCreateFromFileSystemRepresentationRelativeToBase(CFAllocatorRef allocator, const UInt8 *buffer, CFIndex bufLen, Boolean isDirectory, CFURLRef baseURL);
extern
Boolean CFURLGetFileSystemRepresentation(CFURLRef url, Boolean resolveAgainstBase, UInt8 *buffer, CFIndex maxBufLen);
extern
CFURLRef CFURLCopyAbsoluteURL(CFURLRef relativeURL);
extern
CFStringRef CFURLGetString(CFURLRef anURL);
extern
CFURLRef CFURLGetBaseURL(CFURLRef anURL);
extern
Boolean CFURLCanBeDecomposed(CFURLRef anURL);
extern
CFStringRef CFURLCopyScheme(CFURLRef anURL);
extern
CFStringRef CFURLCopyNetLocation(CFURLRef anURL);
extern
CFStringRef CFURLCopyPath(CFURLRef anURL);
extern
CFStringRef CFURLCopyStrictPath(CFURLRef anURL, Boolean *isAbsolute);
extern
CFStringRef CFURLCopyFileSystemPath(CFURLRef anURL, CFURLPathStyle pathStyle);
extern
Boolean CFURLHasDirectoryPath(CFURLRef anURL);
extern
CFStringRef CFURLCopyResourceSpecifier(CFURLRef anURL);
extern
CFStringRef CFURLCopyHostName(CFURLRef anURL);
extern
SInt32 CFURLGetPortNumber(CFURLRef anURL);
extern
CFStringRef CFURLCopyUserName(CFURLRef anURL);
extern
CFStringRef CFURLCopyPassword(CFURLRef anURL);
extern
CFStringRef CFURLCopyParameterString(CFURLRef anURL, CFStringRef charactersToLeaveEscaped) __attribute__((availability(macosx,introduced=10.2,deprecated=10.15,message="The CFURLCopyParameterString function is deprecated. Post deprecation for applications linked with or after the macOS 10.15, and for all iOS, watchOS, and tvOS applications, CFURLCopyParameterString will always return NULL, and the CFURLCopyPath(), CFURLCopyStrictPath(), and CFURLCopyFileSystemPath() functions will return the complete path including the semicolon separator and params component if the URL string contains them."))) __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="The CFURLCopyParameterString function is deprecated. Post deprecation for applications linked with or after the macOS 10.15, and for all iOS, watchOS, and tvOS applications, CFURLCopyParameterString will always return NULL, and the CFURLCopyPath(), CFURLCopyStrictPath(), and CFURLCopyFileSystemPath() functions will return the complete path including the semicolon separator and params component if the URL string contains them."))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="The CFURLCopyParameterString function is deprecated. Post deprecation for applications linked with or after the macOS 10.15, and for all iOS, watchOS, and tvOS applications, CFURLCopyParameterString will always return NULL, and the CFURLCopyPath(), CFURLCopyStrictPath(), and CFURLCopyFileSystemPath() functions will return the complete path including the semicolon separator and params component if the URL string contains them."))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="The CFURLCopyParameterString function is deprecated. Post deprecation for applications linked with or after the macOS 10.15, and for all iOS, watchOS, and tvOS applications, CFURLCopyParameterString will always return NULL, and the CFURLCopyPath(), CFURLCopyStrictPath(), and CFURLCopyFileSystemPath() functions will return the complete path including the semicolon separator and params component if the URL string contains them.")));
extern
CFStringRef CFURLCopyQueryString(CFURLRef anURL, CFStringRef charactersToLeaveEscaped);
extern
CFStringRef CFURLCopyFragment(CFURLRef anURL, CFStringRef charactersToLeaveEscaped);
extern
CFStringRef CFURLCopyLastPathComponent(CFURLRef url);
extern
CFStringRef CFURLCopyPathExtension(CFURLRef url);
extern
CFURLRef CFURLCreateCopyAppendingPathComponent(CFAllocatorRef allocator, CFURLRef url, CFStringRef pathComponent, Boolean isDirectory);
extern
CFURLRef CFURLCreateCopyDeletingLastPathComponent(CFAllocatorRef allocator, CFURLRef url);
extern
CFURLRef CFURLCreateCopyAppendingPathExtension(CFAllocatorRef allocator, CFURLRef url, CFStringRef extension);
extern
CFURLRef CFURLCreateCopyDeletingPathExtension(CFAllocatorRef allocator, CFURLRef url);
extern
CFIndex CFURLGetBytes(CFURLRef url, UInt8 *buffer, CFIndex bufferLength);
typedef CFIndex CFURLComponentType; enum {
kCFURLComponentScheme = 1,
kCFURLComponentNetLocation = 2,
kCFURLComponentPath = 3,
kCFURLComponentResourceSpecifier = 4,
kCFURLComponentUser = 5,
kCFURLComponentPassword = 6,
kCFURLComponentUserInfo = 7,
kCFURLComponentHost = 8,
kCFURLComponentPort = 9,
kCFURLComponentParameterString = 10,
kCFURLComponentQuery = 11,
kCFURLComponentFragment = 12
};
extern
CFRange CFURLGetByteRangeForComponent(CFURLRef url, CFURLComponentType component, CFRange *rangeIncludingSeparators);
extern
CFStringRef CFURLCreateStringByReplacingPercentEscapes(CFAllocatorRef allocator, CFStringRef originalString, CFStringRef charactersToLeaveEscaped);
extern
CFStringRef CFURLCreateStringByReplacingPercentEscapesUsingEncoding(CFAllocatorRef allocator, CFStringRef origString, CFStringRef charsToLeaveEscaped, CFStringEncoding encoding) __attribute__((availability(macos,introduced=10.0,deprecated=10.11,message="Use [NSString stringByRemovingPercentEncoding] or CFURLCreateStringByReplacingPercentEscapes() instead, which always uses the recommended UTF-8 encoding."))) __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="Use [NSString stringByRemovingPercentEncoding] or CFURLCreateStringByReplacingPercentEscapes() instead, which always uses the recommended UTF-8 encoding."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use [NSString stringByRemovingPercentEncoding] or CFURLCreateStringByReplacingPercentEscapes() instead, which always uses the recommended UTF-8 encoding."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use [NSString stringByRemovingPercentEncoding] or CFURLCreateStringByReplacingPercentEscapes() instead, which always uses the recommended UTF-8 encoding.")));
extern
CFStringRef CFURLCreateStringByAddingPercentEscapes(CFAllocatorRef allocator, CFStringRef originalString, CFStringRef charactersToLeaveUnescaped, CFStringRef legalURLCharactersToBeEscaped, CFStringEncoding encoding) __attribute__((availability(macos,introduced=10.0,deprecated=10.11,message="Use [NSString stringByAddingPercentEncodingWithAllowedCharacters:] instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent (since each URL component or subcomponent has different rules for what characters are valid)."))) __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="Use [NSString stringByAddingPercentEncodingWithAllowedCharacters:] instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent (since each URL component or subcomponent has different rules for what characters are valid)."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use [NSString stringByAddingPercentEncodingWithAllowedCharacters:] instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent (since each URL component or subcomponent has different rules for what characters are valid)."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use [NSString stringByAddingPercentEncodingWithAllowedCharacters:] instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent (since each URL component or subcomponent has different rules for what characters are valid).")));
extern
Boolean CFURLIsFileReferenceURL(CFURLRef url) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFURLRef CFURLCreateFileReferenceURL(CFAllocatorRef allocator, CFURLRef url, CFErrorRef *error) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFURLRef CFURLCreateFilePathURL(CFAllocatorRef allocator, CFURLRef url, CFErrorRef *error) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
struct FSRef;
extern
CFURLRef CFURLCreateFromFSRef(CFAllocatorRef allocator, const struct FSRef *fsRef) __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Not supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Not supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Not supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Not supported")));
extern
Boolean CFURLGetFSRef(CFURLRef url, struct FSRef *fsRef) __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Not supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Not supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Not supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Not supported")));
extern
Boolean CFURLCopyResourcePropertyForKey(CFURLRef url, CFStringRef key, void *propertyValueTypeRefPtr, CFErrorRef *error) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFDictionaryRef CFURLCopyResourcePropertiesForKeys(CFURLRef url, CFArrayRef keys, CFErrorRef *error) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
Boolean CFURLSetResourcePropertyForKey(CFURLRef url, CFStringRef key, CFTypeRef propertyValue, CFErrorRef *error) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
Boolean CFURLSetResourcePropertiesForKeys(CFURLRef url, CFDictionaryRef keyedPropertyValues, CFErrorRef *error) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLKeysOfUnsetValuesKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
void CFURLClearResourcePropertyCacheForKey(CFURLRef url, CFStringRef key) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
void CFURLClearResourcePropertyCache(CFURLRef url) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
void CFURLSetTemporaryResourcePropertyForKey(CFURLRef url, CFStringRef key, CFTypeRef propertyValue) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
Boolean CFURLResourceIsReachable(CFURLRef url, CFErrorRef *error) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLNameKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLLocalizedNameKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLIsRegularFileKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLIsDirectoryKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLIsSymbolicLinkKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLIsVolumeKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLIsPackageKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLIsApplicationKey __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLApplicationIsScriptableKey __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
const CFStringRef kCFURLIsSystemImmutableKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLIsUserImmutableKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLIsHiddenKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLHasHiddenExtensionKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLCreationDateKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLContentAccessDateKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLContentModificationDateKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLAttributeModificationDateKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLLinkCountKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLParentDirectoryURLKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeURLKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLTypeIdentifierKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLLocalizedTypeDescriptionKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLLabelNumberKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLLabelColorKey __attribute__((availability(macosx,introduced=10.6,deprecated=10.12,message="Use NSURLLabelColorKey"))) __attribute__((availability(ios,introduced=4.0,deprecated=10.0,message="Use NSURLLabelColorKey"))) __attribute__((availability(watchos,introduced=2.0,deprecated=3.0,message="Use NSURLLabelColorKey"))) __attribute__((availability(tvos,introduced=9.0,deprecated=10.0,message="Use NSURLLabelColorKey")));
extern
const CFStringRef kCFURLLocalizedLabelKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLEffectiveIconKey __attribute__((availability(macosx,introduced=10.6,deprecated=10.12,message="Use NSURLEffectiveIconKey"))) __attribute__((availability(ios,introduced=4.0,deprecated=10.0,message="Use NSURLEffectiveIconKey"))) __attribute__((availability(watchos,introduced=2.0,deprecated=3.0,message="Use NSURLEffectiveIconKey"))) __attribute__((availability(tvos,introduced=9.0,deprecated=10.0,message="Use NSURLEffectiveIconKey")));
extern
const CFStringRef kCFURLCustomIconKey __attribute__((availability(macosx,introduced=10.6,deprecated=10.12,message="Use NSURLCustomIconKey"))) __attribute__((availability(ios,introduced=4.0,deprecated=10.0,message="Use NSURLCustomIconKey"))) __attribute__((availability(watchos,introduced=2.0,deprecated=3.0,message="Use NSURLCustomIconKey"))) __attribute__((availability(tvos,introduced=9.0,deprecated=10.0,message="Use NSURLCustomIconKey")));
extern
const CFStringRef kCFURLFileResourceIdentifierKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeIdentifierKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLPreferredIOBlockSizeKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLIsReadableKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLIsWritableKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLIsExecutableKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLFileSecurityKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLIsExcludedFromBackupKey __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=5.1))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLTagNamesKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
const CFStringRef kCFURLPathKey __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLCanonicalPathKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
extern
const CFStringRef kCFURLIsMountTriggerKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLGenerationIdentifierKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLDocumentIdentifierKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLAddedToDirectoryDateKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLQuarantinePropertiesKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
const CFStringRef kCFURLFileResourceTypeKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLFileResourceTypeNamedPipe __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLFileResourceTypeCharacterSpecial __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLFileResourceTypeDirectory __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLFileResourceTypeBlockSpecial __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLFileResourceTypeRegular __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLFileResourceTypeSymbolicLink __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLFileResourceTypeSocket __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLFileResourceTypeUnknown __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLFileSizeKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLFileAllocatedSizeKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLTotalFileSizeKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLTotalFileAllocatedSizeKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLIsAliasFileKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLFileProtectionKey __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
extern
const CFStringRef kCFURLFileProtectionNone __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
extern
const CFStringRef kCFURLFileProtectionComplete __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
extern
const CFStringRef kCFURLFileProtectionCompleteUnlessOpen __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
extern
const CFStringRef kCFURLFileProtectionCompleteUntilFirstUserAuthentication __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
extern
const CFStringRef kCFURLVolumeLocalizedFormatDescriptionKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeTotalCapacityKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeAvailableCapacityKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeAvailableCapacityForImportantUsageKey __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
const CFStringRef kCFURLVolumeAvailableCapacityForOpportunisticUsageKey __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
const CFStringRef kCFURLVolumeResourceCountKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeSupportsPersistentIDsKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeSupportsSymbolicLinksKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeSupportsHardLinksKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeSupportsJournalingKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeIsJournalingKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeSupportsSparseFilesKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeSupportsZeroRunsKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeSupportsCaseSensitiveNamesKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeSupportsCasePreservedNamesKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeSupportsRootDirectoryDatesKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeSupportsVolumeSizesKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeSupportsRenamingKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeSupportsAdvisoryFileLockingKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeSupportsExtendedSecurityKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeIsBrowsableKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeMaximumFileSizeKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeIsEjectableKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeIsRemovableKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeIsInternalKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeIsAutomountedKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeIsLocalKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeIsReadOnlyKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeCreationDateKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeURLForRemountingKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeUUIDStringKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeNameKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeLocalizedNameKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLVolumeIsEncryptedKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
extern
const CFStringRef kCFURLVolumeIsRootFileSystemKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
extern
const CFStringRef kCFURLVolumeSupportsCompressionKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
extern
const CFStringRef kCFURLVolumeSupportsFileCloningKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
extern
const CFStringRef kCFURLVolumeSupportsSwapRenamingKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
extern
const CFStringRef kCFURLVolumeSupportsExclusiveRenamingKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
extern
const CFStringRef kCFURLVolumeSupportsImmutableFilesKey __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
extern
const CFStringRef kCFURLVolumeSupportsAccessPermissionsKey __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
extern
const CFStringRef kCFURLIsUbiquitousItemKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLUbiquitousItemHasUnresolvedConflictsKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLUbiquitousItemIsDownloadedKey __attribute__((availability(macos,introduced=10.7,deprecated=10.9,message="Use kCFURLUbiquitousItemDownloadingStatusKey instead"))) __attribute__((availability(ios,introduced=5.0,deprecated=7.0,message="Use kCFURLUbiquitousItemDownloadingStatusKey instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use kCFURLUbiquitousItemDownloadingStatusKey instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use kCFURLUbiquitousItemDownloadingStatusKey instead")));
extern
const CFStringRef kCFURLUbiquitousItemIsDownloadingKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLUbiquitousItemIsUploadedKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLUbiquitousItemIsUploadingKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLUbiquitousItemPercentDownloadedKey __attribute__((availability(macos,introduced=10.7,deprecated=10.8,message="Use NSMetadataQuery and NSMetadataUbiquitousItemPercentDownloadedKey on NSMetadataItem instead"))) __attribute__((availability(ios,introduced=5.0,deprecated=6.0,message="Use NSMetadataQuery and NSMetadataUbiquitousItemPercentDownloadedKey on NSMetadataItem instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use NSMetadataQuery and NSMetadataUbiquitousItemPercentDownloadedKey on NSMetadataItem instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use NSMetadataQuery and NSMetadataUbiquitousItemPercentDownloadedKey on NSMetadataItem instead")));
extern
const CFStringRef kCFURLUbiquitousItemPercentUploadedKey __attribute__((availability(macos,introduced=10.7,deprecated=10.8,message="Use NSMetadataQuery and NSMetadataUbiquitousItemPercentUploadedKey on NSMetadataItem instead"))) __attribute__((availability(ios,introduced=5.0,deprecated=6.0,message="Use NSMetadataQuery and NSMetadataUbiquitousItemPercentUploadedKey on NSMetadataItem instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use NSMetadataQuery and NSMetadataUbiquitousItemPercentUploadedKey on NSMetadataItem instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use NSMetadataQuery and NSMetadataUbiquitousItemPercentUploadedKey on NSMetadataItem instead")));
extern
const CFStringRef kCFURLUbiquitousItemDownloadingStatusKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLUbiquitousItemDownloadingErrorKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLUbiquitousItemUploadingErrorKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLUbiquitousItemDownloadingStatusNotDownloaded __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLUbiquitousItemDownloadingStatusDownloaded __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
const CFStringRef kCFURLUbiquitousItemDownloadingStatusCurrent __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef CFOptionFlags CFURLBookmarkCreationOptions; enum {
kCFURLBookmarkCreationMinimalBookmarkMask = ( 1UL << 9 ),
kCFURLBookmarkCreationSuitableForBookmarkFile = ( 1UL << 10 ),
kCFURLBookmarkCreationWithSecurityScope __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(macCatalyst,introduced=13.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = ( 1UL << 11 ),
kCFURLBookmarkCreationSecurityScopeAllowOnlyReadAccess __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(macCatalyst,introduced=13.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = ( 1UL << 12 ),
kCFURLBookmarkCreationPreferFileIDResolutionMask
__attribute__((availability(macos,introduced=10.6,deprecated=10.9,message="kCFURLBookmarkCreationPreferFileIDResolutionMask does nothing and has no effect on bookmark resolution"))) __attribute__((availability(ios,introduced=4.0,deprecated=7.0,message="kCFURLBookmarkCreationPreferFileIDResolutionMask does nothing and has no effect on bookmark resolution"))) = ( 1UL << 8 ),
} __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef CFOptionFlags CFURLBookmarkResolutionOptions; enum {
kCFURLBookmarkResolutionWithoutUIMask = ( 1UL << 8 ),
kCFURLBookmarkResolutionWithoutMountingMask = ( 1UL << 9 ),
kCFURLBookmarkResolutionWithSecurityScope __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(macCatalyst,introduced=13.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = ( 1UL << 10 ),
kCFBookmarkResolutionWithoutUIMask = kCFURLBookmarkResolutionWithoutUIMask,
kCFBookmarkResolutionWithoutMountingMask = kCFURLBookmarkResolutionWithoutMountingMask,
} __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef CFOptionFlags CFURLBookmarkFileCreationOptions;
extern
CFDataRef CFURLCreateBookmarkData ( CFAllocatorRef allocator, CFURLRef url, CFURLBookmarkCreationOptions options, CFArrayRef resourcePropertiesToInclude, CFURLRef relativeToURL, CFErrorRef* error ) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFURLRef CFURLCreateByResolvingBookmarkData ( CFAllocatorRef allocator, CFDataRef bookmark, CFURLBookmarkResolutionOptions options, CFURLRef relativeToURL, CFArrayRef resourcePropertiesToInclude, Boolean* isStale, CFErrorRef* error ) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFDictionaryRef CFURLCreateResourcePropertiesForKeysFromBookmarkData ( CFAllocatorRef allocator, CFArrayRef resourcePropertiesToReturn, CFDataRef bookmark ) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFTypeRef CFURLCreateResourcePropertyForKeyFromBookmarkData( CFAllocatorRef allocator, CFStringRef resourcePropertyKey, CFDataRef bookmark ) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFDataRef CFURLCreateBookmarkDataFromFile(CFAllocatorRef allocator, CFURLRef fileURL, CFErrorRef *errorRef ) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
Boolean CFURLWriteBookmarkDataToFile( CFDataRef bookmarkRef, CFURLRef fileURL, CFURLBookmarkFileCreationOptions options, CFErrorRef *errorRef ) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFDataRef CFURLCreateBookmarkDataFromAliasRecord ( CFAllocatorRef allocatorRef, CFDataRef aliasRecordDataRef ) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
Boolean CFURLStartAccessingSecurityScopedResource(CFURLRef url) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
void CFURLStopAccessingSecurityScopedResource(CFURLRef url) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
}
typedef int boolean_t;
typedef __darwin_natural_t natural_t;
typedef int integer_t;
typedef uintptr_t vm_offset_t;
typedef uintptr_t vm_size_t;
typedef uint64_t mach_vm_address_t;
typedef uint64_t mach_vm_offset_t;
typedef uint64_t mach_vm_size_t;
typedef uint64_t vm_map_offset_t;
typedef uint64_t vm_map_address_t;
typedef uint64_t vm_map_size_t;
typedef uint32_t vm32_offset_t;
typedef uint32_t vm32_address_t;
typedef uint32_t vm32_size_t;
typedef vm_offset_t mach_port_context_t;
typedef natural_t mach_port_name_t;
typedef mach_port_name_t *mach_port_name_array_t;
typedef __darwin_mach_port_t mach_port_t;
typedef mach_port_t *mach_port_array_t;
typedef natural_t mach_port_right_t;
typedef natural_t mach_port_type_t;
typedef mach_port_type_t *mach_port_type_array_t;
typedef natural_t mach_port_urefs_t;
typedef integer_t mach_port_delta_t;
typedef natural_t mach_port_seqno_t;
typedef natural_t mach_port_mscount_t;
typedef natural_t mach_port_msgcount_t;
typedef natural_t mach_port_rights_t;
typedef unsigned int mach_port_srights_t;
typedef struct mach_port_status {
mach_port_rights_t mps_pset;
mach_port_seqno_t mps_seqno;
mach_port_mscount_t mps_mscount;
mach_port_msgcount_t mps_qlimit;
mach_port_msgcount_t mps_msgcount;
mach_port_rights_t mps_sorights;
boolean_t mps_srights;
boolean_t mps_pdrequest;
boolean_t mps_nsrequest;
natural_t mps_flags;
} mach_port_status_t;
typedef struct mach_port_limits {
mach_port_msgcount_t mpl_qlimit;
} mach_port_limits_t;
typedef struct mach_port_info_ext {
mach_port_status_t mpie_status;
mach_port_msgcount_t mpie_boost_cnt;
uint32_t reserved[6];
} mach_port_info_ext_t;
typedef integer_t *mach_port_info_t;
typedef int mach_port_flavor_t;
typedef struct mach_port_qos {
unsigned int name:1;
unsigned int prealloc:1;
boolean_t pad1:30;
natural_t len;
} mach_port_qos_t;
typedef struct mach_port_options {
uint32_t flags;
mach_port_limits_t mpl;
uint64_t reserved[2];
}mach_port_options_t;
typedef mach_port_options_t *mach_port_options_ptr_t;
enum mach_port_guard_exception_codes {
kGUARD_EXC_DESTROY = 1u << 0,
kGUARD_EXC_MOD_REFS = 1u << 1,
kGUARD_EXC_SET_CONTEXT = 1u << 2,
kGUARD_EXC_UNGUARDED = 1u << 3,
kGUARD_EXC_INCORRECT_GUARD = 1u << 4,
kGUARD_EXC_IMMOVABLE = 1u << 5,
kGUARD_EXC_STRICT_REPLY = 1u << 6,
kGUARD_EXC_INVALID_RIGHT = 1u << 8,
kGUARD_EXC_INVALID_NAME = 1u << 9,
kGUARD_EXC_INVALID_VALUE = 1u << 10,
kGUARD_EXC_INVALID_ARGUMENT = 1u << 11,
kGUARD_EXC_RIGHT_EXISTS = 1u << 12,
kGUARD_EXC_KERN_NO_SPACE = 1u << 13,
kGUARD_EXC_KERN_FAILURE = 1u << 14,
kGUARD_EXC_KERN_RESOURCE = 1u << 15,
kGUARD_EXC_SEND_INVALID_REPLY = 1u << 16,
kGUARD_EXC_SEND_INVALID_VOUCHER = 1u << 17,
kGUARD_EXC_SEND_INVALID_RIGHT = 1u << 18,
kGUARD_EXC_RCV_INVALID_NAME = 1u << 19,
kGUARD_EXC_RCV_GUARDED_DESC = 1u << 20,
};
extern "C" {
typedef CFStringRef CFRunLoopMode __attribute__((swift_wrapper(struct)));
typedef struct __attribute__((objc_bridge_mutable(id))) __CFRunLoop * CFRunLoopRef;
typedef struct __attribute__((objc_bridge_mutable(id))) __CFRunLoopSource * CFRunLoopSourceRef;
typedef struct __attribute__((objc_bridge_mutable(id))) __CFRunLoopObserver * CFRunLoopObserverRef;
typedef struct __attribute__((objc_bridge_mutable(NSTimer))) __CFRunLoopTimer * CFRunLoopTimerRef;
typedef SInt32 CFRunLoopRunResult; enum {
kCFRunLoopRunFinished = 1,
kCFRunLoopRunStopped = 2,
kCFRunLoopRunTimedOut = 3,
kCFRunLoopRunHandledSource = 4
};
typedef CFOptionFlags CFRunLoopActivity; enum {
kCFRunLoopEntry = (1UL << 0),
kCFRunLoopBeforeTimers = (1UL << 1),
kCFRunLoopBeforeSources = (1UL << 2),
kCFRunLoopBeforeWaiting = (1UL << 5),
kCFRunLoopAfterWaiting = (1UL << 6),
kCFRunLoopExit = (1UL << 7),
kCFRunLoopAllActivities = 0x0FFFFFFFU
};
extern const CFRunLoopMode kCFRunLoopDefaultMode;
extern const CFRunLoopMode kCFRunLoopCommonModes;
extern CFTypeID CFRunLoopGetTypeID(void);
extern CFRunLoopRef CFRunLoopGetCurrent(void);
extern CFRunLoopRef CFRunLoopGetMain(void);
extern CFRunLoopMode CFRunLoopCopyCurrentMode(CFRunLoopRef rl);
extern CFArrayRef CFRunLoopCopyAllModes(CFRunLoopRef rl);
extern void CFRunLoopAddCommonMode(CFRunLoopRef rl, CFRunLoopMode mode);
extern CFAbsoluteTime CFRunLoopGetNextTimerFireDate(CFRunLoopRef rl, CFRunLoopMode mode);
extern void CFRunLoopRun(void);
extern CFRunLoopRunResult CFRunLoopRunInMode(CFRunLoopMode mode, CFTimeInterval seconds, Boolean returnAfterSourceHandled);
extern Boolean CFRunLoopIsWaiting(CFRunLoopRef rl);
extern void CFRunLoopWakeUp(CFRunLoopRef rl);
extern void CFRunLoopStop(CFRunLoopRef rl);
extern void CFRunLoopPerformBlock(CFRunLoopRef rl, CFTypeRef mode, void (*block)(void)) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern Boolean CFRunLoopContainsSource(CFRunLoopRef rl, CFRunLoopSourceRef source, CFRunLoopMode mode);
extern void CFRunLoopAddSource(CFRunLoopRef rl, CFRunLoopSourceRef source, CFRunLoopMode mode);
extern void CFRunLoopRemoveSource(CFRunLoopRef rl, CFRunLoopSourceRef source, CFRunLoopMode mode);
extern Boolean CFRunLoopContainsObserver(CFRunLoopRef rl, CFRunLoopObserverRef observer, CFRunLoopMode mode);
extern void CFRunLoopAddObserver(CFRunLoopRef rl, CFRunLoopObserverRef observer, CFRunLoopMode mode);
extern void CFRunLoopRemoveObserver(CFRunLoopRef rl, CFRunLoopObserverRef observer, CFRunLoopMode mode);
extern Boolean CFRunLoopContainsTimer(CFRunLoopRef rl, CFRunLoopTimerRef timer, CFRunLoopMode mode);
extern void CFRunLoopAddTimer(CFRunLoopRef rl, CFRunLoopTimerRef timer, CFRunLoopMode mode);
extern void CFRunLoopRemoveTimer(CFRunLoopRef rl, CFRunLoopTimerRef timer, CFRunLoopMode mode);
typedef struct {
CFIndex version;
void * info;
const void *(*retain)(const void *info);
void (*release)(const void *info);
CFStringRef (*copyDescription)(const void *info);
Boolean (*equal)(const void *info1, const void *info2);
CFHashCode (*hash)(const void *info);
void (*schedule)(void *info, CFRunLoopRef rl, CFRunLoopMode mode);
void (*cancel)(void *info, CFRunLoopRef rl, CFRunLoopMode mode);
void (*perform)(void *info);
} CFRunLoopSourceContext;
typedef struct {
CFIndex version;
void * info;
const void *(*retain)(const void *info);
void (*release)(const void *info);
CFStringRef (*copyDescription)(const void *info);
Boolean (*equal)(const void *info1, const void *info2);
CFHashCode (*hash)(const void *info);
mach_port_t (*getPort)(void *info);
void * (*perform)(void *msg, CFIndex size, CFAllocatorRef allocator, void *info);
} CFRunLoopSourceContext1;
extern CFTypeID CFRunLoopSourceGetTypeID(void);
extern CFRunLoopSourceRef CFRunLoopSourceCreate(CFAllocatorRef allocator, CFIndex order, CFRunLoopSourceContext *context);
extern CFIndex CFRunLoopSourceGetOrder(CFRunLoopSourceRef source);
extern void CFRunLoopSourceInvalidate(CFRunLoopSourceRef source);
extern Boolean CFRunLoopSourceIsValid(CFRunLoopSourceRef source);
extern void CFRunLoopSourceGetContext(CFRunLoopSourceRef source, CFRunLoopSourceContext *context);
extern void CFRunLoopSourceSignal(CFRunLoopSourceRef source);
typedef struct {
CFIndex version;
void * info;
const void *(*retain)(const void *info);
void (*release)(const void *info);
CFStringRef (*copyDescription)(const void *info);
} CFRunLoopObserverContext;
typedef void (*CFRunLoopObserverCallBack)(CFRunLoopObserverRef observer, CFRunLoopActivity activity, void *info);
extern CFTypeID CFRunLoopObserverGetTypeID(void);
extern CFRunLoopObserverRef CFRunLoopObserverCreate(CFAllocatorRef allocator, CFOptionFlags activities, Boolean repeats, CFIndex order, CFRunLoopObserverCallBack callout, CFRunLoopObserverContext *context);
extern CFRunLoopObserverRef CFRunLoopObserverCreateWithHandler(CFAllocatorRef allocator, CFOptionFlags activities, Boolean repeats, CFIndex order, void (*block) (CFRunLoopObserverRef observer, CFRunLoopActivity activity)) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern CFOptionFlags CFRunLoopObserverGetActivities(CFRunLoopObserverRef observer);
extern Boolean CFRunLoopObserverDoesRepeat(CFRunLoopObserverRef observer);
extern CFIndex CFRunLoopObserverGetOrder(CFRunLoopObserverRef observer);
extern void CFRunLoopObserverInvalidate(CFRunLoopObserverRef observer);
extern Boolean CFRunLoopObserverIsValid(CFRunLoopObserverRef observer);
extern void CFRunLoopObserverGetContext(CFRunLoopObserverRef observer, CFRunLoopObserverContext *context);
typedef struct {
CFIndex version;
void * info;
const void *(*retain)(const void *info);
void (*release)(const void *info);
CFStringRef (*copyDescription)(const void *info);
} CFRunLoopTimerContext;
typedef void (*CFRunLoopTimerCallBack)(CFRunLoopTimerRef timer, void *info);
extern CFTypeID CFRunLoopTimerGetTypeID(void);
extern CFRunLoopTimerRef CFRunLoopTimerCreate(CFAllocatorRef allocator, CFAbsoluteTime fireDate, CFTimeInterval interval, CFOptionFlags flags, CFIndex order, CFRunLoopTimerCallBack callout, CFRunLoopTimerContext *context);
extern CFRunLoopTimerRef CFRunLoopTimerCreateWithHandler(CFAllocatorRef allocator, CFAbsoluteTime fireDate, CFTimeInterval interval, CFOptionFlags flags, CFIndex order, void (*block) (CFRunLoopTimerRef timer)) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern CFAbsoluteTime CFRunLoopTimerGetNextFireDate(CFRunLoopTimerRef timer);
extern void CFRunLoopTimerSetNextFireDate(CFRunLoopTimerRef timer, CFAbsoluteTime fireDate);
extern CFTimeInterval CFRunLoopTimerGetInterval(CFRunLoopTimerRef timer);
extern Boolean CFRunLoopTimerDoesRepeat(CFRunLoopTimerRef timer);
extern CFIndex CFRunLoopTimerGetOrder(CFRunLoopTimerRef timer);
extern void CFRunLoopTimerInvalidate(CFRunLoopTimerRef timer);
extern Boolean CFRunLoopTimerIsValid(CFRunLoopTimerRef timer);
extern void CFRunLoopTimerGetContext(CFRunLoopTimerRef timer, CFRunLoopTimerContext *context);
extern CFTimeInterval CFRunLoopTimerGetTolerance(CFRunLoopTimerRef timer) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern void CFRunLoopTimerSetTolerance(CFRunLoopTimerRef timer, CFTimeInterval tolerance) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
}
extern "C" {
typedef struct __attribute__((objc_bridge_mutable(id))) __CFSocket * CFSocketRef;
typedef CFIndex CFSocketError; enum {
kCFSocketSuccess = 0,
kCFSocketError = -1L,
kCFSocketTimeout = -2L
};
typedef struct {
SInt32 protocolFamily;
SInt32 socketType;
SInt32 protocol;
CFDataRef address;
} CFSocketSignature;
typedef CFOptionFlags CFSocketCallBackType; enum {
kCFSocketNoCallBack = 0,
kCFSocketReadCallBack = 1,
kCFSocketAcceptCallBack = 2,
kCFSocketDataCallBack = 3,
kCFSocketConnectCallBack = 4,
kCFSocketWriteCallBack = 8
};
enum {
kCFSocketAutomaticallyReenableReadCallBack = 1,
kCFSocketAutomaticallyReenableAcceptCallBack = 2,
kCFSocketAutomaticallyReenableDataCallBack = 3,
kCFSocketAutomaticallyReenableWriteCallBack = 8,
kCFSocketLeaveErrors __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 64,
kCFSocketCloseOnInvalidate = 128
};
typedef void (*CFSocketCallBack)(CFSocketRef s, CFSocketCallBackType type, CFDataRef address, const void *data, void *info);
typedef struct {
CFIndex version;
void * info;
const void *(*retain)(const void *info);
void (*release)(const void *info);
CFStringRef (*copyDescription)(const void *info);
} CFSocketContext;
typedef int CFSocketNativeHandle;
extern CFTypeID CFSocketGetTypeID(void);
extern CFSocketRef CFSocketCreate(CFAllocatorRef allocator, SInt32 protocolFamily, SInt32 socketType, SInt32 protocol, CFOptionFlags callBackTypes, CFSocketCallBack callout, const CFSocketContext *context);
extern CFSocketRef CFSocketCreateWithNative(CFAllocatorRef allocator, CFSocketNativeHandle sock, CFOptionFlags callBackTypes, CFSocketCallBack callout, const CFSocketContext *context);
extern CFSocketRef CFSocketCreateWithSocketSignature(CFAllocatorRef allocator, const CFSocketSignature *signature, CFOptionFlags callBackTypes, CFSocketCallBack callout, const CFSocketContext *context);
extern CFSocketRef CFSocketCreateConnectedToSocketSignature(CFAllocatorRef allocator, const CFSocketSignature *signature, CFOptionFlags callBackTypes, CFSocketCallBack callout, const CFSocketContext *context, CFTimeInterval timeout);
extern CFSocketError CFSocketSetAddress(CFSocketRef s, CFDataRef address);
extern CFSocketError CFSocketConnectToAddress(CFSocketRef s, CFDataRef address, CFTimeInterval timeout);
extern void CFSocketInvalidate(CFSocketRef s);
extern Boolean CFSocketIsValid(CFSocketRef s);
extern CFDataRef CFSocketCopyAddress(CFSocketRef s);
extern CFDataRef CFSocketCopyPeerAddress(CFSocketRef s);
extern void CFSocketGetContext(CFSocketRef s, CFSocketContext *context);
extern CFSocketNativeHandle CFSocketGetNative(CFSocketRef s);
extern CFRunLoopSourceRef CFSocketCreateRunLoopSource(CFAllocatorRef allocator, CFSocketRef s, CFIndex order);
extern CFOptionFlags CFSocketGetSocketFlags(CFSocketRef s);
extern void CFSocketSetSocketFlags(CFSocketRef s, CFOptionFlags flags);
extern void CFSocketDisableCallBacks(CFSocketRef s, CFOptionFlags callBackTypes);
extern void CFSocketEnableCallBacks(CFSocketRef s, CFOptionFlags callBackTypes);
extern CFSocketError CFSocketSendData(CFSocketRef s, CFDataRef address, CFDataRef data, CFTimeInterval timeout);
extern CFSocketError CFSocketRegisterValue(const CFSocketSignature *nameServerSignature, CFTimeInterval timeout, CFStringRef name, CFPropertyListRef value);
extern CFSocketError CFSocketCopyRegisteredValue(const CFSocketSignature *nameServerSignature, CFTimeInterval timeout, CFStringRef name, CFPropertyListRef *value, CFDataRef *nameServerAddress);
extern CFSocketError CFSocketRegisterSocketSignature(const CFSocketSignature *nameServerSignature, CFTimeInterval timeout, CFStringRef name, const CFSocketSignature *signature);
extern CFSocketError CFSocketCopyRegisteredSocketSignature(const CFSocketSignature *nameServerSignature, CFTimeInterval timeout, CFStringRef name, CFSocketSignature *signature, CFDataRef *nameServerAddress);
extern CFSocketError CFSocketUnregister(const CFSocketSignature *nameServerSignature, CFTimeInterval timeout, CFStringRef name);
extern void CFSocketSetDefaultNameRegistryPortNumber(UInt16 port);
extern UInt16 CFSocketGetDefaultNameRegistryPortNumber(void);
extern const CFStringRef kCFSocketCommandKey;
extern const CFStringRef kCFSocketNameKey;
extern const CFStringRef kCFSocketValueKey;
extern const CFStringRef kCFSocketResultKey;
extern const CFStringRef kCFSocketErrorKey;
extern const CFStringRef kCFSocketRegisterCommand;
extern const CFStringRef kCFSocketRetrieveCommand;
}
typedef void (*os_function_t)(void *_Nullable);
typedef void (*os_block_t)(void);
struct accessx_descriptor {
unsigned int ad_name_offset;
int ad_flags;
int ad_pad[2];
};
extern "C" {
int getattrlistbulk(int, void *, void *, size_t, uint64_t) __attribute__((availability(ios,introduced=8.0)));
int getattrlistat(int, const char *, void *, void *, size_t, unsigned long) __attribute__((availability(ios,introduced=8.0)));
int setattrlistat(int, const char *, void *, void *, size_t, uint32_t) __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
}
extern "C" {
int faccessat(int, const char *, int, int) __attribute__((availability(ios,introduced=8.0)));
int fchownat(int, const char *, uid_t, gid_t, int) __attribute__((availability(ios,introduced=8.0)));
int linkat(int, const char *, int, const char *, int) __attribute__((availability(ios,introduced=8.0)));
ssize_t readlinkat(int, const char *, char *, size_t) __attribute__((availability(ios,introduced=8.0)));
int symlinkat(const char *, int, const char *) __attribute__((availability(ios,introduced=8.0)));
int unlinkat(int, const char *, int) __attribute__((availability(ios,introduced=8.0)));
}
extern "C" {
void _exit(int) __attribute__((__noreturn__));
int access(const char *, int);
unsigned int
alarm(unsigned int);
int chdir(const char *);
int chown(const char *, uid_t, gid_t);
int close(int) __asm("_" "close" );
int dup(int);
int dup2(int, int);
int execl(const char * __path, const char * __arg0, ...) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
int execle(const char * __path, const char * __arg0, ...) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
int execlp(const char * __file, const char * __arg0, ...) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
int execv(const char * __path, char * const * __argv) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
int execve(const char * __file, char * const * __argv, char * const * __envp) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
int execvp(const char * __file, char * const * __argv) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
pid_t fork(void) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
long fpathconf(int, int);
char *getcwd(char *, size_t);
gid_t getegid(void);
uid_t geteuid(void);
gid_t getgid(void);
int getgroups(int, gid_t []);
char *getlogin(void);
pid_t getpgrp(void);
pid_t getpid(void);
pid_t getppid(void);
uid_t getuid(void);
int isatty(int);
int link(const char *, const char *);
off_t lseek(int, off_t, int);
long pathconf(const char *, int);
int pause(void) __asm("_" "pause" );
int pipe(int [2]);
ssize_t read(int, void *, size_t) __asm("_" "read" );
int rmdir(const char *);
int setgid(gid_t);
int setpgid(pid_t, pid_t);
pid_t setsid(void);
int setuid(uid_t);
unsigned int
sleep(unsigned int) __asm("_" "sleep" );
long sysconf(int);
pid_t tcgetpgrp(int);
int tcsetpgrp(int, pid_t);
char *ttyname(int);
int ttyname_r(int, char *, size_t) __asm("_" "ttyname_r" );
int unlink(const char *);
ssize_t write(int __fd, const void * __buf, size_t __nbyte) __asm("_" "write" );
}
extern "C" {
size_t confstr(int, char *, size_t) __asm("_" "confstr" );
int getopt(int, char * const [], const char *) __asm("_" "getopt" );
extern char *optarg;
extern int optind, opterr, optopt;
}
extern "C" {
__attribute__((__deprecated__)) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)))
void *brk(const void *);
int chroot(const char *) ;
char *crypt(const char *, const char *);
void encrypt(char *, int) __asm("_" "encrypt" );
int fchdir(int);
long gethostid(void);
pid_t getpgid(pid_t);
pid_t getsid(pid_t);
int getdtablesize(void) ;
int getpagesize(void) __attribute__((__const__)) ;
char *getpass(const char *) ;
char *getwd(char *) ;
int lchown(const char *, uid_t, gid_t) __asm("_" "lchown" );
int lockf(int, int, off_t) __asm("_" "lockf" );
int nice(int) __asm("_" "nice" );
ssize_t pread(int __fd, void * __buf, size_t __nbyte, off_t __offset) __asm("_" "pread" );
ssize_t pwrite(int __fd, const void * __buf, size_t __nbyte, off_t __offset) __asm("_" "pwrite" );
__attribute__((__deprecated__)) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)))
void *sbrk(int);
pid_t setpgrp(void) __asm("_" "setpgrp" );
int setregid(gid_t, gid_t) __asm("_" "setregid" );
int setreuid(uid_t, uid_t) __asm("_" "setreuid" );
void swab(const void * , void * , ssize_t);
void sync(void);
int truncate(const char *, off_t);
useconds_t ualarm(useconds_t, useconds_t);
int usleep(useconds_t) __asm("_" "usleep" );
pid_t vfork(void) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
int fsync(int) __asm("_" "fsync" );
int ftruncate(int, off_t);
int getlogin_r(char *, size_t);
}
extern "C" {
int fchown(int, uid_t, gid_t);
int gethostname(char *, size_t);
ssize_t readlink(const char * , char * , size_t);
int setegid(gid_t);
int seteuid(uid_t);
int symlink(const char *, const char *);
}
extern "C" {
int pselect(int, fd_set * , fd_set * ,
fd_set * , const struct timespec * ,
const sigset_t * )
__asm("_" "pselect" )
;
int select(int, fd_set * , fd_set * ,
fd_set * , struct timeval * )
__asm("_" "select" )
;
}
typedef __darwin_uuid_t uuid_t;
extern "C" {
void _Exit(int) __attribute__((__noreturn__));
int accessx_np(const struct accessx_descriptor *, size_t, int *, uid_t);
int acct(const char *);
int add_profil(char *, size_t, unsigned long, unsigned int) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
void endusershell(void);
int execvP(const char * __file, const char * __searchpath, char * const * __argv) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
char *fflagstostr(unsigned long);
int getdomainname(char *, int);
int getgrouplist(const char *, int, int *, int *);
int gethostuuid(uuid_t, const struct timespec *) __attribute__((availability(ios,unavailable)));
mode_t getmode(const void *, mode_t);
int getpeereid(int, uid_t *, gid_t *);
int getsgroups_np(int *, uuid_t);
char *getusershell(void);
int getwgroups_np(int *, uuid_t);
int initgroups(const char *, int);
int issetugid(void);
char *mkdtemp(char *);
int mknod(const char *, mode_t, dev_t);
int mkpath_np(const char *path, mode_t omode) __attribute__((availability(ios,introduced=5.0)));
int mkpathat_np(int dfd, const char *path, mode_t omode)
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0)))
__attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
int mkstemp(char *);
int mkstemps(char *, int);
char *mktemp(char *);
int mkostemp(char *path, int oflags)
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0)))
__attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
int mkostemps(char *path, int slen, int oflags)
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0)))
__attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
int mkstemp_dprotected_np(char *path, int dpclass, int dpflags)
__attribute__((availability(macosx,unavailable))) __attribute__((availability(ios,introduced=10.0)))
__attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
char *mkdtempat_np(int dfd, char *path)
__attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0)))
__attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
int mkstempsat_np(int dfd, char *path, int slen)
__attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0)))
__attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
int mkostempsat_np(int dfd, char *path, int slen, int oflags)
__attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0)))
__attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
int nfssvc(int, void *);
int profil(char *, size_t, unsigned long, unsigned int);
__attribute__((__deprecated__("Use of per-thread security contexts is error-prone and discouraged.")))
int pthread_setugid_np(uid_t, gid_t);
int pthread_getugid_np( uid_t *, gid_t *);
int reboot(int);
int revoke(const char *);
__attribute__((__deprecated__)) int rcmd(char **, int, const char *, const char *, const char *, int *);
__attribute__((__deprecated__)) int rcmd_af(char **, int, const char *, const char *, const char *, int *,
int);
__attribute__((__deprecated__)) int rresvport(int *);
__attribute__((__deprecated__)) int rresvport_af(int *, int);
__attribute__((__deprecated__)) int iruserok(unsigned long, int, const char *, const char *);
__attribute__((__deprecated__)) int iruserok_sa(const void *, int, int, const char *, const char *);
__attribute__((__deprecated__)) int ruserok(const char *, int, const char *, const char *);
int setdomainname(const char *, int);
int setgroups(int, const gid_t *);
void sethostid(long);
int sethostname(const char *, int);
void setkey(const char *) __asm("_" "setkey" );
int setlogin(const char *);
void *setmode(const char *) __asm("_" "setmode" );
int setrgid(gid_t);
int setruid(uid_t);
int setsgroups_np(int, const uuid_t);
void setusershell(void);
int setwgroups_np(int, const uuid_t);
int strtofflags(char **, unsigned long *, unsigned long *);
int swapon(const char *);
int ttyslot(void);
int undelete(const char *);
int unwhiteout(const char *);
void *valloc(size_t);
__attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)))
__attribute__((availability(ios,deprecated=10.0,message="syscall(2) is unsupported; " "please switch to a supported interface. For SYS_kdebug_trace use kdebug_signpost().")))
__attribute__((availability(macosx,deprecated=10.12,message="syscall(2) is unsupported; " "please switch to a supported interface. For SYS_kdebug_trace use kdebug_signpost().")))
int syscall(int, ...);
extern char *suboptarg;
int getsubopt(char **, char * const *, char **);
int fgetattrlist(int,void*,void*,size_t,unsigned int) __attribute__((availability(ios,introduced=3.0)));
int fsetattrlist(int,void*,void*,size_t,unsigned int) __attribute__((availability(ios,introduced=3.0)));
int getattrlist(const char*,void*,void*,size_t,unsigned int) __asm("_" "getattrlist" );
int setattrlist(const char*,void*,void*,size_t,unsigned int) __asm("_" "setattrlist" );
int exchangedata(const char*,const char*,unsigned int) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
int getdirentriesattr(int,void*,void*,size_t,unsigned int*,unsigned int*,unsigned int*,unsigned int) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
struct fssearchblock;
struct searchstate;
int searchfs(const char *, struct fssearchblock *, unsigned long *, unsigned int, unsigned int, struct searchstate *) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
int fsctl(const char *,unsigned long,void*,unsigned int);
int ffsctl(int,unsigned long,void*,unsigned int) __attribute__((availability(ios,introduced=3.0)));
int fsync_volume_np(int, int) __attribute__((availability(ios,introduced=6.0)));
int sync_volume_np(const char *, int) __attribute__((availability(ios,introduced=6.0)));
extern int optreset;
}
struct flock {
off_t l_start;
off_t l_len;
pid_t l_pid;
short l_type;
short l_whence;
};
struct flocktimeout {
struct flock fl;
struct timespec timeout;
};
struct radvisory {
off_t ra_offset;
int ra_count;
};
typedef struct fcodeblobs {
void *f_cd_hash;
size_t f_hash_size;
void *f_cd_buffer;
size_t f_cd_size;
unsigned int *f_out_size;
int f_arch;
int __padding;
} fcodeblobs_t;
typedef struct fsignatures {
off_t fs_file_start;
void *fs_blob_start;
size_t fs_blob_size;
} fsignatures_t;
typedef struct fchecklv {
off_t lv_file_start;
size_t lv_error_message_size;
void *lv_error_message;
} fchecklv_t;
typedef struct fstore {
unsigned int fst_flags;
int fst_posmode;
off_t fst_offset;
off_t fst_length;
off_t fst_bytesalloc;
} fstore_t;
typedef struct fpunchhole {
unsigned int fp_flags;
unsigned int reserved;
off_t fp_offset;
off_t fp_length;
} fpunchhole_t;
typedef struct ftrimactivefile {
off_t fta_offset;
off_t fta_length;
} ftrimactivefile_t;
typedef struct fspecread {
unsigned int fsr_flags;
unsigned int reserved;
off_t fsr_offset;
off_t fsr_length;
} fspecread_t;
typedef struct fbootstraptransfer {
off_t fbt_offset;
size_t fbt_length;
void *fbt_buffer;
} fbootstraptransfer_t;
#pragma pack(4)
struct log2phys {
unsigned int l2p_flags;
off_t l2p_contigbytes;
off_t l2p_devoffset;
};
#pragma pack()
struct _filesec;
typedef struct _filesec *filesec_t;
typedef enum {
FILESEC_OWNER = 1,
FILESEC_GROUP = 2,
FILESEC_UUID = 3,
FILESEC_MODE = 4,
FILESEC_ACL = 5,
FILESEC_GRPUUID = 6,
FILESEC_ACL_RAW = 100,
FILESEC_ACL_ALLOCSIZE = 101
} filesec_property_t;
extern "C" {
int open(const char *, int, ...) __asm("_" "open" );
int openat(int, const char *, int, ...) __asm("_" "openat" ) __attribute__((availability(ios,introduced=8.0)));
int creat(const char *, mode_t) __asm("_" "creat" );
int fcntl(int, int, ...) __asm("_" "fcntl" );
int openx_np(const char *, int, filesec_t);
int open_dprotected_np( const char *, int, int, int, ...);
int flock(int, int);
filesec_t filesec_init(void);
filesec_t filesec_dup(filesec_t);
void filesec_free(filesec_t);
int filesec_get_property(filesec_t, filesec_property_t, void *);
int filesec_query_property(filesec_t, filesec_property_t, int *);
int filesec_set_property(filesec_t, filesec_property_t, const void *);
int filesec_unset_property(filesec_t, filesec_property_t) __attribute__((availability(ios,introduced=3.2)));
}
typedef struct objc_class *Class;
struct objc_object {
Class _Nonnull isa __attribute__((deprecated));
};
typedef struct objc_object *id;
typedef struct objc_selector *SEL;
typedef void (*IMP)(void );
typedef bool BOOL;
extern "C" __attribute__((visibility("default"))) const char * _Nonnull sel_getName(SEL _Nonnull sel)
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) SEL _Nonnull sel_registerName(const char * _Nonnull str)
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) const char * _Nonnull object_getClassName(id _Nullable obj)
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) void * _Nullable object_getIndexedIvars(id _Nullable obj)
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)))
;
extern "C" __attribute__((visibility("default"))) BOOL sel_isMapped(SEL _Nonnull sel)
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) SEL _Nonnull sel_getUid(const char * _Nonnull str)
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
typedef const void* objc_objectptr_t;
extern "C" __attribute__((visibility("default"))) id _Nullable objc_retainedObject(objc_objectptr_t _Nullable obj)
__attribute__((unavailable("use CFBridgingRelease() or a (__bridge_transfer id) cast instead")))
;
extern "C" __attribute__((visibility("default"))) id _Nullable objc_unretainedObject(objc_objectptr_t _Nullable obj)
__attribute__((unavailable("use a (__bridge id) cast instead")))
;
extern "C" __attribute__((visibility("default"))) objc_objectptr_t _Nullable objc_unretainedPointer(id _Nullable obj)
__attribute__((unavailable("use a __bridge cast instead")))
;
typedef long NSInteger;
typedef unsigned long NSUInteger;
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#ifndef _REWRITER_typedef_NSMethodSignature
#define _REWRITER_typedef_NSMethodSignature
typedef struct objc_object NSMethodSignature;
typedef struct {} _objc_exc_NSMethodSignature;
#endif
#ifndef _REWRITER_typedef_NSInvocation
#define _REWRITER_typedef_NSInvocation
typedef struct objc_object NSInvocation;
typedef struct {} _objc_exc_NSInvocation;
#endif
// @protocol NSObject
// - (BOOL)isEqual:(id)object;
// @property (readonly) NSUInteger hash;
// @property (readonly) Class superclass;
// - (Class)class __attribute__((availability(swift, unavailable, message="use 'type(of: anObject)' instead")));
// - (instancetype)self;
// - (id)performSelector:(SEL)aSelector;
// - (id)performSelector:(SEL)aSelector withObject:(id)object;
// - (id)performSelector:(SEL)aSelector withObject:(id)object1 withObject:(id)object2;
// - (BOOL)isProxy;
// - (BOOL)isKindOfClass:(Class)aClass;
// - (BOOL)isMemberOfClass:(Class)aClass;
// - (BOOL)conformsToProtocol:(Protocol *)aProtocol;
// - (BOOL)respondsToSelector:(SEL)aSelector;
// - (instancetype)retain ;
// - (oneway void)release ;
// - (instancetype)autorelease ;
// - (NSUInteger)retainCount ;
// - (struct _NSZone *)zone ;
// @property (readonly, copy) NSString *description;
/* @optional */
// @property (readonly, copy) NSString *debugDescription;
/* @end */
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)))
__attribute__((objc_root_class))
extern "C" __attribute__((visibility("default")))
#ifndef _REWRITER_typedef_NSObject
#define _REWRITER_typedef_NSObject
typedef struct objc_object NSObject;
typedef struct {} _objc_exc_NSObject;
#endif
struct NSObject_IMPL {
Class isa;
};
// + (void)load;
// + (void)initialize;
#if 0
- (instancetype)init
__attribute__((objc_designated_initializer))
;
#endif
// + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead")));
// + (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((availability(swift, unavailable, message="use object initializers instead")));
// + (instancetype)alloc __attribute__((availability(swift, unavailable, message="use object initializers instead")));
// - (void)dealloc __attribute__((availability(swift, unavailable, message="use 'deinit' to define a de-initializer")));
// - (void)finalize __attribute__((deprecated("Objective-C garbage collection is no longer supported")));
// - (id)copy;
// - (id)mutableCopy;
// + (id)copyWithZone:(struct _NSZone *)zone ;
// + (id)mutableCopyWithZone:(struct _NSZone *)zone ;
// + (BOOL)instancesRespondToSelector:(SEL)aSelector;
// + (BOOL)conformsToProtocol:(Protocol *)protocol;
// - (IMP)methodForSelector:(SEL)aSelector;
// + (IMP)instanceMethodForSelector:(SEL)aSelector;
// - (void)doesNotRecognizeSelector:(SEL)aSelector;
// - (id)forwardingTargetForSelector:(SEL)aSelector __attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
// - (void)forwardInvocation:(NSInvocation *)anInvocation __attribute__((availability(swift, unavailable, message="")));
// - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector __attribute__((availability(swift, unavailable, message="")));
// + (NSMethodSignature *)instanceMethodSignatureForSelector:(SEL)aSelector __attribute__((availability(swift, unavailable, message="")));
// - (BOOL)allowsWeakReference __attribute__((unavailable));
// - (BOOL)retainWeakReference __attribute__((unavailable));
// + (BOOL)isSubclassOfClass:(Class)aClass;
// + (BOOL)resolveClassMethod:(SEL)sel __attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
// + (BOOL)resolveInstanceMethod:(SEL)sel __attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
// + (NSUInteger)hash;
// + (Class)superclass;
// + (Class)class __attribute__((availability(swift, unavailable, message="use 'aClass.self' instead")));
// + (NSString *)description;
// + (NSString *)debugDescription;
/* @end */
extern "C" {
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0)))
extern __attribute__((__visibility__("default"))) __attribute__((__availability__(swift, unavailable, message="Can't be used with ARC")))
void*
os_retain(void *object);
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0)))
extern __attribute__((__visibility__("default")))
void __attribute__((__availability__(swift, unavailable, message="Can't be used with ARC")))
os_release(void *object);
}
typedef void (*dispatch_function_t)(void *_Nullable);
struct time_value {
integer_t seconds;
integer_t microseconds;
};
typedef struct time_value time_value_t;
typedef int alarm_type_t;
typedef int sleep_type_t;
typedef int clock_id_t;
typedef int clock_flavor_t;
typedef int *clock_attr_t;
typedef int clock_res_t;
struct mach_timespec {
unsigned int tv_sec;
clock_res_t tv_nsec;
};
typedef struct mach_timespec mach_timespec_t;
#pragma clang assume_nonnull begin
extern "C" {
struct timespec;
typedef uint64_t dispatch_time_t;
enum {
DISPATCH_WALLTIME_NOW __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(tvos,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) = ~1ull,
};
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__))
dispatch_time_t
dispatch_time(dispatch_time_t when, int64_t delta);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__))
dispatch_time_t
dispatch_walltime(const struct timespec *_Nullable when, int64_t delta);
}
#pragma clang assume_nonnull end
typedef enum : unsigned int { QOS_CLASS_USER_INTERACTIVE __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) = 0x21, QOS_CLASS_USER_INITIATED __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) = 0x19, QOS_CLASS_DEFAULT __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) = 0x15, QOS_CLASS_UTILITY __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) = 0x11, QOS_CLASS_BACKGROUND __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) = 0x09, QOS_CLASS_UNSPECIFIED __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) = 0x00, } qos_class_t;
extern "C" {
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0)))
qos_class_t
qos_class_self(void);
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0)))
qos_class_t
qos_class_main(void);
}
#pragma clang assume_nonnull begin
// @protocol OS_dispatch_object <NSObject> /* @end */
typedef NSObject/*<OS_dispatch_object>*/ * __attribute__((objc_independent_class)) dispatch_object_t;
static __inline__ __attribute__((__always_inline__)) __attribute__((__nonnull__)) __attribute__((__nothrow__))
void
_dispatch_object_validate(dispatch_object_t object)
{
void *isa = *(void *volatile*)( void*)object;
(void)isa;
}
typedef void (*dispatch_block_t)(void);
extern "C" {
typedef qos_class_t dispatch_qos_class_t;
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__))
__attribute__((__availability__(swift, unavailable, message="Can't be used with ARC")))
void
dispatch_retain(dispatch_object_t object);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__))
__attribute__((__availability__(swift, unavailable, message="Can't be used with ARC")))
void
dispatch_release(dispatch_object_t object);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__pure__)) __attribute__((__warn_unused_result__))
__attribute__((__nothrow__))
void *_Nullable
dispatch_get_context(dispatch_object_t object);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nothrow__))
void
dispatch_set_context(dispatch_object_t object, void *_Nullable context);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nothrow__))
void
dispatch_set_finalizer_f(dispatch_object_t object,
dispatch_function_t _Nullable finalizer);
__attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__))
void
dispatch_activate(dispatch_object_t object);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__))
void
dispatch_suspend(dispatch_object_t object);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__))
void
dispatch_resume(dispatch_object_t object);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(tvos,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__nothrow__))
void
dispatch_set_qos_class_floor(dispatch_object_t object,
dispatch_qos_class_t qos_class, int relative_priority);
__attribute__((__unavailable__))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nothrow__))
long
dispatch_wait(void *object, dispatch_time_t timeout);
__attribute__((__unavailable__))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__))
void
dispatch_notify(void *object, dispatch_object_t queue,
dispatch_block_t notification_block);
__attribute__((__unavailable__))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__))
void
dispatch_cancel(void *object);
__attribute__((__unavailable__))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__warn_unused_result__)) __attribute__((__pure__))
__attribute__((__nothrow__))
long
dispatch_testcancel(void *object);
__attribute__((availability(macos,introduced=10.6,deprecated=10.9,message="unsupported interface"))) __attribute__((availability(ios,introduced=4.0,deprecated=6.0,message="unsupported interface")))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(2))) __attribute__((__nothrow__)) __attribute__((__cold__))
__attribute__((__format__(printf,2,3)))
void
dispatch_debug(dispatch_object_t object, const char *message, ...);
__attribute__((availability(macos,introduced=10.6,deprecated=10.9,message="unsupported interface"))) __attribute__((availability(ios,introduced=4.0,deprecated=6.0,message="unsupported interface")))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(2))) __attribute__((__nothrow__)) __attribute__((__cold__))
__attribute__((__format__(printf,2,0)))
void
dispatch_debugv(dispatch_object_t object, const char *message, va_list ap);
}
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
// @protocol OS_dispatch_queue <OS_dispatch_object> /* @end */
typedef NSObject/*<OS_dispatch_queue>*/ * __attribute__((objc_independent_class)) dispatch_queue_t;
// @protocol OS_dispatch_queue_global <OS_dispatch_queue> /* @end */
typedef NSObject/*<OS_dispatch_queue_global>*/ * __attribute__((objc_independent_class)) dispatch_queue_global_t;
// @protocol OS_dispatch_queue_serial <OS_dispatch_queue> /* @end */
typedef NSObject/*<OS_dispatch_queue_serial>*/ * __attribute__((objc_independent_class)) dispatch_queue_serial_t;
// @protocol OS_dispatch_queue_main <OS_dispatch_queue_serial> /* @end */
typedef NSObject/*<OS_dispatch_queue_main>*/ * __attribute__((objc_independent_class)) dispatch_queue_main_t;
// @protocol OS_dispatch_queue_concurrent <OS_dispatch_queue> /* @end */
typedef NSObject/*<OS_dispatch_queue_concurrent>*/ * __attribute__((objc_independent_class)) dispatch_queue_concurrent_t;
extern "C" {
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__))
void
dispatch_async(dispatch_queue_t queue, dispatch_block_t block);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nonnull__(3))) __attribute__((__nothrow__))
void
dispatch_async_f(dispatch_queue_t queue,
void *_Nullable context, dispatch_function_t work);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__))
void
dispatch_sync(dispatch_queue_t queue, __attribute__((__noescape__)) dispatch_block_t block);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nonnull__(3))) __attribute__((__nothrow__))
void
dispatch_sync_f(dispatch_queue_t queue,
void *_Nullable context, dispatch_function_t work);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(tvos,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__))
void
dispatch_async_and_wait(dispatch_queue_t queue,
__attribute__((__noescape__)) dispatch_block_t block);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(tvos,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nonnull__(3))) __attribute__((__nothrow__))
void
dispatch_async_and_wait_f(dispatch_queue_t queue,
void *_Nullable context, dispatch_function_t work);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(3))) __attribute__((__nothrow__))
void
dispatch_apply(size_t iterations,
dispatch_queue_t _Nullable queue,
__attribute__((__noescape__)) void (^block)(size_t));
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(4))) __attribute__((__nothrow__))
void
dispatch_apply_f(size_t iterations,
dispatch_queue_t _Nullable queue,
void *_Nullable context, void (*work)(void *_Nullable, size_t));
__attribute__((availability(macos,introduced=10.6,deprecated=10.9,message="unsupported interface"))) __attribute__((availability(ios,introduced=4.0,deprecated=6.0,message="unsupported interface")))
extern __attribute__((visibility("default"))) __attribute__((__pure__)) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__))
dispatch_queue_t
dispatch_get_current_queue(void);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default")))
struct dispatch_queue_s _dispatch_main_q;
static __inline__ __attribute__((__always_inline__)) __attribute__((__const__)) __attribute__((__nothrow__))
dispatch_queue_main_t
dispatch_get_main_queue(void)
{
return (( dispatch_queue_main_t)&(_dispatch_main_q));
}
typedef long dispatch_queue_priority_t;
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__const__)) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__))
dispatch_queue_global_t
dispatch_get_global_queue(long identifier, unsigned long flags);
// @protocol OS_dispatch_queue_attr <OS_dispatch_object> /* @end */
typedef NSObject/*<OS_dispatch_queue_attr>*/ * __attribute__((objc_independent_class)) dispatch_queue_attr_t;
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.3)))
extern __attribute__((visibility("default")))
struct dispatch_queue_attr_s _dispatch_queue_attr_concurrent;
__attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)))
extern __attribute__((visibility("default"))) __attribute__((__warn_unused_result__)) __attribute__((__pure__)) __attribute__((__nothrow__))
dispatch_queue_attr_t
dispatch_queue_attr_make_initially_inactive(
dispatch_queue_attr_t _Nullable attr);
typedef enum : unsigned long { DISPATCH_AUTORELEASE_FREQUENCY_INHERIT __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 0, DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 1, DISPATCH_AUTORELEASE_FREQUENCY_NEVER __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 2, } __attribute__((__enum_extensibility__(open))) dispatch_autorelease_frequency_t;
__attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)))
extern __attribute__((visibility("default"))) __attribute__((__warn_unused_result__)) __attribute__((__pure__)) __attribute__((__nothrow__))
dispatch_queue_attr_t
dispatch_queue_attr_make_with_autorelease_frequency(
dispatch_queue_attr_t _Nullable attr,
dispatch_autorelease_frequency_t frequency);
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0)))
extern __attribute__((visibility("default"))) __attribute__((__warn_unused_result__)) __attribute__((__pure__)) __attribute__((__nothrow__))
dispatch_queue_attr_t
dispatch_queue_attr_make_with_qos_class(dispatch_queue_attr_t _Nullable attr,
dispatch_qos_class_t qos_class, int relative_priority);
__attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)))
extern __attribute__((visibility("default"))) __attribute__((__malloc__)) __attribute__((__ns_returns_retained__)) __attribute__((__warn_unused_result__))
__attribute__((__nothrow__))
dispatch_queue_t
dispatch_queue_create_with_target(const char *_Nullable label,
dispatch_queue_attr_t _Nullable attr, dispatch_queue_t _Nullable target)
__asm__("_" "dispatch_queue_create_with_target" "$V2");
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__malloc__)) __attribute__((__ns_returns_retained__)) __attribute__((__warn_unused_result__))
__attribute__((__nothrow__))
dispatch_queue_t
dispatch_queue_create(const char *_Nullable label,
dispatch_queue_attr_t _Nullable attr);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__pure__)) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__))
const char *
dispatch_queue_get_label(dispatch_queue_t _Nullable queue);
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0)))
extern __attribute__((visibility("default"))) __attribute__((__warn_unused_result__)) __attribute__((__nonnull__(1))) __attribute__((__nothrow__))
dispatch_qos_class_t
dispatch_queue_get_qos_class(dispatch_queue_t queue,
int *_Nullable relative_priority_ptr);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nothrow__))
void
dispatch_set_target_queue(dispatch_object_t object,
dispatch_queue_t _Nullable queue);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nothrow__)) __attribute__((__noreturn__))
void
dispatch_main(void);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(2))) __attribute__((__nonnull__(3))) __attribute__((__nothrow__))
void
dispatch_after(dispatch_time_t when, dispatch_queue_t queue,
dispatch_block_t block);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(2))) __attribute__((__nonnull__(4))) __attribute__((__nothrow__))
void
dispatch_after_f(dispatch_time_t when, dispatch_queue_t queue,
void *_Nullable context, dispatch_function_t work);
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.3)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__))
void
dispatch_barrier_async(dispatch_queue_t queue, dispatch_block_t block);
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.3)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nonnull__(3))) __attribute__((__nothrow__))
void
dispatch_barrier_async_f(dispatch_queue_t queue,
void *_Nullable context, dispatch_function_t work);
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.3)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__))
void
dispatch_barrier_sync(dispatch_queue_t queue,
__attribute__((__noescape__)) dispatch_block_t block);
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.3)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nonnull__(3))) __attribute__((__nothrow__))
void
dispatch_barrier_sync_f(dispatch_queue_t queue,
void *_Nullable context, dispatch_function_t work);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(tvos,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__))
void
dispatch_barrier_async_and_wait(dispatch_queue_t queue,
__attribute__((__noescape__)) dispatch_block_t block);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(tvos,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nonnull__(3))) __attribute__((__nothrow__))
void
dispatch_barrier_async_and_wait_f(dispatch_queue_t queue,
void *_Nullable context, dispatch_function_t work);
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nothrow__))
void
dispatch_queue_set_specific(dispatch_queue_t queue, const void *key,
void *_Nullable context, dispatch_function_t _Nullable destructor);
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__pure__)) __attribute__((__warn_unused_result__))
__attribute__((__nothrow__))
void *_Nullable
dispatch_queue_get_specific(dispatch_queue_t queue, const void *key);
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__pure__)) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__))
void *_Nullable
dispatch_get_specific(const void *key);
__attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1)))
void
dispatch_assert_queue(dispatch_queue_t queue)
__asm__("_" "dispatch_assert_queue" "$V2");
__attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1)))
void
dispatch_assert_queue_barrier(dispatch_queue_t queue);
__attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1)))
void
dispatch_assert_queue_not(dispatch_queue_t queue)
__asm__("_" "dispatch_assert_queue_not" "$V2");
}
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
extern "C" {
typedef enum : unsigned long { DISPATCH_BLOCK_BARRIER __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) = 0x1, DISPATCH_BLOCK_DETACHED __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) = 0x2, DISPATCH_BLOCK_ASSIGN_CURRENT __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) = 0x4, DISPATCH_BLOCK_NO_QOS_CLASS __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) = 0x8, DISPATCH_BLOCK_INHERIT_QOS_CLASS __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) = 0x10, DISPATCH_BLOCK_ENFORCE_QOS_CLASS __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) = 0x20, } __attribute__((__flag_enum__)) __attribute__((__enum_extensibility__(open))) dispatch_block_flags_t;
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(2))) __attribute__((__ns_returns_retained__))
__attribute__((__warn_unused_result__)) __attribute__((__nothrow__))
dispatch_block_t
dispatch_block_create(dispatch_block_flags_t flags, dispatch_block_t block);
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(4))) __attribute__((__ns_returns_retained__))
__attribute__((__warn_unused_result__)) __attribute__((__nothrow__))
dispatch_block_t
dispatch_block_create_with_qos_class(dispatch_block_flags_t flags,
dispatch_qos_class_t qos_class, int relative_priority,
dispatch_block_t block);
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(2))) __attribute__((__nothrow__))
void
dispatch_block_perform(dispatch_block_flags_t flags,
__attribute__((__noescape__)) dispatch_block_t block);
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nothrow__))
long
dispatch_block_wait(dispatch_block_t block, dispatch_time_t timeout);
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__))
void
dispatch_block_notify(dispatch_block_t block, dispatch_queue_t queue,
dispatch_block_t notification_block);
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__))
void
dispatch_block_cancel(dispatch_block_t block);
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__warn_unused_result__)) __attribute__((__pure__))
__attribute__((__nothrow__))
long
dispatch_block_testcancel(dispatch_block_t block);
}
#pragma clang assume_nonnull end
typedef int kern_return_t;
typedef natural_t mach_msg_timeout_t;
typedef unsigned int mach_msg_bits_t;
typedef natural_t mach_msg_size_t;
typedef integer_t mach_msg_id_t;
typedef unsigned int mach_msg_priority_t;
typedef unsigned int mach_msg_type_name_t;
typedef unsigned int mach_msg_copy_options_t;
typedef unsigned int mach_msg_guard_flags_t;
typedef unsigned int mach_msg_descriptor_type_t;
#pragma pack(push, 4)
typedef struct{
natural_t pad1;
mach_msg_size_t pad2;
unsigned int pad3 : 24;
mach_msg_descriptor_type_t type : 8;
} mach_msg_type_descriptor_t;
typedef struct{
mach_port_t name;
mach_msg_size_t pad1;
unsigned int pad2 : 16;
mach_msg_type_name_t disposition : 8;
mach_msg_descriptor_type_t type : 8;
} mach_msg_port_descriptor_t;
typedef struct{
uint32_t address;
mach_msg_size_t size;
boolean_t deallocate: 8;
mach_msg_copy_options_t copy: 8;
unsigned int pad1: 8;
mach_msg_descriptor_type_t type: 8;
} mach_msg_ool_descriptor32_t;
typedef struct{
uint64_t address;
boolean_t deallocate: 8;
mach_msg_copy_options_t copy: 8;
unsigned int pad1: 8;
mach_msg_descriptor_type_t type: 8;
mach_msg_size_t size;
} mach_msg_ool_descriptor64_t;
typedef struct{
void* address;
boolean_t deallocate: 8;
mach_msg_copy_options_t copy: 8;
unsigned int pad1: 8;
mach_msg_descriptor_type_t type: 8;
mach_msg_size_t size;
} mach_msg_ool_descriptor_t;
typedef struct{
uint32_t address;
mach_msg_size_t count;
boolean_t deallocate: 8;
mach_msg_copy_options_t copy: 8;
mach_msg_type_name_t disposition : 8;
mach_msg_descriptor_type_t type : 8;
} mach_msg_ool_ports_descriptor32_t;
typedef struct{
uint64_t address;
boolean_t deallocate: 8;
mach_msg_copy_options_t copy: 8;
mach_msg_type_name_t disposition : 8;
mach_msg_descriptor_type_t type : 8;
mach_msg_size_t count;
} mach_msg_ool_ports_descriptor64_t;
typedef struct{
void* address;
boolean_t deallocate: 8;
mach_msg_copy_options_t copy: 8;
mach_msg_type_name_t disposition : 8;
mach_msg_descriptor_type_t type : 8;
mach_msg_size_t count;
} mach_msg_ool_ports_descriptor_t;
typedef struct{
uint32_t context;
mach_port_name_t name;
mach_msg_guard_flags_t flags : 16;
mach_msg_type_name_t disposition : 8;
mach_msg_descriptor_type_t type : 8;
} mach_msg_guarded_port_descriptor32_t;
typedef struct{
uint64_t context;
mach_msg_guard_flags_t flags : 16;
mach_msg_type_name_t disposition : 8;
mach_msg_descriptor_type_t type : 8;
mach_port_name_t name;
} mach_msg_guarded_port_descriptor64_t;
typedef struct{
mach_port_context_t context;
mach_msg_guard_flags_t flags : 16;
mach_msg_type_name_t disposition : 8;
mach_msg_descriptor_type_t type : 8;
mach_port_name_t name;
} mach_msg_guarded_port_descriptor_t;
typedef union{
mach_msg_port_descriptor_t port;
mach_msg_ool_descriptor_t out_of_line;
mach_msg_ool_ports_descriptor_t ool_ports;
mach_msg_type_descriptor_t type;
mach_msg_guarded_port_descriptor_t guarded_port;
} mach_msg_descriptor_t;
typedef struct{
mach_msg_size_t msgh_descriptor_count;
} mach_msg_body_t;
typedef struct{
mach_msg_bits_t msgh_bits;
mach_msg_size_t msgh_size;
mach_port_t msgh_remote_port;
mach_port_t msgh_local_port;
mach_port_name_t msgh_voucher_port;
mach_msg_id_t msgh_id;
} mach_msg_header_t;
typedef struct{
mach_msg_header_t header;
mach_msg_body_t body;
} mach_msg_base_t;
typedef unsigned int mach_msg_trailer_type_t;
typedef unsigned int mach_msg_trailer_size_t;
typedef char *mach_msg_trailer_info_t;
typedef struct{
mach_msg_trailer_type_t msgh_trailer_type;
mach_msg_trailer_size_t msgh_trailer_size;
} mach_msg_trailer_t;
typedef struct{
mach_msg_trailer_type_t msgh_trailer_type;
mach_msg_trailer_size_t msgh_trailer_size;
mach_port_seqno_t msgh_seqno;
} mach_msg_seqno_trailer_t;
typedef struct{
unsigned int val[2];
} security_token_t;
typedef struct{
mach_msg_trailer_type_t msgh_trailer_type;
mach_msg_trailer_size_t msgh_trailer_size;
mach_port_seqno_t msgh_seqno;
security_token_t msgh_sender;
} mach_msg_security_trailer_t;
typedef struct{
unsigned int val[8];
} audit_token_t;
typedef struct{
mach_msg_trailer_type_t msgh_trailer_type;
mach_msg_trailer_size_t msgh_trailer_size;
mach_port_seqno_t msgh_seqno;
security_token_t msgh_sender;
audit_token_t msgh_audit;
} mach_msg_audit_trailer_t;
typedef struct{
mach_msg_trailer_type_t msgh_trailer_type;
mach_msg_trailer_size_t msgh_trailer_size;
mach_port_seqno_t msgh_seqno;
security_token_t msgh_sender;
audit_token_t msgh_audit;
mach_port_context_t msgh_context;
} mach_msg_context_trailer_t;
typedef struct{
mach_port_name_t sender;
} msg_labels_t;
typedef struct{
mach_msg_trailer_type_t msgh_trailer_type;
mach_msg_trailer_size_t msgh_trailer_size;
mach_port_seqno_t msgh_seqno;
security_token_t msgh_sender;
audit_token_t msgh_audit;
mach_port_context_t msgh_context;
int msgh_ad;
msg_labels_t msgh_labels;
} mach_msg_mac_trailer_t;
typedef mach_msg_mac_trailer_t mach_msg_max_trailer_t;
typedef mach_msg_security_trailer_t mach_msg_format_0_trailer_t;
extern const security_token_t KERNEL_SECURITY_TOKEN;
extern const audit_token_t KERNEL_AUDIT_TOKEN;
typedef integer_t mach_msg_options_t;
typedef struct{
mach_msg_header_t header;
} mach_msg_empty_send_t;
typedef struct{
mach_msg_header_t header;
mach_msg_trailer_t trailer;
} mach_msg_empty_rcv_t;
typedef union{
mach_msg_empty_send_t send;
mach_msg_empty_rcv_t rcv;
} mach_msg_empty_t;
#pragma pack(pop)
typedef natural_t mach_msg_type_size_t;
typedef natural_t mach_msg_type_number_t;
typedef integer_t mach_msg_option_t;
typedef kern_return_t mach_msg_return_t;
extern "C" {
__attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)))
extern mach_msg_return_t mach_msg_overwrite(
mach_msg_header_t *msg,
mach_msg_option_t option,
mach_msg_size_t send_size,
mach_msg_size_t rcv_size,
mach_port_name_t rcv_name,
mach_msg_timeout_t timeout,
mach_port_name_t notify,
mach_msg_header_t *rcv_msg,
mach_msg_size_t rcv_limit);
__attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)))
extern mach_msg_return_t mach_msg(
mach_msg_header_t *msg,
mach_msg_option_t option,
mach_msg_size_t send_size,
mach_msg_size_t rcv_size,
mach_port_name_t rcv_name,
mach_msg_timeout_t timeout,
mach_port_name_t notify);
__attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)))
extern kern_return_t mach_voucher_deallocate(
mach_port_name_t voucher);
}
#pragma clang assume_nonnull begin
// @protocol OS_dispatch_source <OS_dispatch_object> /* @end */
typedef NSObject/*<OS_dispatch_source>*/ * __attribute__((objc_independent_class)) dispatch_source_t;;
extern "C" {
typedef const struct dispatch_source_type_s *dispatch_source_type_t;
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) const struct dispatch_source_type_s _dispatch_source_type_data_add;
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) const struct dispatch_source_type_s _dispatch_source_type_data_or;
__attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)))
extern __attribute__((visibility("default"))) const struct dispatch_source_type_s _dispatch_source_type_data_replace;
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) const struct dispatch_source_type_s _dispatch_source_type_mach_send;
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) const struct dispatch_source_type_s _dispatch_source_type_mach_recv;
__attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0)))
extern __attribute__((visibility("default"))) const struct dispatch_source_type_s _dispatch_source_type_memorypressure;
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) const struct dispatch_source_type_s _dispatch_source_type_proc;
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) const struct dispatch_source_type_s _dispatch_source_type_read;
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) const struct dispatch_source_type_s _dispatch_source_type_signal;
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) const struct dispatch_source_type_s _dispatch_source_type_timer;
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) const struct dispatch_source_type_s _dispatch_source_type_vnode;
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) const struct dispatch_source_type_s _dispatch_source_type_write;
typedef unsigned long dispatch_source_mach_send_flags_t;
typedef unsigned long dispatch_source_mach_recv_flags_t;
typedef unsigned long dispatch_source_memorypressure_flags_t;
typedef unsigned long dispatch_source_proc_flags_t;
typedef unsigned long dispatch_source_vnode_flags_t;
typedef unsigned long dispatch_source_timer_flags_t;
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__malloc__)) __attribute__((__ns_returns_retained__)) __attribute__((__warn_unused_result__))
__attribute__((__nothrow__))
dispatch_source_t
dispatch_source_create(dispatch_source_type_t type,
uintptr_t handle,
unsigned long mask,
dispatch_queue_t _Nullable queue);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nothrow__))
void
dispatch_source_set_event_handler(dispatch_source_t source,
dispatch_block_t _Nullable handler);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nothrow__))
void
dispatch_source_set_event_handler_f(dispatch_source_t source,
dispatch_function_t _Nullable handler);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nothrow__))
void
dispatch_source_set_cancel_handler(dispatch_source_t source,
dispatch_block_t _Nullable handler);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nothrow__))
void
dispatch_source_set_cancel_handler_f(dispatch_source_t source,
dispatch_function_t _Nullable handler);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__))
void
dispatch_source_cancel(dispatch_source_t source);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__warn_unused_result__)) __attribute__((__pure__))
__attribute__((__nothrow__))
long
dispatch_source_testcancel(dispatch_source_t source);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__warn_unused_result__)) __attribute__((__pure__))
__attribute__((__nothrow__))
uintptr_t
dispatch_source_get_handle(dispatch_source_t source);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__warn_unused_result__)) __attribute__((__pure__))
__attribute__((__nothrow__))
unsigned long
dispatch_source_get_mask(dispatch_source_t source);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__warn_unused_result__)) __attribute__((__pure__))
__attribute__((__nothrow__))
unsigned long
dispatch_source_get_data(dispatch_source_t source);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__))
void
dispatch_source_merge_data(dispatch_source_t source, unsigned long value);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__))
void
dispatch_source_set_timer(dispatch_source_t source,
dispatch_time_t start,
uint64_t interval,
uint64_t leeway);
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.3)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nothrow__))
void
dispatch_source_set_registration_handler(dispatch_source_t source,
dispatch_block_t _Nullable handler);
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.3)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nothrow__))
void
dispatch_source_set_registration_handler_f(dispatch_source_t source,
dispatch_function_t _Nullable handler);
}
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
// @protocol OS_dispatch_group <OS_dispatch_object> /* @end */
typedef NSObject/*<OS_dispatch_group>*/ * __attribute__((objc_independent_class)) dispatch_group_t;
extern "C" {
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__malloc__)) __attribute__((__ns_returns_retained__)) __attribute__((__warn_unused_result__))
__attribute__((__nothrow__))
dispatch_group_t
dispatch_group_create(void);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__))
void
dispatch_group_async(dispatch_group_t group,
dispatch_queue_t queue,
dispatch_block_t block);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nonnull__(2))) __attribute__((__nonnull__(4)))
__attribute__((__nothrow__))
void
dispatch_group_async_f(dispatch_group_t group,
dispatch_queue_t queue,
void *_Nullable context,
dispatch_function_t work);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__))
long
dispatch_group_wait(dispatch_group_t group, dispatch_time_t timeout);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__))
void
dispatch_group_notify(dispatch_group_t group,
dispatch_queue_t queue,
dispatch_block_t block);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nonnull__(2))) __attribute__((__nonnull__(4)))
__attribute__((__nothrow__))
void
dispatch_group_notify_f(dispatch_group_t group,
dispatch_queue_t queue,
void *_Nullable context,
dispatch_function_t work);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__))
void
dispatch_group_enter(dispatch_group_t group);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__))
void
dispatch_group_leave(dispatch_group_t group);
}
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
// @protocol OS_dispatch_semaphore <OS_dispatch_object> /* @end */
typedef NSObject/*<OS_dispatch_semaphore>*/ * __attribute__((objc_independent_class)) dispatch_semaphore_t;
extern "C" {
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__malloc__)) __attribute__((__ns_returns_retained__)) __attribute__((__warn_unused_result__))
__attribute__((__nothrow__))
dispatch_semaphore_t
dispatch_semaphore_create(long value);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__))
long
dispatch_semaphore_wait(dispatch_semaphore_t dsema, dispatch_time_t timeout);
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__))
long
dispatch_semaphore_signal(dispatch_semaphore_t dsema);
}
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
extern "C" {
typedef intptr_t dispatch_once_t;
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__))
void
dispatch_once(dispatch_once_t *predicate,
__attribute__((__noescape__)) dispatch_block_t block);
static __inline__ __attribute__((__always_inline__)) __attribute__((__nonnull__)) __attribute__((__nothrow__))
void
_dispatch_once(dispatch_once_t *predicate,
__attribute__((__noescape__)) dispatch_block_t block)
{
if (__builtin_expect((*predicate), (~0l)) != ~0l) {
dispatch_once(predicate, block);
} else {
__asm__ __volatile__("" ::: "memory");
}
__builtin_assume(*predicate == ~0l);
}
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nonnull__(3))) __attribute__((__nothrow__))
void
dispatch_once_f(dispatch_once_t *predicate, void *_Nullable context,
dispatch_function_t function);
static __inline__ __attribute__((__always_inline__)) __attribute__((__nonnull__(1))) __attribute__((__nonnull__(3)))
__attribute__((__nothrow__))
void
_dispatch_once_f(dispatch_once_t *predicate, void *_Nullable context,
dispatch_function_t function)
{
if (__builtin_expect((*predicate), (~0l)) != ~0l) {
dispatch_once_f(predicate, context, function);
} else {
__asm__ __volatile__("" ::: "memory");
}
__builtin_assume(*predicate == ~0l);
}
}
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
extern "C" {
// @protocol OS_dispatch_data <OS_dispatch_object> /* @end */
typedef NSObject/*<OS_dispatch_data>*/ * __attribute__((objc_independent_class)) dispatch_data_t;
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0)))
extern __attribute__((visibility("default"))) struct dispatch_data_s _dispatch_data_empty;
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0)))
extern __attribute__((visibility("default"))) const dispatch_block_t _dispatch_data_destructor_free;
__attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0)))
extern __attribute__((visibility("default"))) const dispatch_block_t _dispatch_data_destructor_munmap;
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__ns_returns_retained__)) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__))
dispatch_data_t
dispatch_data_create(const void *buffer,
size_t size,
dispatch_queue_t _Nullable queue,
dispatch_block_t _Nullable destructor);
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__pure__)) __attribute__((__nonnull__(1))) __attribute__((__nothrow__))
size_t
dispatch_data_get_size(dispatch_data_t data);
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__ns_returns_retained__))
__attribute__((__warn_unused_result__)) __attribute__((__nothrow__))
dispatch_data_t
dispatch_data_create_map(dispatch_data_t data,
const void *_Nullable *_Nullable buffer_ptr,
size_t *_Nullable size_ptr);
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__ns_returns_retained__))
__attribute__((__warn_unused_result__)) __attribute__((__nothrow__))
dispatch_data_t
dispatch_data_create_concat(dispatch_data_t data1, dispatch_data_t data2);
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__ns_returns_retained__))
__attribute__((__warn_unused_result__)) __attribute__((__nothrow__))
dispatch_data_t
dispatch_data_create_subrange(dispatch_data_t data,
size_t offset,
size_t length);
typedef bool (*dispatch_data_applier_t)(dispatch_data_t region,
size_t offset,
const void *buffer,
size_t size);
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__))
bool
dispatch_data_apply(dispatch_data_t data,
__attribute__((__noescape__)) dispatch_data_applier_t applier);
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nonnull__(3))) __attribute__((__ns_returns_retained__))
__attribute__((__warn_unused_result__)) __attribute__((__nothrow__))
dispatch_data_t
dispatch_data_copy_region(dispatch_data_t data,
size_t location,
size_t *offset_ptr);
}
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
extern "C" {
typedef int dispatch_fd_t;
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(3))) __attribute__((__nonnull__(4))) __attribute__((__nothrow__))
void
dispatch_read(dispatch_fd_t fd,
size_t length,
dispatch_queue_t queue,
void (^handler)(dispatch_data_t data, int error));
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(2))) __attribute__((__nonnull__(3))) __attribute__((__nonnull__(4)))
__attribute__((__nothrow__))
void
dispatch_write(dispatch_fd_t fd,
dispatch_data_t data,
dispatch_queue_t queue,
void (^handler)(dispatch_data_t _Nullable data, int error));
// @protocol OS_dispatch_io <OS_dispatch_object> /* @end */
typedef NSObject/*<OS_dispatch_io>*/ * __attribute__((objc_independent_class)) dispatch_io_t;
typedef unsigned long dispatch_io_type_t;
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__malloc__)) __attribute__((__ns_returns_retained__)) __attribute__((__warn_unused_result__))
__attribute__((__nothrow__))
dispatch_io_t
dispatch_io_create(dispatch_io_type_t type,
dispatch_fd_t fd,
dispatch_queue_t queue,
void (^cleanup_handler)(int error));
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(2))) __attribute__((__malloc__)) __attribute__((__ns_returns_retained__))
__attribute__((__warn_unused_result__)) __attribute__((__nothrow__))
dispatch_io_t
dispatch_io_create_with_path(dispatch_io_type_t type,
const char *path, int oflag, mode_t mode,
dispatch_queue_t queue,
void (^cleanup_handler)(int error));
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(2))) __attribute__((__malloc__)) __attribute__((__ns_returns_retained__))
__attribute__((__warn_unused_result__)) __attribute__((__nothrow__))
dispatch_io_t
dispatch_io_create_with_io(dispatch_io_type_t type,
dispatch_io_t io,
dispatch_queue_t queue,
void (^cleanup_handler)(int error));
typedef void (*dispatch_io_handler_t)(bool done, dispatch_data_t _Nullable data,
int error);
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nonnull__(4))) __attribute__((__nonnull__(5)))
__attribute__((__nothrow__))
void
dispatch_io_read(dispatch_io_t channel,
off_t offset,
size_t length,
dispatch_queue_t queue,
dispatch_io_handler_t io_handler);
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nonnull__(3))) __attribute__((__nonnull__(4)))
__attribute__((__nonnull__(5))) __attribute__((__nothrow__))
void
dispatch_io_write(dispatch_io_t channel,
off_t offset,
dispatch_data_t data,
dispatch_queue_t queue,
dispatch_io_handler_t io_handler);
typedef unsigned long dispatch_io_close_flags_t;
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nothrow__))
void
dispatch_io_close(dispatch_io_t channel, dispatch_io_close_flags_t flags);
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__))
void
dispatch_io_barrier(dispatch_io_t channel, dispatch_block_t barrier);
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__))
dispatch_fd_t
dispatch_io_get_descriptor(dispatch_io_t channel);
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nothrow__))
void
dispatch_io_set_high_water(dispatch_io_t channel, size_t high_water);
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nothrow__))
void
dispatch_io_set_low_water(dispatch_io_t channel, size_t low_water);
typedef unsigned long dispatch_io_interval_flags_t;
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nothrow__))
void
dispatch_io_set_interval(dispatch_io_t channel,
uint64_t interval,
dispatch_io_interval_flags_t flags);
}
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
extern "C" {
// @protocol OS_dispatch_workloop <OS_dispatch_queue> /* @end */
typedef NSObject/*<OS_dispatch_workloop>*/ * __attribute__((objc_independent_class)) dispatch_workloop_t;
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(tvos,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__malloc__)) __attribute__((__ns_returns_retained__)) __attribute__((__warn_unused_result__))
__attribute__((__nothrow__))
dispatch_workloop_t
dispatch_workloop_create(const char *_Nullable label);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(tvos,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__malloc__)) __attribute__((__ns_returns_retained__)) __attribute__((__warn_unused_result__))
__attribute__((__nothrow__))
dispatch_workloop_t
dispatch_workloop_create_inactive(const char *_Nullable label);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(tvos,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0)))
extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__))
void
dispatch_workloop_set_autorelease_frequency(dispatch_workloop_t workloop,
dispatch_autorelease_frequency_t frequency);
}
#pragma clang assume_nonnull end
extern "C" {
typedef struct {
CFIndex domain;
SInt32 error;
} CFStreamError;
typedef CFStringRef CFStreamPropertyKey __attribute__((swift_wrapper(struct)));
typedef CFIndex CFStreamStatus; enum {
kCFStreamStatusNotOpen = 0,
kCFStreamStatusOpening,
kCFStreamStatusOpen,
kCFStreamStatusReading,
kCFStreamStatusWriting,
kCFStreamStatusAtEnd,
kCFStreamStatusClosed,
kCFStreamStatusError
};
typedef CFOptionFlags CFStreamEventType; enum {
kCFStreamEventNone = 0,
kCFStreamEventOpenCompleted = 1,
kCFStreamEventHasBytesAvailable = 2,
kCFStreamEventCanAcceptBytes = 4,
kCFStreamEventErrorOccurred = 8,
kCFStreamEventEndEncountered = 16
};
typedef struct {
CFIndex version;
void * _Null_unspecified info;
void *_Null_unspecified(* _Null_unspecified retain)(void * _Null_unspecified info);
void (* _Null_unspecified release)(void * _Null_unspecified info);
CFStringRef _Null_unspecified (* _Null_unspecified copyDescription)(void * _Null_unspecified info);
} CFStreamClientContext;
typedef struct __attribute__((objc_bridge_mutable(NSInputStream))) __CFReadStream * CFReadStreamRef;
typedef struct __attribute__((objc_bridge_mutable(NSOutputStream))) __CFWriteStream * CFWriteStreamRef;
typedef void (*CFReadStreamClientCallBack)(CFReadStreamRef _Null_unspecified stream, CFStreamEventType type, void * _Null_unspecified clientCallBackInfo);
typedef void (*CFWriteStreamClientCallBack)(CFWriteStreamRef _Null_unspecified stream, CFStreamEventType type, void * _Null_unspecified clientCallBackInfo);
extern
CFTypeID CFReadStreamGetTypeID(void);
extern
CFTypeID CFWriteStreamGetTypeID(void);
extern
const CFStreamPropertyKey _Null_unspecified kCFStreamPropertyDataWritten;
extern
CFReadStreamRef _Null_unspecified CFReadStreamCreateWithBytesNoCopy(CFAllocatorRef _Null_unspecified alloc, const UInt8 * _Null_unspecified bytes, CFIndex length, CFAllocatorRef _Null_unspecified bytesDeallocator);
extern
CFWriteStreamRef _Null_unspecified CFWriteStreamCreateWithBuffer(CFAllocatorRef _Null_unspecified alloc, UInt8 * _Null_unspecified buffer, CFIndex bufferCapacity);
extern
CFWriteStreamRef _Null_unspecified CFWriteStreamCreateWithAllocatedBuffers(CFAllocatorRef _Null_unspecified alloc, CFAllocatorRef _Null_unspecified bufferAllocator);
extern
CFReadStreamRef _Null_unspecified CFReadStreamCreateWithFile(CFAllocatorRef _Null_unspecified alloc, CFURLRef _Null_unspecified fileURL);
extern
CFWriteStreamRef _Null_unspecified CFWriteStreamCreateWithFile(CFAllocatorRef _Null_unspecified alloc, CFURLRef _Null_unspecified fileURL);
extern
void CFStreamCreateBoundPair(CFAllocatorRef _Null_unspecified alloc, CFReadStreamRef _Null_unspecified * _Null_unspecified readStream, CFWriteStreamRef _Null_unspecified * _Null_unspecified writeStream, CFIndex transferBufferSize);
extern
const CFStreamPropertyKey _Null_unspecified kCFStreamPropertyAppendToFile;
extern
const CFStreamPropertyKey _Null_unspecified kCFStreamPropertyFileCurrentOffset;
extern
const CFStreamPropertyKey _Null_unspecified kCFStreamPropertySocketNativeHandle;
extern
const CFStreamPropertyKey _Null_unspecified kCFStreamPropertySocketRemoteHostName;
extern
const CFStreamPropertyKey _Null_unspecified kCFStreamPropertySocketRemotePortNumber;
extern const int kCFStreamErrorDomainSOCKS __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef _Nonnull kCFStreamPropertySOCKSProxy __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef _Nonnull kCFStreamPropertySOCKSProxyHost __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef _Nonnull kCFStreamPropertySOCKSProxyPort __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef _Nonnull kCFStreamPropertySOCKSVersion __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef _Nonnull kCFStreamSocketSOCKSVersion4 __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef _Nonnull kCFStreamSocketSOCKSVersion5 __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef _Nonnull kCFStreamPropertySOCKSUser __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef _Nonnull kCFStreamPropertySOCKSPassword __attribute__((availability(ios,introduced=2_0)));
extern const int kCFStreamErrorDomainSSL __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef _Nonnull kCFStreamPropertySocketSecurityLevel __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef _Nonnull kCFStreamSocketSecurityLevelNone __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef _Nonnull kCFStreamSocketSecurityLevelSSLv2 __attribute__((availability(ios,introduced=2_0,deprecated=10_0,message="" )));
extern const CFStringRef _Nonnull kCFStreamSocketSecurityLevelSSLv3 __attribute__((availability(ios,introduced=2_0,deprecated=10_0,message="" )));
extern const CFStringRef _Nonnull kCFStreamSocketSecurityLevelTLSv1 __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef _Nonnull kCFStreamSocketSecurityLevelNegotiatedSSL __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef _Nonnull kCFStreamPropertyShouldCloseNativeSocket __attribute__((availability(ios,introduced=2_0)));
extern
void CFStreamCreatePairWithSocket(CFAllocatorRef _Null_unspecified alloc, CFSocketNativeHandle sock, CFReadStreamRef _Null_unspecified * _Null_unspecified readStream, CFWriteStreamRef _Null_unspecified * _Null_unspecified writeStream);
extern
void CFStreamCreatePairWithSocketToHost(CFAllocatorRef _Null_unspecified alloc, CFStringRef _Null_unspecified host, UInt32 port, CFReadStreamRef _Null_unspecified * _Null_unspecified readStream, CFWriteStreamRef _Null_unspecified * _Null_unspecified writeStream);
extern
void CFStreamCreatePairWithPeerSocketSignature(CFAllocatorRef _Null_unspecified alloc, const CFSocketSignature * _Null_unspecified signature, CFReadStreamRef _Null_unspecified * _Null_unspecified readStream, CFWriteStreamRef _Null_unspecified * _Null_unspecified writeStream);
extern
CFStreamStatus CFReadStreamGetStatus(CFReadStreamRef _Null_unspecified stream);
extern
CFStreamStatus CFWriteStreamGetStatus(CFWriteStreamRef _Null_unspecified stream);
extern
CFErrorRef _Null_unspecified CFReadStreamCopyError(CFReadStreamRef _Null_unspecified stream) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFErrorRef _Null_unspecified CFWriteStreamCopyError(CFWriteStreamRef _Null_unspecified stream) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
Boolean CFReadStreamOpen(CFReadStreamRef _Null_unspecified stream);
extern
Boolean CFWriteStreamOpen(CFWriteStreamRef _Null_unspecified stream);
extern
void CFReadStreamClose(CFReadStreamRef _Null_unspecified stream);
extern
void CFWriteStreamClose(CFWriteStreamRef _Null_unspecified stream);
extern
Boolean CFReadStreamHasBytesAvailable(CFReadStreamRef _Null_unspecified stream);
extern
CFIndex CFReadStreamRead(CFReadStreamRef _Null_unspecified stream, UInt8 * _Null_unspecified buffer, CFIndex bufferLength);
extern
const UInt8 * _Null_unspecified CFReadStreamGetBuffer(CFReadStreamRef _Null_unspecified stream, CFIndex maxBytesToRead, CFIndex * _Null_unspecified numBytesRead);
extern
Boolean CFWriteStreamCanAcceptBytes(CFWriteStreamRef _Null_unspecified stream);
extern
CFIndex CFWriteStreamWrite(CFWriteStreamRef _Null_unspecified stream, const UInt8 * _Null_unspecified buffer, CFIndex bufferLength);
extern
CFTypeRef _Null_unspecified CFReadStreamCopyProperty(CFReadStreamRef _Null_unspecified stream, CFStreamPropertyKey _Null_unspecified propertyName);
extern
CFTypeRef _Null_unspecified CFWriteStreamCopyProperty(CFWriteStreamRef _Null_unspecified stream, CFStreamPropertyKey _Null_unspecified propertyName);
extern
Boolean CFReadStreamSetProperty(CFReadStreamRef _Null_unspecified stream, CFStreamPropertyKey _Null_unspecified propertyName, CFTypeRef _Null_unspecified propertyValue);
extern
Boolean CFWriteStreamSetProperty(CFWriteStreamRef _Null_unspecified stream, CFStreamPropertyKey _Null_unspecified propertyName, CFTypeRef _Null_unspecified propertyValue);
extern
Boolean CFReadStreamSetClient(CFReadStreamRef _Null_unspecified stream, CFOptionFlags streamEvents, CFReadStreamClientCallBack _Null_unspecified clientCB, CFStreamClientContext * _Null_unspecified clientContext);
extern
Boolean CFWriteStreamSetClient(CFWriteStreamRef _Null_unspecified stream, CFOptionFlags streamEvents, CFWriteStreamClientCallBack _Null_unspecified clientCB, CFStreamClientContext * _Null_unspecified clientContext);
extern
void CFReadStreamScheduleWithRunLoop(CFReadStreamRef _Null_unspecified stream, CFRunLoopRef _Null_unspecified runLoop, CFRunLoopMode _Null_unspecified runLoopMode);
extern
void CFWriteStreamScheduleWithRunLoop(CFWriteStreamRef _Null_unspecified stream, CFRunLoopRef _Null_unspecified runLoop, _Null_unspecified CFRunLoopMode runLoopMode);
extern
void CFReadStreamUnscheduleFromRunLoop(CFReadStreamRef _Null_unspecified stream, CFRunLoopRef _Null_unspecified runLoop, CFRunLoopMode _Null_unspecified runLoopMode);
extern
void CFWriteStreamUnscheduleFromRunLoop(CFWriteStreamRef _Null_unspecified stream, CFRunLoopRef _Null_unspecified runLoop, CFRunLoopMode _Null_unspecified runLoopMode);
extern
void CFReadStreamSetDispatchQueue(CFReadStreamRef _Null_unspecified stream, dispatch_queue_t _Null_unspecified q) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
void CFWriteStreamSetDispatchQueue(CFWriteStreamRef _Null_unspecified stream, dispatch_queue_t _Null_unspecified q) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
dispatch_queue_t _Null_unspecified CFReadStreamCopyDispatchQueue(CFReadStreamRef _Null_unspecified stream) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
dispatch_queue_t _Null_unspecified CFWriteStreamCopyDispatchQueue(CFWriteStreamRef _Null_unspecified stream) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef CFIndex CFStreamErrorDomain; enum {
kCFStreamErrorDomainCustom = -1L,
kCFStreamErrorDomainPOSIX = 1,
kCFStreamErrorDomainMacOSStatus
};
extern
CFStreamError CFReadStreamGetError(CFReadStreamRef _Null_unspecified stream);
extern
CFStreamError CFWriteStreamGetError(CFWriteStreamRef _Null_unspecified stream);
}
extern "C" {
typedef CFOptionFlags CFPropertyListMutabilityOptions; enum {
kCFPropertyListImmutable = 0,
kCFPropertyListMutableContainers = 1 << 0,
kCFPropertyListMutableContainersAndLeaves = 1 << 1,
};
extern
CFPropertyListRef CFPropertyListCreateFromXMLData(CFAllocatorRef allocator, CFDataRef xmlData, CFOptionFlags mutabilityOption, CFStringRef *errorString) __attribute__((availability(macos,introduced=10.0,deprecated=10.10,message="Use CFPropertyListCreateWithData instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFPropertyListCreateWithData instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFPropertyListCreateWithData instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFPropertyListCreateWithData instead.")));
extern
CFDataRef CFPropertyListCreateXMLData(CFAllocatorRef allocator, CFPropertyListRef propertyList) __attribute__((availability(macos,introduced=10.0,deprecated=10.10,message="Use CFPropertyListCreateData instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFPropertyListCreateData instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFPropertyListCreateData instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFPropertyListCreateData instead.")));
extern
CFPropertyListRef CFPropertyListCreateDeepCopy(CFAllocatorRef allocator, CFPropertyListRef propertyList, CFOptionFlags mutabilityOption);
typedef CFIndex CFPropertyListFormat; enum {
kCFPropertyListOpenStepFormat = 1,
kCFPropertyListXMLFormat_v1_0 = 100,
kCFPropertyListBinaryFormat_v1_0 = 200
};
extern
Boolean CFPropertyListIsValid(CFPropertyListRef plist, CFPropertyListFormat format);
extern
CFIndex CFPropertyListWriteToStream(CFPropertyListRef propertyList, CFWriteStreamRef stream, CFPropertyListFormat format, CFStringRef *errorString) __attribute__((availability(macos,introduced=10.2,deprecated=10.10,message="Use CFPropertyListWrite instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFPropertyListWrite instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFPropertyListWrite instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFPropertyListWrite instead.")));
extern
CFPropertyListRef CFPropertyListCreateFromStream(CFAllocatorRef allocator, CFReadStreamRef stream, CFIndex streamLength, CFOptionFlags mutabilityOption, CFPropertyListFormat *format, CFStringRef *errorString) __attribute__((availability(macos,introduced=10.2,deprecated=10.10,message="Use CFPropertyListCreateWithStream instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFPropertyListCreateWithStream instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFPropertyListCreateWithStream instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFPropertyListCreateWithStream instead.")));
enum {
kCFPropertyListReadCorruptError = 3840,
kCFPropertyListReadUnknownVersionError = 3841,
kCFPropertyListReadStreamError = 3842,
kCFPropertyListWriteStreamError = 3851,
} __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFPropertyListRef CFPropertyListCreateWithData(CFAllocatorRef allocator, CFDataRef data, CFOptionFlags options, CFPropertyListFormat *format, CFErrorRef *error) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFPropertyListRef CFPropertyListCreateWithStream(CFAllocatorRef allocator, CFReadStreamRef stream, CFIndex streamLength, CFOptionFlags options, CFPropertyListFormat *format, CFErrorRef *error) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFIndex CFPropertyListWrite(CFPropertyListRef propertyList, CFWriteStreamRef stream, CFPropertyListFormat format, CFOptionFlags options, CFErrorRef *error) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFDataRef CFPropertyListCreateData(CFAllocatorRef allocator, CFPropertyListRef propertyList, CFPropertyListFormat format, CFOptionFlags options, CFErrorRef *error) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
}
extern "C" {
typedef const void * (*CFSetRetainCallBack)(CFAllocatorRef allocator, const void *value);
typedef void (*CFSetReleaseCallBack)(CFAllocatorRef allocator, const void *value);
typedef CFStringRef (*CFSetCopyDescriptionCallBack)(const void *value);
typedef Boolean (*CFSetEqualCallBack)(const void *value1, const void *value2);
typedef CFHashCode (*CFSetHashCallBack)(const void *value);
typedef struct {
CFIndex version;
CFSetRetainCallBack retain;
CFSetReleaseCallBack release;
CFSetCopyDescriptionCallBack copyDescription;
CFSetEqualCallBack equal;
CFSetHashCallBack hash;
} CFSetCallBacks;
extern
const CFSetCallBacks kCFTypeSetCallBacks;
extern
const CFSetCallBacks kCFCopyStringSetCallBacks;
typedef void (*CFSetApplierFunction)(const void *value, void *context);
typedef const struct __attribute__((objc_bridge(NSSet))) __CFSet * CFSetRef;
typedef struct __attribute__((objc_bridge_mutable(NSMutableSet))) __CFSet * CFMutableSetRef;
extern
CFTypeID CFSetGetTypeID(void);
extern
CFSetRef CFSetCreate(CFAllocatorRef allocator, const void **values, CFIndex numValues, const CFSetCallBacks *callBacks);
extern
CFSetRef CFSetCreateCopy(CFAllocatorRef allocator, CFSetRef theSet);
extern
CFMutableSetRef CFSetCreateMutable(CFAllocatorRef allocator, CFIndex capacity, const CFSetCallBacks *callBacks);
extern
CFMutableSetRef CFSetCreateMutableCopy(CFAllocatorRef allocator, CFIndex capacity, CFSetRef theSet);
extern
CFIndex CFSetGetCount(CFSetRef theSet);
extern
CFIndex CFSetGetCountOfValue(CFSetRef theSet, const void *value);
extern
Boolean CFSetContainsValue(CFSetRef theSet, const void *value);
extern
const void *CFSetGetValue(CFSetRef theSet, const void *value);
extern
Boolean CFSetGetValueIfPresent(CFSetRef theSet, const void *candidate, const void **value);
extern
void CFSetGetValues(CFSetRef theSet, const void **values);
extern
void CFSetApplyFunction(CFSetRef theSet, CFSetApplierFunction __attribute__((noescape)) applier, void *context);
extern
void CFSetAddValue(CFMutableSetRef theSet, const void *value);
extern
void CFSetReplaceValue(CFMutableSetRef theSet, const void *value);
extern
void CFSetSetValue(CFMutableSetRef theSet, const void *value);
extern
void CFSetRemoveValue(CFMutableSetRef theSet, const void *value);
extern
void CFSetRemoveAllValues(CFMutableSetRef theSet);
}
extern "C" {
typedef CFIndex CFStringEncodings; enum {
kCFStringEncodingMacJapanese = 1,
kCFStringEncodingMacChineseTrad = 2,
kCFStringEncodingMacKorean = 3,
kCFStringEncodingMacArabic = 4,
kCFStringEncodingMacHebrew = 5,
kCFStringEncodingMacGreek = 6,
kCFStringEncodingMacCyrillic = 7,
kCFStringEncodingMacDevanagari = 9,
kCFStringEncodingMacGurmukhi = 10,
kCFStringEncodingMacGujarati = 11,
kCFStringEncodingMacOriya = 12,
kCFStringEncodingMacBengali = 13,
kCFStringEncodingMacTamil = 14,
kCFStringEncodingMacTelugu = 15,
kCFStringEncodingMacKannada = 16,
kCFStringEncodingMacMalayalam = 17,
kCFStringEncodingMacSinhalese = 18,
kCFStringEncodingMacBurmese = 19,
kCFStringEncodingMacKhmer = 20,
kCFStringEncodingMacThai = 21,
kCFStringEncodingMacLaotian = 22,
kCFStringEncodingMacGeorgian = 23,
kCFStringEncodingMacArmenian = 24,
kCFStringEncodingMacChineseSimp = 25,
kCFStringEncodingMacTibetan = 26,
kCFStringEncodingMacMongolian = 27,
kCFStringEncodingMacEthiopic = 28,
kCFStringEncodingMacCentralEurRoman = 29,
kCFStringEncodingMacVietnamese = 30,
kCFStringEncodingMacExtArabic = 31,
kCFStringEncodingMacSymbol = 33,
kCFStringEncodingMacDingbats = 34,
kCFStringEncodingMacTurkish = 35,
kCFStringEncodingMacCroatian = 36,
kCFStringEncodingMacIcelandic = 37,
kCFStringEncodingMacRomanian = 38,
kCFStringEncodingMacCeltic = 39,
kCFStringEncodingMacGaelic = 40,
kCFStringEncodingMacFarsi = 0x8C,
kCFStringEncodingMacUkrainian = 0x98,
kCFStringEncodingMacInuit = 0xEC,
kCFStringEncodingMacVT100 = 0xFC,
kCFStringEncodingMacHFS = 0xFF,
kCFStringEncodingISOLatin2 = 0x0202,
kCFStringEncodingISOLatin3 = 0x0203,
kCFStringEncodingISOLatin4 = 0x0204,
kCFStringEncodingISOLatinCyrillic = 0x0205,
kCFStringEncodingISOLatinArabic = 0x0206,
kCFStringEncodingISOLatinGreek = 0x0207,
kCFStringEncodingISOLatinHebrew = 0x0208,
kCFStringEncodingISOLatin5 = 0x0209,
kCFStringEncodingISOLatin6 = 0x020A,
kCFStringEncodingISOLatinThai = 0x020B,
kCFStringEncodingISOLatin7 = 0x020D,
kCFStringEncodingISOLatin8 = 0x020E,
kCFStringEncodingISOLatin9 = 0x020F,
kCFStringEncodingISOLatin10 = 0x0210,
kCFStringEncodingDOSLatinUS = 0x0400,
kCFStringEncodingDOSGreek = 0x0405,
kCFStringEncodingDOSBalticRim = 0x0406,
kCFStringEncodingDOSLatin1 = 0x0410,
kCFStringEncodingDOSGreek1 = 0x0411,
kCFStringEncodingDOSLatin2 = 0x0412,
kCFStringEncodingDOSCyrillic = 0x0413,
kCFStringEncodingDOSTurkish = 0x0414,
kCFStringEncodingDOSPortuguese = 0x0415,
kCFStringEncodingDOSIcelandic = 0x0416,
kCFStringEncodingDOSHebrew = 0x0417,
kCFStringEncodingDOSCanadianFrench = 0x0418,
kCFStringEncodingDOSArabic = 0x0419,
kCFStringEncodingDOSNordic = 0x041A,
kCFStringEncodingDOSRussian = 0x041B,
kCFStringEncodingDOSGreek2 = 0x041C,
kCFStringEncodingDOSThai = 0x041D,
kCFStringEncodingDOSJapanese = 0x0420,
kCFStringEncodingDOSChineseSimplif = 0x0421,
kCFStringEncodingDOSKorean = 0x0422,
kCFStringEncodingDOSChineseTrad = 0x0423,
kCFStringEncodingWindowsLatin2 = 0x0501,
kCFStringEncodingWindowsCyrillic = 0x0502,
kCFStringEncodingWindowsGreek = 0x0503,
kCFStringEncodingWindowsLatin5 = 0x0504,
kCFStringEncodingWindowsHebrew = 0x0505,
kCFStringEncodingWindowsArabic = 0x0506,
kCFStringEncodingWindowsBalticRim = 0x0507,
kCFStringEncodingWindowsVietnamese = 0x0508,
kCFStringEncodingWindowsKoreanJohab = 0x0510,
kCFStringEncodingANSEL = 0x0601,
kCFStringEncodingJIS_X0201_76 = 0x0620,
kCFStringEncodingJIS_X0208_83 = 0x0621,
kCFStringEncodingJIS_X0208_90 = 0x0622,
kCFStringEncodingJIS_X0212_90 = 0x0623,
kCFStringEncodingJIS_C6226_78 = 0x0624,
kCFStringEncodingShiftJIS_X0213 __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 0x0628,
kCFStringEncodingShiftJIS_X0213_MenKuTen = 0x0629,
kCFStringEncodingGB_2312_80 = 0x0630,
kCFStringEncodingGBK_95 = 0x0631,
kCFStringEncodingGB_18030_2000 = 0x0632,
kCFStringEncodingKSC_5601_87 = 0x0640,
kCFStringEncodingKSC_5601_92_Johab = 0x0641,
kCFStringEncodingCNS_11643_92_P1 = 0x0651,
kCFStringEncodingCNS_11643_92_P2 = 0x0652,
kCFStringEncodingCNS_11643_92_P3 = 0x0653,
kCFStringEncodingISO_2022_JP = 0x0820,
kCFStringEncodingISO_2022_JP_2 = 0x0821,
kCFStringEncodingISO_2022_JP_1 = 0x0822,
kCFStringEncodingISO_2022_JP_3 = 0x0823,
kCFStringEncodingISO_2022_CN = 0x0830,
kCFStringEncodingISO_2022_CN_EXT = 0x0831,
kCFStringEncodingISO_2022_KR = 0x0840,
kCFStringEncodingEUC_JP = 0x0920,
kCFStringEncodingEUC_CN = 0x0930,
kCFStringEncodingEUC_TW = 0x0931,
kCFStringEncodingEUC_KR = 0x0940,
kCFStringEncodingShiftJIS = 0x0A01,
kCFStringEncodingKOI8_R = 0x0A02,
kCFStringEncodingBig5 = 0x0A03,
kCFStringEncodingMacRomanLatin1 = 0x0A04,
kCFStringEncodingHZ_GB_2312 = 0x0A05,
kCFStringEncodingBig5_HKSCS_1999 = 0x0A06,
kCFStringEncodingVISCII = 0x0A07,
kCFStringEncodingKOI8_U = 0x0A08,
kCFStringEncodingBig5_E = 0x0A09,
kCFStringEncodingNextStepJapanese = 0x0B02,
kCFStringEncodingEBCDIC_US = 0x0C01,
kCFStringEncodingEBCDIC_CP037 = 0x0C02,
kCFStringEncodingUTF7 __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 0x04000100,
kCFStringEncodingUTF7_IMAP __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 0x0A10,
kCFStringEncodingShiftJIS_X0213_00 = 0x0628
};
}
extern "C" {
typedef const void * (*CFTreeRetainCallBack)(const void *info);
typedef void (*CFTreeReleaseCallBack)(const void *info);
typedef CFStringRef (*CFTreeCopyDescriptionCallBack)(const void *info);
typedef struct {
CFIndex version;
void * info;
CFTreeRetainCallBack retain;
CFTreeReleaseCallBack release;
CFTreeCopyDescriptionCallBack copyDescription;
} CFTreeContext;
typedef void (*CFTreeApplierFunction)(const void *value, void *context);
typedef struct __attribute__((objc_bridge_mutable(id))) __CFTree * CFTreeRef;
extern
CFTypeID CFTreeGetTypeID(void);
extern
CFTreeRef CFTreeCreate(CFAllocatorRef allocator, const CFTreeContext *context);
extern
CFTreeRef CFTreeGetParent(CFTreeRef tree);
extern
CFTreeRef CFTreeGetNextSibling(CFTreeRef tree);
extern
CFTreeRef CFTreeGetFirstChild(CFTreeRef tree);
extern
void CFTreeGetContext(CFTreeRef tree, CFTreeContext *context);
extern
CFIndex CFTreeGetChildCount(CFTreeRef tree);
extern
CFTreeRef CFTreeGetChildAtIndex(CFTreeRef tree, CFIndex idx);
extern
void CFTreeGetChildren(CFTreeRef tree, CFTreeRef *children);
extern
void CFTreeApplyFunctionToChildren(CFTreeRef tree, CFTreeApplierFunction __attribute__((noescape)) applier, void *context);
extern
CFTreeRef CFTreeFindRoot(CFTreeRef tree);
extern
void CFTreeSetContext(CFTreeRef tree, const CFTreeContext *context);
extern
void CFTreePrependChild(CFTreeRef tree, CFTreeRef newChild);
extern
void CFTreeAppendChild(CFTreeRef tree, CFTreeRef newChild);
extern
void CFTreeInsertSibling(CFTreeRef tree, CFTreeRef newSibling);
extern
void CFTreeRemove(CFTreeRef tree);
extern
void CFTreeRemoveAllChildren(CFTreeRef tree);
extern
void CFTreeSortChildren(CFTreeRef tree, CFComparatorFunction comparator, void *context);
}
extern "C" {
extern
Boolean CFURLCreateDataAndPropertiesFromResource(CFAllocatorRef alloc, CFURLRef url, CFDataRef *resourceData, CFDictionaryRef *properties, CFArrayRef desiredProperties, SInt32 *errorCode) __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="For resource data, use the CFReadStream API. For file resource properties, use CFURLCopyResourcePropertiesForKeys."))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="For resource data, use the CFReadStream API. For file resource properties, use CFURLCopyResourcePropertiesForKeys."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="For resource data, use the CFReadStream API. For file resource properties, use CFURLCopyResourcePropertiesForKeys."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="For resource data, use the CFReadStream API. For file resource properties, use CFURLCopyResourcePropertiesForKeys.")));
extern
Boolean CFURLWriteDataAndPropertiesToResource(CFURLRef url, CFDataRef dataToWrite, CFDictionaryRef propertiesToWrite, SInt32 *errorCode) __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="For resource data, use the CFWriteStream API. For file resource properties, use CFURLSetResourcePropertiesForKeys."))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="For resource data, use the CFWriteStream API. For file resource properties, use CFURLSetResourcePropertiesForKeys."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="For resource data, use the CFWriteStream API. For file resource properties, use CFURLSetResourcePropertiesForKeys."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="For resource data, use the CFWriteStream API. For file resource properties, use CFURLSetResourcePropertiesForKeys.")));
extern
Boolean CFURLDestroyResource(CFURLRef url, SInt32 *errorCode) __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Use CFURLGetFileSystemRepresentation and removefile(3) instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Use CFURLGetFileSystemRepresentation and removefile(3) instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFURLGetFileSystemRepresentation and removefile(3) instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFURLGetFileSystemRepresentation and removefile(3) instead.")));
extern
CFTypeRef CFURLCreatePropertyFromResource(CFAllocatorRef alloc, CFURLRef url, CFStringRef property, SInt32 *errorCode) __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="For file resource properties, use CFURLCopyResourcePropertyForKey."))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="For file resource properties, use CFURLCopyResourcePropertyForKey."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="For file resource properties, use CFURLCopyResourcePropertyForKey."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="For file resource properties, use CFURLCopyResourcePropertyForKey.")));
typedef CFIndex CFURLError; enum {
kCFURLUnknownError = -10L,
kCFURLUnknownSchemeError = -11L,
kCFURLResourceNotFoundError = -12L,
kCFURLResourceAccessViolationError = -13L,
kCFURLRemoteHostUnavailableError = -14L,
kCFURLImproperArgumentsError = -15L,
kCFURLUnknownPropertyKeyError = -16L,
kCFURLPropertyKeyUnavailableError = -17L,
kCFURLTimeoutError = -18L
} __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Use CFError codes instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Use CFError codes instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFError codes instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFError codes instead")));
extern
const CFStringRef kCFURLFileExists __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Use CFURLResourceIsReachable instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Use CFURLResourceIsReachable instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFURLResourceIsReachable instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFURLResourceIsReachable instead.")));
extern
const CFStringRef kCFURLFileDirectoryContents __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Use the CFURLEnumerator API instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Use the CFURLEnumerator API instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use the CFURLEnumerator API instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use the CFURLEnumerator API instead.")));
extern
const CFStringRef kCFURLFileLength __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Use CFURLCopyResourcePropertyForKey with kCFURLFileSizeKey instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Use CFURLCopyResourcePropertyForKey with kCFURLFileSizeKey instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFURLCopyResourcePropertyForKey with kCFURLFileSizeKey instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFURLCopyResourcePropertyForKey with kCFURLFileSizeKey instead.")));
extern
const CFStringRef kCFURLFileLastModificationTime __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Use CFURLCopyResourcePropertyForKey with kCFURLContentModificationDateKey instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Use CFURLCopyResourcePropertyForKey with kCFURLContentModificationDateKey instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFURLCopyResourcePropertyForKey with kCFURLContentModificationDateKey instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFURLCopyResourcePropertyForKey with kCFURLContentModificationDateKey instead.")));
extern
const CFStringRef kCFURLFilePOSIXMode __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Use CFURLCopyResourcePropertyForKey with kCFURLFileSecurityKey and then the CFFileSecurity API instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Use CFURLCopyResourcePropertyForKey with kCFURLFileSecurityKey and then the CFFileSecurity API instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFURLCopyResourcePropertyForKey with kCFURLFileSecurityKey and then the CFFileSecurity API instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFURLCopyResourcePropertyForKey with kCFURLFileSecurityKey and then the CFFileSecurity API instead.")));
extern
const CFStringRef kCFURLFileOwnerID __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Use CFURLCopyResourcePropertyForKey with kCFURLFileSecurityKey and then the CFFileSecurity API instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Use CFURLCopyResourcePropertyForKey with kCFURLFileSecurityKey and then the CFFileSecurity API instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFURLCopyResourcePropertyForKey with kCFURLFileSecurityKey and then the CFFileSecurity API instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFURLCopyResourcePropertyForKey with kCFURLFileSecurityKey and then the CFFileSecurity API instead.")));
extern
const CFStringRef kCFURLHTTPStatusCode __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Use NSHTTPURLResponse methods instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Use NSHTTPURLResponse methods instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use NSHTTPURLResponse methods instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use NSHTTPURLResponse methods instead.")));
extern
const CFStringRef kCFURLHTTPStatusLine __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Use NSHTTPURLResponse methods instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Use NSHTTPURLResponse methods instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use NSHTTPURLResponse methods instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use NSHTTPURLResponse methods instead.")));
}
extern "C" {
typedef const struct __attribute__((objc_bridge(id))) __CFUUID * CFUUIDRef;
typedef struct {
UInt8 byte0;
UInt8 byte1;
UInt8 byte2;
UInt8 byte3;
UInt8 byte4;
UInt8 byte5;
UInt8 byte6;
UInt8 byte7;
UInt8 byte8;
UInt8 byte9;
UInt8 byte10;
UInt8 byte11;
UInt8 byte12;
UInt8 byte13;
UInt8 byte14;
UInt8 byte15;
} CFUUIDBytes;
extern
CFTypeID CFUUIDGetTypeID(void);
extern
CFUUIDRef CFUUIDCreate(CFAllocatorRef alloc);
extern
CFUUIDRef CFUUIDCreateWithBytes(CFAllocatorRef alloc, UInt8 byte0, UInt8 byte1, UInt8 byte2, UInt8 byte3, UInt8 byte4, UInt8 byte5, UInt8 byte6, UInt8 byte7, UInt8 byte8, UInt8 byte9, UInt8 byte10, UInt8 byte11, UInt8 byte12, UInt8 byte13, UInt8 byte14, UInt8 byte15);
extern
CFUUIDRef CFUUIDCreateFromString(CFAllocatorRef alloc, CFStringRef uuidStr);
extern
CFStringRef CFUUIDCreateString(CFAllocatorRef alloc, CFUUIDRef uuid);
extern
CFUUIDRef CFUUIDGetConstantUUIDWithBytes(CFAllocatorRef alloc, UInt8 byte0, UInt8 byte1, UInt8 byte2, UInt8 byte3, UInt8 byte4, UInt8 byte5, UInt8 byte6, UInt8 byte7, UInt8 byte8, UInt8 byte9, UInt8 byte10, UInt8 byte11, UInt8 byte12, UInt8 byte13, UInt8 byte14, UInt8 byte15);
extern
CFUUIDBytes CFUUIDGetUUIDBytes(CFUUIDRef uuid);
extern
CFUUIDRef CFUUIDCreateFromUUIDBytes(CFAllocatorRef alloc, CFUUIDBytes bytes);
}
extern "C" {
extern
CFURLRef CFCopyHomeDirectoryURL(void) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
}
extern "C" {
typedef struct __attribute__((objc_bridge(id))) __CFBundle *CFBundleRef;
typedef struct __attribute__((objc_bridge(id))) __CFBundle *CFPlugInRef;
extern
const CFStringRef kCFBundleInfoDictionaryVersionKey;
extern
const CFStringRef kCFBundleExecutableKey;
extern
const CFStringRef kCFBundleIdentifierKey;
extern
const CFStringRef kCFBundleVersionKey;
extern
const CFStringRef kCFBundleDevelopmentRegionKey;
extern
const CFStringRef kCFBundleNameKey;
extern
const CFStringRef kCFBundleLocalizationsKey;
extern
CFBundleRef CFBundleGetMainBundle(void);
extern
CFBundleRef CFBundleGetBundleWithIdentifier(CFStringRef bundleID);
extern
CFArrayRef CFBundleGetAllBundles(void);
extern
CFTypeID CFBundleGetTypeID(void);
extern
CFBundleRef CFBundleCreate(CFAllocatorRef allocator, CFURLRef bundleURL);
extern
CFArrayRef CFBundleCreateBundlesFromDirectory(CFAllocatorRef allocator, CFURLRef directoryURL, CFStringRef bundleType);
extern
CFURLRef CFBundleCopyBundleURL(CFBundleRef bundle);
extern
CFTypeRef CFBundleGetValueForInfoDictionaryKey(CFBundleRef bundle, CFStringRef key);
extern
CFDictionaryRef CFBundleGetInfoDictionary(CFBundleRef bundle);
extern
CFDictionaryRef CFBundleGetLocalInfoDictionary(CFBundleRef bundle);
extern
void CFBundleGetPackageInfo(CFBundleRef bundle, UInt32 *packageType, UInt32 *packageCreator);
extern
CFStringRef CFBundleGetIdentifier(CFBundleRef bundle);
extern
UInt32 CFBundleGetVersionNumber(CFBundleRef bundle);
extern
CFStringRef CFBundleGetDevelopmentRegion(CFBundleRef bundle);
extern
CFURLRef CFBundleCopySupportFilesDirectoryURL(CFBundleRef bundle);
extern
CFURLRef CFBundleCopyResourcesDirectoryURL(CFBundleRef bundle);
extern
CFURLRef CFBundleCopyPrivateFrameworksURL(CFBundleRef bundle);
extern
CFURLRef CFBundleCopySharedFrameworksURL(CFBundleRef bundle);
extern
CFURLRef CFBundleCopySharedSupportURL(CFBundleRef bundle);
extern
CFURLRef CFBundleCopyBuiltInPlugInsURL(CFBundleRef bundle);
extern
CFDictionaryRef CFBundleCopyInfoDictionaryInDirectory(CFURLRef bundleURL);
extern
Boolean CFBundleGetPackageInfoInDirectory(CFURLRef url, UInt32 *packageType, UInt32 *packageCreator);
extern
CFURLRef CFBundleCopyResourceURL(CFBundleRef bundle, CFStringRef resourceName, CFStringRef resourceType, CFStringRef subDirName);
extern
CFArrayRef CFBundleCopyResourceURLsOfType(CFBundleRef bundle, CFStringRef resourceType, CFStringRef subDirName);
extern
CFStringRef CFBundleCopyLocalizedString(CFBundleRef bundle, CFStringRef key, CFStringRef value, CFStringRef tableName) __attribute__((format_arg(2)));
extern
CFURLRef CFBundleCopyResourceURLInDirectory(CFURLRef bundleURL, CFStringRef resourceName, CFStringRef resourceType, CFStringRef subDirName);
extern
CFArrayRef CFBundleCopyResourceURLsOfTypeInDirectory(CFURLRef bundleURL, CFStringRef resourceType, CFStringRef subDirName);
extern
CFArrayRef CFBundleCopyBundleLocalizations(CFBundleRef bundle);
extern
CFArrayRef CFBundleCopyPreferredLocalizationsFromArray(CFArrayRef locArray);
extern
CFArrayRef CFBundleCopyLocalizationsForPreferences(CFArrayRef locArray, CFArrayRef prefArray);
extern
CFURLRef CFBundleCopyResourceURLForLocalization(CFBundleRef bundle, CFStringRef resourceName, CFStringRef resourceType, CFStringRef subDirName, CFStringRef localizationName);
extern
CFArrayRef CFBundleCopyResourceURLsOfTypeForLocalization(CFBundleRef bundle, CFStringRef resourceType, CFStringRef subDirName, CFStringRef localizationName);
extern
CFDictionaryRef CFBundleCopyInfoDictionaryForURL(CFURLRef url);
extern
CFArrayRef CFBundleCopyLocalizationsForURL(CFURLRef url);
extern
CFArrayRef CFBundleCopyExecutableArchitecturesForURL(CFURLRef url) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFURLRef CFBundleCopyExecutableURL(CFBundleRef bundle);
enum {
kCFBundleExecutableArchitectureI386 = 0x00000007,
kCFBundleExecutableArchitecturePPC = 0x00000012,
kCFBundleExecutableArchitectureX86_64 = 0x01000007,
kCFBundleExecutableArchitecturePPC64 = 0x01000012
} __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFArrayRef CFBundleCopyExecutableArchitectures(CFBundleRef bundle) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
Boolean CFBundlePreflightExecutable(CFBundleRef bundle, CFErrorRef *error) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
Boolean CFBundleLoadExecutableAndReturnError(CFBundleRef bundle, CFErrorRef *error) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
Boolean CFBundleLoadExecutable(CFBundleRef bundle);
extern
Boolean CFBundleIsExecutableLoaded(CFBundleRef bundle);
extern
void CFBundleUnloadExecutable(CFBundleRef bundle);
extern
void *CFBundleGetFunctionPointerForName(CFBundleRef bundle, CFStringRef functionName);
extern
void CFBundleGetFunctionPointersForNames(CFBundleRef bundle, CFArrayRef functionNames, void *ftbl[]);
extern
void *CFBundleGetDataPointerForName(CFBundleRef bundle, CFStringRef symbolName);
extern
void CFBundleGetDataPointersForNames(CFBundleRef bundle, CFArrayRef symbolNames, void *stbl[]);
extern
CFURLRef CFBundleCopyAuxiliaryExecutableURL(CFBundleRef bundle, CFStringRef executableName);
extern
CFPlugInRef CFBundleGetPlugIn(CFBundleRef bundle);
typedef int CFBundleRefNum;
extern
CFBundleRefNum CFBundleOpenBundleResourceMap(CFBundleRef bundle) __attribute__((availability(macosx,introduced=10.0,deprecated=10.15,message="The Carbon Resource Manager is deprecated. This should only be used to access Resource Manager-style resources in old bundles."))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
SInt32 CFBundleOpenBundleResourceFiles(CFBundleRef bundle, CFBundleRefNum *refNum, CFBundleRefNum *localizedRefNum) __attribute__((availability(macosx,introduced=10.0,deprecated=10.15,message="The Carbon Resource Manager is deprecated. This should only be used to access Resource Manager-style resources in old bundles."))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
void CFBundleCloseBundleResourceMap(CFBundleRef bundle, CFBundleRefNum refNum) __attribute__((availability(macosx,introduced=10.0,deprecated=10.15,message="The Carbon Resource Manager is deprecated. This should only be used to access Resource Manager-style resources in old bundles."))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
}
extern "C" {
typedef struct __attribute__((objc_bridge_mutable(NSMessagePort))) __CFMessagePort * CFMessagePortRef;
enum {
kCFMessagePortSuccess = 0,
kCFMessagePortSendTimeout = -1,
kCFMessagePortReceiveTimeout = -2,
kCFMessagePortIsInvalid = -3,
kCFMessagePortTransportError = -4,
kCFMessagePortBecameInvalidError = -5
};
typedef struct {
CFIndex version;
void * info;
const void *(*retain)(const void *info);
void (*release)(const void *info);
CFStringRef (*copyDescription)(const void *info);
} CFMessagePortContext;
typedef CFDataRef (*CFMessagePortCallBack)(CFMessagePortRef local, SInt32 msgid, CFDataRef data, void *info);
typedef void (*CFMessagePortInvalidationCallBack)(CFMessagePortRef ms, void *info);
extern CFTypeID CFMessagePortGetTypeID(void);
extern CFMessagePortRef CFMessagePortCreateLocal(CFAllocatorRef allocator, CFStringRef name, CFMessagePortCallBack callout, CFMessagePortContext *context, Boolean *shouldFreeInfo);
extern CFMessagePortRef CFMessagePortCreateRemote(CFAllocatorRef allocator, CFStringRef name);
extern Boolean CFMessagePortIsRemote(CFMessagePortRef ms);
extern CFStringRef CFMessagePortGetName(CFMessagePortRef ms);
extern Boolean CFMessagePortSetName(CFMessagePortRef ms, CFStringRef newName);
extern void CFMessagePortGetContext(CFMessagePortRef ms, CFMessagePortContext *context);
extern void CFMessagePortInvalidate(CFMessagePortRef ms);
extern Boolean CFMessagePortIsValid(CFMessagePortRef ms);
extern CFMessagePortInvalidationCallBack CFMessagePortGetInvalidationCallBack(CFMessagePortRef ms);
extern void CFMessagePortSetInvalidationCallBack(CFMessagePortRef ms, CFMessagePortInvalidationCallBack callout);
extern SInt32 CFMessagePortSendRequest(CFMessagePortRef remote, SInt32 msgid, CFDataRef data, CFTimeInterval sendTimeout, CFTimeInterval rcvTimeout, CFStringRef replyMode, CFDataRef *returnData);
extern CFRunLoopSourceRef CFMessagePortCreateRunLoopSource(CFAllocatorRef allocator, CFMessagePortRef local, CFIndex order);
extern void CFMessagePortSetDispatchQueue(CFMessagePortRef ms, dispatch_queue_t queue) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
}
extern "C" {
extern const CFStringRef kCFPlugInDynamicRegistrationKey;
extern const CFStringRef kCFPlugInDynamicRegisterFunctionKey;
extern const CFStringRef kCFPlugInUnloadFunctionKey;
extern const CFStringRef kCFPlugInFactoriesKey;
extern const CFStringRef kCFPlugInTypesKey;
typedef void (*CFPlugInDynamicRegisterFunction)(CFPlugInRef plugIn);
typedef void (*CFPlugInUnloadFunction)(CFPlugInRef plugIn);
typedef void *(*CFPlugInFactoryFunction)(CFAllocatorRef allocator, CFUUIDRef typeUUID);
extern CFTypeID CFPlugInGetTypeID(void);
extern CFPlugInRef CFPlugInCreate(CFAllocatorRef allocator, CFURLRef plugInURL);
extern CFBundleRef CFPlugInGetBundle(CFPlugInRef plugIn);
extern void CFPlugInSetLoadOnDemand(CFPlugInRef plugIn, Boolean flag);
extern Boolean CFPlugInIsLoadOnDemand(CFPlugInRef plugIn);
extern CFArrayRef CFPlugInFindFactoriesForPlugInType(CFUUIDRef typeUUID) __attribute__((cf_returns_retained));
extern CFArrayRef CFPlugInFindFactoriesForPlugInTypeInPlugIn(CFUUIDRef typeUUID, CFPlugInRef plugIn) __attribute__((cf_returns_retained));
extern void *CFPlugInInstanceCreate(CFAllocatorRef allocator, CFUUIDRef factoryUUID, CFUUIDRef typeUUID);
extern Boolean CFPlugInRegisterFactoryFunction(CFUUIDRef factoryUUID, CFPlugInFactoryFunction func);
extern Boolean CFPlugInRegisterFactoryFunctionByName(CFUUIDRef factoryUUID, CFPlugInRef plugIn, CFStringRef functionName);
extern Boolean CFPlugInUnregisterFactory(CFUUIDRef factoryUUID);
extern Boolean CFPlugInRegisterPlugInType(CFUUIDRef factoryUUID, CFUUIDRef typeUUID);
extern Boolean CFPlugInUnregisterPlugInType(CFUUIDRef factoryUUID, CFUUIDRef typeUUID);
extern void CFPlugInAddInstanceForFactory(CFUUIDRef factoryID);
extern void CFPlugInRemoveInstanceForFactory(CFUUIDRef factoryID);
typedef struct __attribute__((objc_bridge(id))) __CFPlugInInstance *CFPlugInInstanceRef;
typedef Boolean (*CFPlugInInstanceGetInterfaceFunction)(CFPlugInInstanceRef instance, CFStringRef interfaceName, void **ftbl);
typedef void (*CFPlugInInstanceDeallocateInstanceDataFunction)(void *instanceData);
extern Boolean CFPlugInInstanceGetInterfaceFunctionTable(CFPlugInInstanceRef instance, CFStringRef interfaceName, void **ftbl);
extern CFStringRef CFPlugInInstanceGetFactoryName(CFPlugInInstanceRef instance) __attribute__((cf_returns_retained));
extern void *CFPlugInInstanceGetInstanceData(CFPlugInInstanceRef instance);
extern CFTypeID CFPlugInInstanceGetTypeID(void);
extern CFPlugInInstanceRef CFPlugInInstanceCreateWithInstanceDataSize(CFAllocatorRef allocator, CFIndex instanceDataSize, CFPlugInInstanceDeallocateInstanceDataFunction deallocateInstanceFunction, CFStringRef factoryName, CFPlugInInstanceGetInterfaceFunction getInterfaceFunction);
}
extern "C" {
typedef struct __attribute__((objc_bridge_mutable(NSMachPort))) __CFMachPort * CFMachPortRef;
typedef struct {
CFIndex version;
void * info;
const void *(*retain)(const void *info);
void (*release)(const void *info);
CFStringRef (*copyDescription)(const void *info);
} CFMachPortContext;
typedef void (*CFMachPortCallBack)(CFMachPortRef port, void *msg, CFIndex size, void *info);
typedef void (*CFMachPortInvalidationCallBack)(CFMachPortRef port, void *info);
extern CFTypeID CFMachPortGetTypeID(void);
extern CFMachPortRef CFMachPortCreate(CFAllocatorRef allocator, CFMachPortCallBack callout, CFMachPortContext *context, Boolean *shouldFreeInfo);
extern CFMachPortRef CFMachPortCreateWithPort(CFAllocatorRef allocator, mach_port_t portNum, CFMachPortCallBack callout, CFMachPortContext *context, Boolean *shouldFreeInfo);
extern mach_port_t CFMachPortGetPort(CFMachPortRef port);
extern void CFMachPortGetContext(CFMachPortRef port, CFMachPortContext *context);
extern void CFMachPortInvalidate(CFMachPortRef port);
extern Boolean CFMachPortIsValid(CFMachPortRef port);
extern CFMachPortInvalidationCallBack CFMachPortGetInvalidationCallBack(CFMachPortRef port);
extern void CFMachPortSetInvalidationCallBack(CFMachPortRef port, CFMachPortInvalidationCallBack callout);
extern CFRunLoopSourceRef CFMachPortCreateRunLoopSource(CFAllocatorRef allocator, CFMachPortRef port, CFIndex order);
}
extern "C" {
typedef const struct __attribute__((objc_bridge(NSAttributedString))) __CFAttributedString *CFAttributedStringRef;
typedef struct __attribute__((objc_bridge_mutable(NSMutableAttributedString))) __CFAttributedString *CFMutableAttributedStringRef;
extern CFTypeID CFAttributedStringGetTypeID(void);
extern CFAttributedStringRef CFAttributedStringCreate(CFAllocatorRef alloc, CFStringRef str, CFDictionaryRef attributes);
extern CFAttributedStringRef CFAttributedStringCreateWithSubstring(CFAllocatorRef alloc, CFAttributedStringRef aStr, CFRange range);
extern CFAttributedStringRef CFAttributedStringCreateCopy(CFAllocatorRef alloc, CFAttributedStringRef aStr);
extern CFStringRef CFAttributedStringGetString(CFAttributedStringRef aStr);
extern CFIndex CFAttributedStringGetLength(CFAttributedStringRef aStr);
extern CFDictionaryRef CFAttributedStringGetAttributes(CFAttributedStringRef aStr, CFIndex loc, CFRange *effectiveRange);
extern CFTypeRef CFAttributedStringGetAttribute(CFAttributedStringRef aStr, CFIndex loc, CFStringRef attrName, CFRange *effectiveRange);
extern CFDictionaryRef CFAttributedStringGetAttributesAndLongestEffectiveRange(CFAttributedStringRef aStr, CFIndex loc, CFRange inRange, CFRange *longestEffectiveRange);
extern CFTypeRef CFAttributedStringGetAttributeAndLongestEffectiveRange(CFAttributedStringRef aStr, CFIndex loc, CFStringRef attrName, CFRange inRange, CFRange *longestEffectiveRange);
extern CFMutableAttributedStringRef CFAttributedStringCreateMutableCopy(CFAllocatorRef alloc, CFIndex maxLength, CFAttributedStringRef aStr);
extern CFMutableAttributedStringRef CFAttributedStringCreateMutable(CFAllocatorRef alloc, CFIndex maxLength);
extern void CFAttributedStringReplaceString(CFMutableAttributedStringRef aStr, CFRange range, CFStringRef replacement);
extern CFMutableStringRef CFAttributedStringGetMutableString(CFMutableAttributedStringRef aStr);
extern void CFAttributedStringSetAttributes(CFMutableAttributedStringRef aStr, CFRange range, CFDictionaryRef replacement, Boolean clearOtherAttributes);
extern void CFAttributedStringSetAttribute(CFMutableAttributedStringRef aStr, CFRange range, CFStringRef attrName, CFTypeRef value);
extern void CFAttributedStringRemoveAttribute(CFMutableAttributedStringRef aStr, CFRange range, CFStringRef attrName);
extern void CFAttributedStringReplaceAttributedString(CFMutableAttributedStringRef aStr, CFRange range, CFAttributedStringRef replacement);
extern void CFAttributedStringBeginEditing(CFMutableAttributedStringRef aStr);
extern void CFAttributedStringEndEditing(CFMutableAttributedStringRef aStr);
}
extern "C" {
typedef const struct __attribute__((objc_bridge_mutable(id))) __CFURLEnumerator *CFURLEnumeratorRef;
extern
CFTypeID CFURLEnumeratorGetTypeID( void ) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef CFOptionFlags CFURLEnumeratorOptions; enum {
kCFURLEnumeratorDefaultBehavior = 0,
kCFURLEnumeratorDescendRecursively = 1UL << 0,
kCFURLEnumeratorSkipInvisibles = 1UL << 1,
kCFURLEnumeratorGenerateFileReferenceURLs = 1UL << 2,
kCFURLEnumeratorSkipPackageContents = 1UL << 3,
kCFURLEnumeratorIncludeDirectoriesPreOrder = 1UL << 4,
kCFURLEnumeratorIncludeDirectoriesPostOrder = 1UL << 5,
kCFURLEnumeratorGenerateRelativePathURLs __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) = 1UL << 6,
};
extern
CFURLEnumeratorRef CFURLEnumeratorCreateForDirectoryURL( CFAllocatorRef alloc, CFURLRef directoryURL, CFURLEnumeratorOptions option, CFArrayRef propertyKeys ) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFURLEnumeratorRef CFURLEnumeratorCreateForMountedVolumes( CFAllocatorRef alloc, CFURLEnumeratorOptions option, CFArrayRef propertyKeys ) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef CFIndex CFURLEnumeratorResult; enum {
kCFURLEnumeratorSuccess = 1,
kCFURLEnumeratorEnd = 2,
kCFURLEnumeratorError = 3,
kCFURLEnumeratorDirectoryPostOrderSuccess = 4,
};
extern
CFURLEnumeratorResult CFURLEnumeratorGetNextURL( CFURLEnumeratorRef enumerator, CFURLRef *url, CFErrorRef *error ) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
void CFURLEnumeratorSkipDescendents( CFURLEnumeratorRef enumerator ) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFIndex CFURLEnumeratorGetDescendentLevel( CFURLEnumeratorRef enumerator ) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
Boolean CFURLEnumeratorGetSourceDidChange( CFURLEnumeratorRef enumerator ) __attribute__((availability(macos,introduced=10.6,deprecated=10.7,message="Use File System Events API instead"))) __attribute__((availability(ios,introduced=4.0,deprecated=5.0,message="Use File System Events API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use File System Events API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use File System Events API instead")));
}
typedef union {
unsigned char g_guid[16];
unsigned int g_guid_asint[16 / sizeof(unsigned int)];
} guid_t;
#pragma pack(1)
typedef struct {
u_int8_t sid_kind;
u_int8_t sid_authcount;
u_int8_t sid_authority[6];
u_int32_t sid_authorities[16];
} ntsid_t;
#pragma pack()
struct kauth_identity_extlookup {
u_int32_t el_seqno;
u_int32_t el_result;
u_int32_t el_flags;
__darwin_pid_t el_info_pid;
u_int64_t el_extend;
u_int32_t el_info_reserved_1;
uid_t el_uid;
guid_t el_uguid;
u_int32_t el_uguid_valid;
ntsid_t el_usid;
u_int32_t el_usid_valid;
gid_t el_gid;
guid_t el_gguid;
u_int32_t el_gguid_valid;
ntsid_t el_gsid;
u_int32_t el_gsid_valid;
u_int32_t el_member_valid;
u_int32_t el_sup_grp_cnt;
gid_t el_sup_groups[16];
};
struct kauth_cache_sizes {
u_int32_t kcs_group_size;
u_int32_t kcs_id_size;
};
typedef u_int32_t kauth_ace_rights_t;
struct kauth_ace {
guid_t ace_applicable;
u_int32_t ace_flags;
kauth_ace_rights_t ace_rights;
};
typedef struct kauth_ace *kauth_ace_t;
struct kauth_acl {
u_int32_t acl_entrycount;
u_int32_t acl_flags;
struct kauth_ace acl_ace[1];
};
typedef struct kauth_acl *kauth_acl_t;
struct kauth_filesec {
u_int32_t fsec_magic;
guid_t fsec_owner;
guid_t fsec_group;
struct kauth_acl fsec_acl;
};
typedef struct kauth_filesec *kauth_filesec_t;
typedef enum {
ACL_READ_DATA = (1<<1),
ACL_LIST_DIRECTORY = (1<<1),
ACL_WRITE_DATA = (1<<2),
ACL_ADD_FILE = (1<<2),
ACL_EXECUTE = (1<<3),
ACL_SEARCH = (1<<3),
ACL_DELETE = (1<<4),
ACL_APPEND_DATA = (1<<5),
ACL_ADD_SUBDIRECTORY = (1<<5),
ACL_DELETE_CHILD = (1<<6),
ACL_READ_ATTRIBUTES = (1<<7),
ACL_WRITE_ATTRIBUTES = (1<<8),
ACL_READ_EXTATTRIBUTES = (1<<9),
ACL_WRITE_EXTATTRIBUTES = (1<<10),
ACL_READ_SECURITY = (1<<11),
ACL_WRITE_SECURITY = (1<<12),
ACL_CHANGE_OWNER = (1<<13),
ACL_SYNCHRONIZE = (1<<20),
} acl_perm_t;
typedef enum {
ACL_UNDEFINED_TAG = 0,
ACL_EXTENDED_ALLOW = 1,
ACL_EXTENDED_DENY = 2
} acl_tag_t;
typedef enum {
ACL_TYPE_EXTENDED = 0x00000100,
ACL_TYPE_ACCESS = 0x00000000,
ACL_TYPE_DEFAULT = 0x00000001,
ACL_TYPE_AFS = 0x00000002,
ACL_TYPE_CODA = 0x00000003,
ACL_TYPE_NTFS = 0x00000004,
ACL_TYPE_NWFS = 0x00000005
} acl_type_t;
typedef enum {
ACL_FIRST_ENTRY = 0,
ACL_NEXT_ENTRY = -1,
ACL_LAST_ENTRY = -2
} acl_entry_id_t;
typedef enum {
ACL_FLAG_DEFER_INHERIT = (1 << 0),
ACL_FLAG_NO_INHERIT = (1<<17),
ACL_ENTRY_INHERITED = (1<<4),
ACL_ENTRY_FILE_INHERIT = (1<<5),
ACL_ENTRY_DIRECTORY_INHERIT = (1<<6),
ACL_ENTRY_LIMIT_INHERIT = (1<<7),
ACL_ENTRY_ONLY_INHERIT = (1<<8)
} acl_flag_t;
struct _acl;
struct _acl_entry;
struct _acl_permset;
struct _acl_flagset;
typedef struct _acl *acl_t;
typedef struct _acl_entry *acl_entry_t;
typedef struct _acl_permset *acl_permset_t;
typedef struct _acl_flagset *acl_flagset_t;
typedef u_int64_t acl_permset_mask_t;
extern "C" {
extern acl_t acl_dup(acl_t acl);
extern int acl_free(void *obj_p);
extern acl_t acl_init(int count);
extern int acl_copy_entry(acl_entry_t dest_d, acl_entry_t src_d);
extern int acl_create_entry(acl_t *acl_p, acl_entry_t *entry_p);
extern int acl_create_entry_np(acl_t *acl_p, acl_entry_t *entry_p, int entry_index);
extern int acl_delete_entry(acl_t acl, acl_entry_t entry_d);
extern int acl_get_entry(acl_t acl, int entry_id, acl_entry_t *entry_p);
extern int acl_valid(acl_t acl);
extern int acl_valid_fd_np(int fd, acl_type_t type, acl_t acl);
extern int acl_valid_file_np(const char *path, acl_type_t type, acl_t acl);
extern int acl_valid_link_np(const char *path, acl_type_t type, acl_t acl);
extern int acl_add_perm(acl_permset_t permset_d, acl_perm_t perm);
extern int acl_calc_mask(acl_t *acl_p);
extern int acl_clear_perms(acl_permset_t permset_d);
extern int acl_delete_perm(acl_permset_t permset_d, acl_perm_t perm);
extern int acl_get_perm_np(acl_permset_t permset_d, acl_perm_t perm);
extern int acl_get_permset(acl_entry_t entry_d, acl_permset_t *permset_p);
extern int acl_set_permset(acl_entry_t entry_d, acl_permset_t permset_d);
extern int acl_maximal_permset_mask_np(acl_permset_mask_t * mask_p) __attribute__((availability(ios,introduced=4.3)));
extern int acl_get_permset_mask_np(acl_entry_t entry_d, acl_permset_mask_t * mask_p) __attribute__((availability(ios,introduced=4.3)));
extern int acl_set_permset_mask_np(acl_entry_t entry_d, acl_permset_mask_t mask) __attribute__((availability(ios,introduced=4.3)));
extern int acl_add_flag_np(acl_flagset_t flagset_d, acl_flag_t flag);
extern int acl_clear_flags_np(acl_flagset_t flagset_d);
extern int acl_delete_flag_np(acl_flagset_t flagset_d, acl_flag_t flag);
extern int acl_get_flag_np(acl_flagset_t flagset_d, acl_flag_t flag);
extern int acl_get_flagset_np(void *obj_p, acl_flagset_t *flagset_p);
extern int acl_set_flagset_np(void *obj_p, acl_flagset_t flagset_d);
extern void *acl_get_qualifier(acl_entry_t entry_d);
extern int acl_get_tag_type(acl_entry_t entry_d, acl_tag_t *tag_type_p);
extern int acl_set_qualifier(acl_entry_t entry_d, const void *tag_qualifier_p);
extern int acl_set_tag_type(acl_entry_t entry_d, acl_tag_t tag_type);
extern int acl_delete_def_file(const char *path_p);
extern acl_t acl_get_fd(int fd);
extern acl_t acl_get_fd_np(int fd, acl_type_t type);
extern acl_t acl_get_file(const char *path_p, acl_type_t type);
extern acl_t acl_get_link_np(const char *path_p, acl_type_t type);
extern int acl_set_fd(int fd, acl_t acl);
extern int acl_set_fd_np(int fd, acl_t acl, acl_type_t acl_type);
extern int acl_set_file(const char *path_p, acl_type_t type, acl_t acl);
extern int acl_set_link_np(const char *path_p, acl_type_t type, acl_t acl);
extern ssize_t acl_copy_ext(void *buf_p, acl_t acl, ssize_t size);
extern ssize_t acl_copy_ext_native(void *buf_p, acl_t acl, ssize_t size);
extern acl_t acl_copy_int(const void *buf_p);
extern acl_t acl_copy_int_native(const void *buf_p);
extern acl_t acl_from_text(const char *buf_p);
extern ssize_t acl_size(acl_t acl);
extern char *acl_to_text(acl_t acl, ssize_t *len_p);
}
extern "C" {
typedef struct __attribute__((objc_bridge_mutable(NSFileSecurity))) __CFFileSecurity* CFFileSecurityRef;
extern
CFTypeID CFFileSecurityGetTypeID(void) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFFileSecurityRef CFFileSecurityCreate(CFAllocatorRef allocator) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFFileSecurityRef CFFileSecurityCreateCopy(CFAllocatorRef allocator, CFFileSecurityRef fileSec) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
Boolean CFFileSecurityCopyOwnerUUID(CFFileSecurityRef fileSec, CFUUIDRef *ownerUUID) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
Boolean CFFileSecuritySetOwnerUUID(CFFileSecurityRef fileSec, CFUUIDRef ownerUUID) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
Boolean CFFileSecurityCopyGroupUUID(CFFileSecurityRef fileSec, CFUUIDRef *groupUUID) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
Boolean CFFileSecuritySetGroupUUID(CFFileSecurityRef fileSec, CFUUIDRef groupUUID) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
Boolean CFFileSecurityCopyAccessControlList(CFFileSecurityRef fileSec, acl_t *accessControlList) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
Boolean CFFileSecuritySetAccessControlList(CFFileSecurityRef fileSec, acl_t accessControlList) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
Boolean CFFileSecurityGetOwner(CFFileSecurityRef fileSec, uid_t *owner) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
Boolean CFFileSecuritySetOwner(CFFileSecurityRef fileSec, uid_t owner) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
Boolean CFFileSecurityGetGroup(CFFileSecurityRef fileSec, gid_t *group) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
Boolean CFFileSecuritySetGroup(CFFileSecurityRef fileSec, gid_t group) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
Boolean CFFileSecurityGetMode(CFFileSecurityRef fileSec, mode_t *mode) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
Boolean CFFileSecuritySetMode(CFFileSecurityRef fileSec, mode_t mode) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef CFOptionFlags CFFileSecurityClearOptions; enum {
kCFFileSecurityClearOwner = 1UL << 0,
kCFFileSecurityClearGroup = 1UL << 1,
kCFFileSecurityClearMode = 1UL << 2,
kCFFileSecurityClearOwnerUUID = 1UL << 3,
kCFFileSecurityClearGroupUUID = 1UL << 4,
kCFFileSecurityClearAccessControlList = 1UL << 5
} __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
Boolean CFFileSecurityClearProperties(CFFileSecurityRef fileSec, CFFileSecurityClearOptions clearPropertyMask) __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
}
extern "C" {
extern
CFStringRef CFStringTokenizerCopyBestStringLanguage(CFStringRef string, CFRange range) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef struct __attribute__((objc_bridge_mutable(id))) __CFStringTokenizer * CFStringTokenizerRef;
enum {
kCFStringTokenizerUnitWord = 0,
kCFStringTokenizerUnitSentence = 1,
kCFStringTokenizerUnitParagraph = 2,
kCFStringTokenizerUnitLineBreak = 3,
kCFStringTokenizerUnitWordBoundary = 4,
kCFStringTokenizerAttributeLatinTranscription = 1UL << 16,
kCFStringTokenizerAttributeLanguage = 1UL << 17,
};
typedef CFOptionFlags CFStringTokenizerTokenType; enum {
kCFStringTokenizerTokenNone = 0,
kCFStringTokenizerTokenNormal = 1UL << 0,
kCFStringTokenizerTokenHasSubTokensMask = 1UL << 1,
kCFStringTokenizerTokenHasDerivedSubTokensMask = 1UL << 2,
kCFStringTokenizerTokenHasHasNumbersMask = 1UL << 3,
kCFStringTokenizerTokenHasNonLettersMask = 1UL << 4,
kCFStringTokenizerTokenIsCJWordMask = 1UL << 5
};
extern
CFTypeID CFStringTokenizerGetTypeID(void) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFStringTokenizerRef CFStringTokenizerCreate(CFAllocatorRef alloc, CFStringRef string, CFRange range, CFOptionFlags options, CFLocaleRef locale) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
void CFStringTokenizerSetString(CFStringTokenizerRef tokenizer, CFStringRef string, CFRange range) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFStringTokenizerTokenType CFStringTokenizerGoToTokenAtIndex(CFStringTokenizerRef tokenizer, CFIndex index) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFStringTokenizerTokenType CFStringTokenizerAdvanceToNextToken(CFStringTokenizerRef tokenizer) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFRange CFStringTokenizerGetCurrentTokenRange(CFStringTokenizerRef tokenizer) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFTypeRef CFStringTokenizerCopyCurrentTokenAttribute(CFStringTokenizerRef tokenizer, CFOptionFlags attribute) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern
CFIndex CFStringTokenizerGetCurrentSubTokens(CFStringTokenizerRef tokenizer, CFRange *ranges, CFIndex maxRangeLength, CFMutableArrayRef derivedSubTokens) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
}
extern "C" {
typedef int CFFileDescriptorNativeDescriptor;
typedef struct __attribute__((objc_bridge_mutable(id))) __CFFileDescriptor * CFFileDescriptorRef;
enum {
kCFFileDescriptorReadCallBack = 1UL << 0,
kCFFileDescriptorWriteCallBack = 1UL << 1
};
typedef void (*CFFileDescriptorCallBack)(CFFileDescriptorRef f, CFOptionFlags callBackTypes, void *info);
typedef struct {
CFIndex version;
void * info;
void * (*retain)(void *info);
void (*release)(void *info);
CFStringRef (*copyDescription)(void *info);
} CFFileDescriptorContext;
extern CFTypeID CFFileDescriptorGetTypeID(void) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern CFFileDescriptorRef CFFileDescriptorCreate(CFAllocatorRef allocator, CFFileDescriptorNativeDescriptor fd, Boolean closeOnInvalidate, CFFileDescriptorCallBack callout, const CFFileDescriptorContext *context) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern CFFileDescriptorNativeDescriptor CFFileDescriptorGetNativeDescriptor(CFFileDescriptorRef f) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern void CFFileDescriptorGetContext(CFFileDescriptorRef f, CFFileDescriptorContext *context) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern void CFFileDescriptorEnableCallBacks(CFFileDescriptorRef f, CFOptionFlags callBackTypes) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern void CFFileDescriptorDisableCallBacks(CFFileDescriptorRef f, CFOptionFlags callBackTypes) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern void CFFileDescriptorInvalidate(CFFileDescriptorRef f) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern Boolean CFFileDescriptorIsValid(CFFileDescriptorRef f) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern CFRunLoopSourceRef CFFileDescriptorCreateRunLoopSource(CFAllocatorRef allocator, CFFileDescriptorRef f, CFIndex order) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
}
extern "C" {
typedef struct __attribute__((objc_bridge_mutable(id))) __CFUserNotification * CFUserNotificationRef;
typedef void (*CFUserNotificationCallBack)(CFUserNotificationRef userNotification, CFOptionFlags responseFlags);
extern
CFTypeID CFUserNotificationGetTypeID(void) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
CFUserNotificationRef CFUserNotificationCreate(CFAllocatorRef allocator, CFTimeInterval timeout, CFOptionFlags flags, SInt32 *error, CFDictionaryRef dictionary) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
SInt32 CFUserNotificationReceiveResponse(CFUserNotificationRef userNotification, CFTimeInterval timeout, CFOptionFlags *responseFlags) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
CFStringRef CFUserNotificationGetResponseValue(CFUserNotificationRef userNotification, CFStringRef key, CFIndex idx) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
CFDictionaryRef CFUserNotificationGetResponseDictionary(CFUserNotificationRef userNotification) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
SInt32 CFUserNotificationUpdate(CFUserNotificationRef userNotification, CFTimeInterval timeout, CFOptionFlags flags, CFDictionaryRef dictionary) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
SInt32 CFUserNotificationCancel(CFUserNotificationRef userNotification) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
CFRunLoopSourceRef CFUserNotificationCreateRunLoopSource(CFAllocatorRef allocator, CFUserNotificationRef userNotification, CFUserNotificationCallBack callout, CFIndex order) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
SInt32 CFUserNotificationDisplayNotice(CFTimeInterval timeout, CFOptionFlags flags, CFURLRef iconURL, CFURLRef soundURL, CFURLRef localizationURL, CFStringRef alertHeader, CFStringRef alertMessage, CFStringRef defaultButtonTitle) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
SInt32 CFUserNotificationDisplayAlert(CFTimeInterval timeout, CFOptionFlags flags, CFURLRef iconURL, CFURLRef soundURL, CFURLRef localizationURL, CFStringRef alertHeader, CFStringRef alertMessage, CFStringRef defaultButtonTitle, CFStringRef alternateButtonTitle, CFStringRef otherButtonTitle, CFOptionFlags *responseFlags) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
enum {
kCFUserNotificationStopAlertLevel __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 0,
kCFUserNotificationNoteAlertLevel __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 1,
kCFUserNotificationCautionAlertLevel __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 2,
kCFUserNotificationPlainAlertLevel __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 3
};
enum {
kCFUserNotificationDefaultResponse __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 0,
kCFUserNotificationAlternateResponse __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 1,
kCFUserNotificationOtherResponse __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 2,
kCFUserNotificationCancelResponse __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 3
};
enum {
kCFUserNotificationNoDefaultButtonFlag __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = (1UL << 5),
kCFUserNotificationUseRadioButtonsFlag __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = (1UL << 6)
};
static __inline__ __attribute__((always_inline)) CFOptionFlags CFUserNotificationCheckBoxChecked(CFIndex i) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) {return ((CFOptionFlags)(1UL << (8 + i)));}
static __inline__ __attribute__((always_inline)) CFOptionFlags CFUserNotificationSecureTextField(CFIndex i) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) {return ((CFOptionFlags)(1UL << (16 + i)));}
static __inline__ __attribute__((always_inline)) CFOptionFlags CFUserNotificationPopUpSelection(CFIndex n) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) {return ((CFOptionFlags)(n << 24));}
extern
const CFStringRef kCFUserNotificationIconURLKey __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
const CFStringRef kCFUserNotificationSoundURLKey __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
const CFStringRef kCFUserNotificationLocalizationURLKey __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
const CFStringRef kCFUserNotificationAlertHeaderKey __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
const CFStringRef kCFUserNotificationAlertMessageKey __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
const CFStringRef kCFUserNotificationDefaultButtonTitleKey __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
const CFStringRef kCFUserNotificationAlternateButtonTitleKey __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
const CFStringRef kCFUserNotificationOtherButtonTitleKey __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
const CFStringRef kCFUserNotificationProgressIndicatorValueKey __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
const CFStringRef kCFUserNotificationPopUpTitlesKey __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
const CFStringRef kCFUserNotificationTextFieldTitlesKey __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
const CFStringRef kCFUserNotificationCheckBoxTitlesKey __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
const CFStringRef kCFUserNotificationTextFieldValuesKey __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
const CFStringRef kCFUserNotificationPopUpSelectionKey __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
const CFStringRef kCFUserNotificationAlertTopMostKey __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern
const CFStringRef kCFUserNotificationKeyboardTypesKey __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
}
#pragma clang assume_nonnull begin
extern "C" double NSFoundationVersionNumber;
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#ifndef _REWRITER_typedef_Protocol
#define _REWRITER_typedef_Protocol
typedef struct objc_object Protocol;
typedef struct {} _objc_exc_Protocol;
#endif
typedef NSString * NSExceptionName __attribute__((swift_wrapper(struct)));
typedef NSString * NSRunLoopMode __attribute__((swift_wrapper(struct)));
extern "C" NSString *NSStringFromSelector(SEL aSelector);
extern "C" SEL NSSelectorFromString(NSString *aSelectorName);
extern "C" NSString *NSStringFromClass(Class aClass);
extern "C" Class _Nullable NSClassFromString(NSString *aClassName);
extern "C" NSString *NSStringFromProtocol(Protocol *proto) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" Protocol * _Nullable NSProtocolFromString(NSString *namestr) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" const char *NSGetSizeAndAlignment(const char *typePtr, NSUInteger * _Nullable sizep, NSUInteger * _Nullable alignp);
extern "C" void NSLog(NSString *format, ...) __attribute__((format(__NSString__, 1, 2))) __attribute__((not_tail_called));
extern "C" void NSLogv(NSString *format, va_list args) __attribute__((format(__NSString__, 1, 0))) __attribute__((not_tail_called));
typedef NSInteger NSComparisonResult; enum {
NSOrderedAscending = -1L,
NSOrderedSame,
NSOrderedDescending
};
typedef NSComparisonResult (*NSComparator)(id obj1, id obj2);
typedef NSUInteger NSEnumerationOptions; enum {
NSEnumerationConcurrent = (1UL << 0),
NSEnumerationReverse = (1UL << 1),
};
typedef NSUInteger NSSortOptions; enum {
NSSortConcurrent = (1UL << 0),
NSSortStable = (1UL << 4),
};
typedef NSInteger NSQualityOfService; enum {
NSQualityOfServiceUserInteractive = 0x21,
NSQualityOfServiceUserInitiated = 0x19,
NSQualityOfServiceUtility = 0x11,
NSQualityOfServiceBackground = 0x09,
NSQualityOfServiceDefault = -1
} __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
static const NSInteger NSNotFound = 9223372036854775807L;
#pragma clang assume_nonnull end
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#pragma clang assume_nonnull begin
typedef struct _NSZone NSZone;
extern "C" NSZone *NSDefaultMallocZone(void) __attribute__((availability(swift, unavailable, message="Zone-based memory management is unavailable")));
extern "C" NSZone *NSCreateZone(NSUInteger startSize, NSUInteger granularity, BOOL canFree) __attribute__((availability(swift, unavailable, message="Zone-based memory management is unavailable")));
extern "C" void NSRecycleZone(NSZone *zone)__attribute__((availability(swift, unavailable, message="Zone-based memory management is unavailable")));
extern "C" void NSSetZoneName(NSZone * _Nullable zone, NSString *name)__attribute__((availability(swift, unavailable, message="Zone-based memory management is unavailable")));
extern "C" NSString *NSZoneName(NSZone * _Nullable zone) __attribute__((availability(swift, unavailable, message="Zone-based memory management is unavailable")));
extern "C" NSZone * _Nullable NSZoneFromPointer(void *ptr) __attribute__((availability(swift, unavailable, message="Zone-based memory management is unavailable")));
extern "C" void *NSZoneMalloc(NSZone * _Nullable zone, NSUInteger size) __attribute__((availability(swift, unavailable, message="Zone-based memory management is unavailable")));
extern "C" void *NSZoneCalloc(NSZone * _Nullable zone, NSUInteger numElems, NSUInteger byteSize) __attribute__((availability(swift, unavailable, message="Zone-based memory management is unavailable")));
extern "C" void *NSZoneRealloc(NSZone * _Nullable zone, void * _Nullable ptr, NSUInteger size) __attribute__((availability(swift, unavailable, message="Zone-based memory management is unavailable")));
extern "C" void NSZoneFree(NSZone * _Nullable zone, void *ptr) __attribute__((availability(swift, unavailable, message="Zone-based memory management is unavailable")));
static __inline__ __attribute__((always_inline)) __attribute__((ns_returns_retained)) id _Nullable NSMakeCollectable(CFTypeRef _Nullable __attribute__((cf_consumed)) cf) __attribute__((availability(swift, unavailable, message="Garbage Collection is not supported")));
static __inline__ __attribute__((always_inline)) __attribute__((ns_returns_retained)) id _Nullable NSMakeCollectable(CFTypeRef _Nullable __attribute__((cf_consumed)) cf) {
return (id)cf;
}
extern "C" NSUInteger NSPageSize(void);
extern "C" NSUInteger NSLogPageSize(void);
extern "C" NSUInteger NSRoundUpToMultipleOfPageSize(NSUInteger bytes);
extern "C" NSUInteger NSRoundDownToMultipleOfPageSize(NSUInteger bytes);
extern "C" void *NSAllocateMemoryPages(NSUInteger bytes);
extern "C" void NSDeallocateMemoryPages(void *ptr, NSUInteger bytes);
extern "C" void NSCopyMemoryPages(const void *source, void *dest, NSUInteger bytes);
extern "C" NSUInteger NSRealMemoryAvailable(void) __attribute__((availability(macos,introduced=10.0,deprecated=10.8,message="Use NSProcessInfo instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=6.0,message="Use NSProcessInfo instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use NSProcessInfo instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use NSProcessInfo instead")));
#pragma clang assume_nonnull end
// @class NSInvocation;
#ifndef _REWRITER_typedef_NSInvocation
#define _REWRITER_typedef_NSInvocation
typedef struct objc_object NSInvocation;
typedef struct {} _objc_exc_NSInvocation;
#endif
#ifndef _REWRITER_typedef_NSMethodSignature
#define _REWRITER_typedef_NSMethodSignature
typedef struct objc_object NSMethodSignature;
typedef struct {} _objc_exc_NSMethodSignature;
#endif
#ifndef _REWRITER_typedef_NSCoder
#define _REWRITER_typedef_NSCoder
typedef struct objc_object NSCoder;
typedef struct {} _objc_exc_NSCoder;
#endif
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#ifndef _REWRITER_typedef_NSEnumerator
#define _REWRITER_typedef_NSEnumerator
typedef struct objc_object NSEnumerator;
typedef struct {} _objc_exc_NSEnumerator;
#endif
// @class Protocol;
#ifndef _REWRITER_typedef_Protocol
#define _REWRITER_typedef_Protocol
typedef struct objc_object Protocol;
typedef struct {} _objc_exc_Protocol;
#endif
#pragma clang assume_nonnull begin
// @protocol NSCopying
// - (id)copyWithZone:(nullable NSZone *)zone;
/* @end */
// @protocol NSMutableCopying
// - (id)mutableCopyWithZone:(nullable NSZone *)zone;
/* @end */
// @protocol NSCoding
// - (void)encodeWithCoder:(NSCoder *)coder;
// - (nullable instancetype)initWithCoder:(NSCoder *)coder;
/* @end */
// @protocol NSSecureCoding <NSCoding>
/* @required */
@property (class, readonly) BOOL supportsSecureCoding;
/* @end */
// @interface NSObject (NSCoderMethods)
// + (NSInteger)version;
// + (void)setVersion:(NSInteger)aVersion;
// @property (readonly) Class classForCoder;
// - (nullable id)replacementObjectForCoder:(NSCoder *)coder;
// - (nullable id)awakeAfterUsingCoder:(NSCoder *)coder __attribute__((ns_consumes_self)) __attribute__((ns_returns_retained));
/* @end */
// @protocol NSDiscardableContent
/* @required */
// - (BOOL)beginContentAccess;
// - (void)endContentAccess;
// - (void)discardContentIfPossible;
// - (BOOL)isContentDiscarded;
/* @end */
// @interface NSObject (NSDiscardableContentProxy)
// @property (readonly, retain) id autoContentAccessingProxy __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
extern "C" id NSAllocateObject(Class aClass, NSUInteger extraBytes, NSZone * _Nullable zone) ;
extern "C" void NSDeallocateObject(id object) ;
extern "C" id NSCopyObject(id object, NSUInteger extraBytes, NSZone * _Nullable zone) __attribute__((availability(macos,introduced=10.0,deprecated=10.8,message="Not supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=6.0,message="Not supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Not supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Not supported")));
extern "C" BOOL NSShouldRetainWithZone(id anObject, NSZone * _Nullable requestedZone) ;
extern "C" void NSIncrementExtraRefCount(id object) ;
extern "C" BOOL NSDecrementExtraRefCountWasZero(id object) ;
extern "C" NSUInteger NSExtraRefCount(id object) ;
static __inline__ __attribute__((always_inline)) __attribute__((cf_returns_retained)) CFTypeRef _Nullable CFBridgingRetain(id _Nullable X) {
return X ? CFRetain((CFTypeRef)X) : __null;
}
static __inline__ __attribute__((always_inline)) id _Nullable CFBridgingRelease(CFTypeRef __attribute__((cf_consumed)) _Nullable X) __attribute__((ns_returns_retained)) {
return ((id (*)(id, SEL))(void *)objc_msgSend)((id)CFMakeCollectable(X), sel_registerName("autorelease"));
}
#pragma clang assume_nonnull end
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#pragma clang assume_nonnull begin
typedef struct {
unsigned long state;
id __attribute__((objc_ownership(none))) _Nullable * _Nullable itemsPtr;
unsigned long * _Nullable mutationsPtr;
unsigned long extra[5];
} NSFastEnumerationState;
// @protocol NSFastEnumeration
// - (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id __attribute__((objc_ownership(none))) _Nullable [_Nonnull])buffer count:(NSUInteger)len;
/* @end */
#ifndef _REWRITER_typedef_NSEnumerator
#define _REWRITER_typedef_NSEnumerator
typedef struct objc_object NSEnumerator;
typedef struct {} _objc_exc_NSEnumerator;
#endif
struct NSEnumerator_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// - (nullable ObjectType)nextObject;
/* @end */
// @interface NSEnumerator<ObjectType> (NSExtendedEnumerator)
// @property (readonly, copy) NSArray<ObjectType> *allObjects;
/* @end */
#pragma clang assume_nonnull end
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
#pragma clang assume_nonnull begin
#ifndef _REWRITER_typedef_NSValue
#define _REWRITER_typedef_NSValue
typedef struct objc_object NSValue;
typedef struct {} _objc_exc_NSValue;
#endif
struct NSValue_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// - (void)getValue:(void *)value size:(NSUInteger)size __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// @property (readonly) const char *objCType __attribute__((objc_returns_inner_pointer));
// - (instancetype)initWithBytes:(const void *)value objCType:(const char *)type __attribute__((objc_designated_initializer));
// - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer));
/* @end */
// @interface NSValue (NSValueCreation)
// + (NSValue *)valueWithBytes:(const void *)value objCType:(const char *)type;
// + (NSValue *)value:(const void *)value withObjCType:(const char *)type;
/* @end */
// @interface NSValue (NSValueExtensionMethods)
// + (NSValue *)valueWithNonretainedObject:(nullable id)anObject;
// @property (nullable, readonly) id nonretainedObjectValue;
// + (NSValue *)valueWithPointer:(nullable const void *)pointer;
// @property (nullable, readonly) void *pointerValue;
// - (BOOL)isEqualToValue:(NSValue *)value;
/* @end */
#ifndef _REWRITER_typedef_NSNumber
#define _REWRITER_typedef_NSNumber
typedef struct objc_object NSNumber;
typedef struct {} _objc_exc_NSNumber;
#endif
struct NSNumber_IMPL {
struct NSValue_IMPL NSValue_IVARS;
};
// - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer));
// - (NSNumber *)initWithChar:(char)value __attribute__((objc_designated_initializer));
// - (NSNumber *)initWithUnsignedChar:(unsigned char)value __attribute__((objc_designated_initializer));
// - (NSNumber *)initWithShort:(short)value __attribute__((objc_designated_initializer));
// - (NSNumber *)initWithUnsignedShort:(unsigned short)value __attribute__((objc_designated_initializer));
// - (NSNumber *)initWithInt:(int)value __attribute__((objc_designated_initializer));
// - (NSNumber *)initWithUnsignedInt:(unsigned int)value __attribute__((objc_designated_initializer));
// - (NSNumber *)initWithLong:(long)value __attribute__((objc_designated_initializer));
// - (NSNumber *)initWithUnsignedLong:(unsigned long)value __attribute__((objc_designated_initializer));
// - (NSNumber *)initWithLongLong:(long long)value __attribute__((objc_designated_initializer));
// - (NSNumber *)initWithUnsignedLongLong:(unsigned long long)value __attribute__((objc_designated_initializer));
// - (NSNumber *)initWithFloat:(float)value __attribute__((objc_designated_initializer));
// - (NSNumber *)initWithDouble:(double)value __attribute__((objc_designated_initializer));
// - (NSNumber *)initWithBool:(BOOL)value __attribute__((objc_designated_initializer));
// - (NSNumber *)initWithInteger:(NSInteger)value __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((objc_designated_initializer));
// - (NSNumber *)initWithUnsignedInteger:(NSUInteger)value __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((objc_designated_initializer));
// @property (readonly) char charValue;
// @property (readonly) unsigned char unsignedCharValue;
// @property (readonly) short shortValue;
// @property (readonly) unsigned short unsignedShortValue;
// @property (readonly) int intValue;
// @property (readonly) unsigned int unsignedIntValue;
// @property (readonly) long longValue;
// @property (readonly) unsigned long unsignedLongValue;
// @property (readonly) long long longLongValue;
// @property (readonly) unsigned long long unsignedLongLongValue;
// @property (readonly) float floatValue;
// @property (readonly) double doubleValue;
// @property (readonly) BOOL boolValue;
// @property (readonly) NSInteger integerValue __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly) NSUInteger unsignedIntegerValue __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSString *stringValue;
// - (NSComparisonResult)compare:(NSNumber *)otherNumber;
// - (BOOL)isEqualToNumber:(NSNumber *)number;
// - (NSString *)descriptionWithLocale:(nullable id)locale;
/* @end */
// @interface NSNumber (NSNumberCreation)
// + (NSNumber *)numberWithChar:(char)value;
// + (NSNumber *)numberWithUnsignedChar:(unsigned char)value;
// + (NSNumber *)numberWithShort:(short)value;
// + (NSNumber *)numberWithUnsignedShort:(unsigned short)value;
// + (NSNumber *)numberWithInt:(int)value;
// + (NSNumber *)numberWithUnsignedInt:(unsigned int)value;
// + (NSNumber *)numberWithLong:(long)value;
// + (NSNumber *)numberWithUnsignedLong:(unsigned long)value;
// + (NSNumber *)numberWithLongLong:(long long)value;
// + (NSNumber *)numberWithUnsignedLongLong:(unsigned long long)value;
// + (NSNumber *)numberWithFloat:(float)value;
// + (NSNumber *)numberWithDouble:(double)value;
// + (NSNumber *)numberWithBool:(BOOL)value;
// + (NSNumber *)numberWithInteger:(NSInteger)value __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSNumber *)numberWithUnsignedInteger:(NSUInteger)value __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSValue (NSDeprecated)
// - (void)getValue:(void *)value __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="getValue:size:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="getValue:size:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="getValue:size:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="getValue:size:")));
/* @end */
#pragma clang assume_nonnull end
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#pragma clang assume_nonnull begin
typedef struct _NSRange {
NSUInteger location;
NSUInteger length;
} NSRange;
typedef NSRange *NSRangePointer;
static __inline__ __attribute__((always_inline)) NSRange NSMakeRange(NSUInteger loc, NSUInteger len) {
NSRange r;
r.location = loc;
r.length = len;
return r;
}
static __inline__ __attribute__((always_inline)) NSUInteger NSMaxRange(NSRange range) {
return (range.location + range.length);
}
static __inline__ __attribute__((always_inline)) BOOL NSLocationInRange(NSUInteger loc, NSRange range) {
return (!(loc < range.location) && (loc - range.location) < range.length) ? ((bool)1) : ((bool)0);
}
static __inline__ __attribute__((always_inline)) BOOL NSEqualRanges(NSRange range1, NSRange range2) {
return (range1.location == range2.location && range1.length == range2.length);
}
extern "C" NSRange NSUnionRange(NSRange range1, NSRange range2);
extern "C" NSRange NSIntersectionRange(NSRange range1, NSRange range2);
extern "C" NSString *NSStringFromRange(NSRange range);
extern "C" NSRange NSRangeFromString(NSString *aString);
// @interface NSValue (NSValueRangeExtensions)
// + (NSValue *)valueWithRange:(NSRange)range;
// @property (readonly) NSRange rangeValue;
/* @end */
#pragma clang assume_nonnull end
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#pragma clang assume_nonnull begin
typedef NSInteger NSCollectionChangeType; enum {
NSCollectionChangeInsert,
NSCollectionChangeRemove
} __attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
__attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)))
#ifndef _REWRITER_typedef_NSOrderedCollectionChange
#define _REWRITER_typedef_NSOrderedCollectionChange
typedef struct objc_object NSOrderedCollectionChange;
typedef struct {} _objc_exc_NSOrderedCollectionChange;
#endif
struct NSOrderedCollectionChange_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
#if 0
+ (NSOrderedCollectionChange<ObjectType> *)changeWithObject:(nullable ObjectType)anObject
type:(NSCollectionChangeType)type
index:(NSUInteger)index;
#endif
#if 0
+ (NSOrderedCollectionChange<ObjectType> *)changeWithObject:(nullable ObjectType)anObject
type:(NSCollectionChangeType)type
index:(NSUInteger)index
associatedIndex:(NSUInteger)associatedIndex;
#endif
// @property (readonly, strong, nullable) ObjectType object;
// @property (readonly) NSCollectionChangeType changeType;
// @property (readonly) NSUInteger index;
// @property (readonly) NSUInteger associatedIndex;
// - (id)init __attribute__((availability(macos,unavailable))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
#if 0
- (instancetype)initWithObject:(nullable ObjectType)anObject
type:(NSCollectionChangeType)type
index:(NSUInteger)index;
#endif
#if 0
- (instancetype)initWithObject:(nullable ObjectType)anObject
type:(NSCollectionChangeType)type
index:(NSUInteger)index
associatedIndex:(NSUInteger)associatedIndex __attribute__((objc_designated_initializer));
#endif
/* @end */
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
#ifndef _REWRITER_typedef_NSIndexSet
#define _REWRITER_typedef_NSIndexSet
typedef struct objc_object NSIndexSet;
typedef struct {} _objc_exc_NSIndexSet;
#endif
struct NSIndexSet_IMPL {
struct NSObject_IMPL NSObject_IVARS;
struct {
NSUInteger _isEmpty : 1;
NSUInteger _hasSingleRange : 1;
NSUInteger _cacheValid : 1;
NSUInteger _reservedArrayBinderController : 29;
} _indexSetFlags;
union {
struct {
NSRange _range;
} _singleRange;
struct {
void * _Nonnull _data;
void * _Nonnull _reserved;
} _multipleRanges;
} _internal;
};
// + (instancetype)indexSet;
// + (instancetype)indexSetWithIndex:(NSUInteger)value;
// + (instancetype)indexSetWithIndexesInRange:(NSRange)range;
// - (instancetype)initWithIndexesInRange:(NSRange)range __attribute__((objc_designated_initializer));
// - (instancetype)initWithIndexSet:(NSIndexSet *)indexSet __attribute__((objc_designated_initializer));
// - (instancetype)initWithIndex:(NSUInteger)value;
// - (BOOL)isEqualToIndexSet:(NSIndexSet *)indexSet;
// @property (readonly) NSUInteger count;
// @property (readonly) NSUInteger firstIndex;
// @property (readonly) NSUInteger lastIndex;
// - (NSUInteger)indexGreaterThanIndex:(NSUInteger)value;
// - (NSUInteger)indexLessThanIndex:(NSUInteger)value;
// - (NSUInteger)indexGreaterThanOrEqualToIndex:(NSUInteger)value;
// - (NSUInteger)indexLessThanOrEqualToIndex:(NSUInteger)value;
// - (NSUInteger)getIndexes:(NSUInteger *)indexBuffer maxCount:(NSUInteger)bufferSize inIndexRange:(nullable NSRangePointer)range;
// - (NSUInteger)countOfIndexesInRange:(NSRange)range __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)containsIndex:(NSUInteger)value;
// - (BOOL)containsIndexesInRange:(NSRange)range;
// - (BOOL)containsIndexes:(NSIndexSet *)indexSet;
// - (BOOL)intersectsIndexesInRange:(NSRange)range;
// - (void)enumerateIndexesUsingBlock:(void (__attribute__((noescape)) ^)(NSUInteger idx, BOOL *stop))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)enumerateIndexesWithOptions:(NSEnumerationOptions)opts usingBlock:(void (__attribute__((noescape)) ^)(NSUInteger idx, BOOL *stop))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)enumerateIndexesInRange:(NSRange)range options:(NSEnumerationOptions)opts usingBlock:(void (__attribute__((noescape)) ^)(NSUInteger idx, BOOL *stop))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSUInteger)indexPassingTest:(BOOL (__attribute__((noescape)) ^)(NSUInteger idx, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSUInteger)indexWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (__attribute__((noescape)) ^)(NSUInteger idx, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSUInteger)indexInRange:(NSRange)range options:(NSEnumerationOptions)opts passingTest:(BOOL (__attribute__((noescape)) ^)(NSUInteger idx, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSIndexSet *)indexesPassingTest:(BOOL (__attribute__((noescape)) ^)(NSUInteger idx, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSIndexSet *)indexesWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (__attribute__((noescape)) ^)(NSUInteger idx, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSIndexSet *)indexesInRange:(NSRange)range options:(NSEnumerationOptions)opts passingTest:(BOOL (__attribute__((noescape)) ^)(NSUInteger idx, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)enumerateRangesUsingBlock:(void (__attribute__((noescape)) ^)(NSRange range, BOOL *stop))block __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)enumerateRangesWithOptions:(NSEnumerationOptions)opts usingBlock:(void (__attribute__((noescape)) ^)(NSRange range, BOOL *stop))block __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)enumerateRangesInRange:(NSRange)range options:(NSEnumerationOptions)opts usingBlock:(void (__attribute__((noescape)) ^)(NSRange range, BOOL *stop))block __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
#ifndef _REWRITER_typedef_NSMutableIndexSet
#define _REWRITER_typedef_NSMutableIndexSet
typedef struct objc_object NSMutableIndexSet;
typedef struct {} _objc_exc_NSMutableIndexSet;
#endif
struct NSMutableIndexSet_IMPL {
struct NSIndexSet_IMPL NSIndexSet_IVARS;
void *_reserved;
};
// - (void)addIndexes:(NSIndexSet *)indexSet;
// - (void)removeIndexes:(NSIndexSet *)indexSet;
// - (void)removeAllIndexes;
// - (void)addIndex:(NSUInteger)value;
// - (void)removeIndex:(NSUInteger)value;
// - (void)addIndexesInRange:(NSRange)range;
// - (void)removeIndexesInRange:(NSRange)range;
// - (void)shiftIndexesStartingAtIndex:(NSUInteger)index by:(NSInteger)delta;
/* @end */
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
typedef NSUInteger NSOrderedCollectionDifferenceCalculationOptions; enum {
NSOrderedCollectionDifferenceCalculationOmitInsertedObjects = (1 << 0UL),
NSOrderedCollectionDifferenceCalculationOmitRemovedObjects = (1 << 1UL),
NSOrderedCollectionDifferenceCalculationInferMoves = (1 << 2UL)
} __attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
__attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)))
#ifndef _REWRITER_typedef_NSOrderedCollectionDifference
#define _REWRITER_typedef_NSOrderedCollectionDifference
typedef struct objc_object NSOrderedCollectionDifference;
typedef struct {} _objc_exc_NSOrderedCollectionDifference;
#endif
struct NSOrderedCollectionDifference_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// - (instancetype)initWithChanges:(NSArray<NSOrderedCollectionChange<ObjectType> *> *)changes;
#if 0
- (instancetype)initWithInsertIndexes:(NSIndexSet *)inserts
insertedObjects:(nullable NSArray<ObjectType> *)insertedObjects
removeIndexes:(NSIndexSet *)removes
removedObjects:(nullable NSArray<ObjectType> *)removedObjects
additionalChanges:(NSArray<NSOrderedCollectionChange<ObjectType> *> *)changes __attribute__((objc_designated_initializer));
#endif
#if 0
- (instancetype)initWithInsertIndexes:(NSIndexSet *)inserts
insertedObjects:(nullable NSArray<ObjectType> *)insertedObjects
removeIndexes:(NSIndexSet *)removes
removedObjects:(nullable NSArray<ObjectType> *)removedObjects;
#endif
// @property (strong, readonly) NSArray<NSOrderedCollectionChange<ObjectType> *> *insertions __attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// @property (strong, readonly) NSArray<NSOrderedCollectionChange<ObjectType> *> *removals __attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// @property (assign, readonly) BOOL hasChanges;
// - (NSOrderedCollectionDifference<id> *)differenceByTransformingChangesWithBlock:(NSOrderedCollectionChange<id> *(__attribute__((noescape)) ^)(NSOrderedCollectionChange<ObjectType> *))block;
// - (instancetype)inverseDifference __attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
/* @end */
#pragma clang assume_nonnull end
// @class NSData;
#ifndef _REWRITER_typedef_NSData
#define _REWRITER_typedef_NSData
typedef struct objc_object NSData;
typedef struct {} _objc_exc_NSData;
#endif
#ifndef _REWRITER_typedef_NSIndexSet
#define _REWRITER_typedef_NSIndexSet
typedef struct objc_object NSIndexSet;
typedef struct {} _objc_exc_NSIndexSet;
#endif
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#ifndef _REWRITER_typedef_NSURL
#define _REWRITER_typedef_NSURL
typedef struct objc_object NSURL;
typedef struct {} _objc_exc_NSURL;
#endif
#pragma clang assume_nonnull begin
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
struct NSArray_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// @property (readonly) NSUInteger count;
// - (ObjectType)objectAtIndex:(NSUInteger)index;
// - (instancetype)init __attribute__((objc_designated_initializer));
// - (instancetype)initWithObjects:(const ObjectType _Nonnull [_Nullable])objects count:(NSUInteger)cnt __attribute__((objc_designated_initializer));
// - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer));
/* @end */
// @interface NSArray<ObjectType> (NSExtendedArray)
// - (NSArray<ObjectType> *)arrayByAddingObject:(ObjectType)anObject;
// - (NSArray<ObjectType> *)arrayByAddingObjectsFromArray:(NSArray<ObjectType> *)otherArray;
// - (NSString *)componentsJoinedByString:(NSString *)separator;
// - (BOOL)containsObject:(ObjectType)anObject;
// @property (readonly, copy) NSString *description;
// - (NSString *)descriptionWithLocale:(nullable id)locale;
// - (NSString *)descriptionWithLocale:(nullable id)locale indent:(NSUInteger)level;
// - (nullable ObjectType)firstObjectCommonWithArray:(NSArray<ObjectType> *)otherArray;
// - (void)getObjects:(ObjectType _Nonnull __attribute__((objc_ownership(none))) [_Nonnull])objects range:(NSRange)range __attribute__((availability(swift, unavailable, message="Use 'subarrayWithRange()' instead")));
// - (NSUInteger)indexOfObject:(ObjectType)anObject;
// - (NSUInteger)indexOfObject:(ObjectType)anObject inRange:(NSRange)range;
// - (NSUInteger)indexOfObjectIdenticalTo:(ObjectType)anObject;
// - (NSUInteger)indexOfObjectIdenticalTo:(ObjectType)anObject inRange:(NSRange)range;
// - (BOOL)isEqualToArray:(NSArray<ObjectType> *)otherArray;
// @property (nullable, nonatomic, readonly) ObjectType firstObject __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, nonatomic, readonly) ObjectType lastObject;
// - (NSEnumerator<ObjectType> *)objectEnumerator;
// - (NSEnumerator<ObjectType> *)reverseObjectEnumerator;
// @property (readonly, copy) NSData *sortedArrayHint;
// - (NSArray<ObjectType> *)sortedArrayUsingFunction:(NSInteger (__attribute__((noescape)) *)(ObjectType, ObjectType, void * _Nullable))comparator context:(nullable void *)context;
// - (NSArray<ObjectType> *)sortedArrayUsingFunction:(NSInteger (__attribute__((noescape)) *)(ObjectType, ObjectType, void * _Nullable))comparator context:(nullable void *)context hint:(nullable NSData *)hint;
// - (NSArray<ObjectType> *)sortedArrayUsingSelector:(SEL)comparator;
// - (NSArray<ObjectType> *)subarrayWithRange:(NSRange)range;
// - (BOOL)writeToURL:(NSURL *)url error:(NSError **)error __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// - (void)makeObjectsPerformSelector:(SEL)aSelector __attribute__((availability(swift, unavailable, message="Use enumerateObjectsUsingBlock: or a for loop instead")));
// - (void)makeObjectsPerformSelector:(SEL)aSelector withObject:(nullable id)argument __attribute__((availability(swift, unavailable, message="Use enumerateObjectsUsingBlock: or a for loop instead")));
// - (NSArray<ObjectType> *)objectsAtIndexes:(NSIndexSet *)indexes;
// - (ObjectType)objectAtIndexedSubscript:(NSUInteger)idx __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)enumerateObjectsUsingBlock:(void (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)enumerateObjectsWithOptions:(NSEnumerationOptions)opts usingBlock:(void (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)enumerateObjectsAtIndexes:(NSIndexSet *)s options:(NSEnumerationOptions)opts usingBlock:(void (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSUInteger)indexOfObjectPassingTest:(BOOL (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSUInteger)indexOfObjectWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSUInteger)indexOfObjectAtIndexes:(NSIndexSet *)s options:(NSEnumerationOptions)opts passingTest:(BOOL (__attribute__((noescape))^)(ObjectType obj, NSUInteger idx, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSIndexSet *)indexesOfObjectsPassingTest:(BOOL (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSIndexSet *)indexesOfObjectsWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSIndexSet *)indexesOfObjectsAtIndexes:(NSIndexSet *)s options:(NSEnumerationOptions)opts passingTest:(BOOL (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSArray<ObjectType> *)sortedArrayUsingComparator:(NSComparator __attribute__((noescape)))cmptr __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSArray<ObjectType> *)sortedArrayWithOptions:(NSSortOptions)opts usingComparator:(NSComparator __attribute__((noescape)))cmptr __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef NSUInteger NSBinarySearchingOptions; enum {
NSBinarySearchingFirstEqual = (1UL << 8),
NSBinarySearchingLastEqual = (1UL << 9),
NSBinarySearchingInsertionIndex = (1UL << 10),
};
// - (NSUInteger)indexOfObject:(ObjectType)obj inSortedRange:(NSRange)r options:(NSBinarySearchingOptions)opts usingComparator:(NSComparator __attribute__((noescape)))cmp __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSArray<ObjectType> (NSArrayCreation)
// + (instancetype)array;
// + (instancetype)arrayWithObject:(ObjectType)anObject;
// + (instancetype)arrayWithObjects:(const ObjectType _Nonnull [_Nonnull])objects count:(NSUInteger)cnt;
// + (instancetype)arrayWithObjects:(ObjectType)firstObj, ... __attribute__((sentinel(0,1)));
// + (instancetype)arrayWithArray:(NSArray<ObjectType> *)array;
// - (instancetype)initWithObjects:(ObjectType)firstObj, ... __attribute__((sentinel(0,1)));
// - (instancetype)initWithArray:(NSArray<ObjectType> *)array;
// - (instancetype)initWithArray:(NSArray<ObjectType> *)array copyItems:(BOOL)flag;
// - (nullable NSArray<ObjectType> *)initWithContentsOfURL:(NSURL *)url error:(NSError **)error __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// + (nullable NSArray<ObjectType> *)arrayWithContentsOfURL:(NSURL *)url error:(NSError **)error __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(swift, unavailable, message="Use initializer instead")));
/* @end */
__attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)))
__attribute__((availability(swift, unavailable, message="NSArray diffing methods are not available in Swift, use Collection.difference(from:) instead")))
// @interface NSArray<ObjectType> (NSArrayDiffing)
// - (NSOrderedCollectionDifference<ObjectType> *)differenceFromArray:(NSArray<ObjectType> *)other withOptions:(NSOrderedCollectionDifferenceCalculationOptions)options usingEquivalenceTest:(BOOL (__attribute__((noescape)) ^)(ObjectType obj1, ObjectType obj2))block;
// - (NSOrderedCollectionDifference<ObjectType> *)differenceFromArray:(NSArray<ObjectType> *)other withOptions:(NSOrderedCollectionDifferenceCalculationOptions)options;
// - (NSOrderedCollectionDifference<ObjectType> *)differenceFromArray:(NSArray<ObjectType> *)other;
// - (nullable NSArray<ObjectType> *)arrayByApplyingDifference:(NSOrderedCollectionDifference<ObjectType> *)difference;
/* @end */
// @interface NSArray<ObjectType> (NSDeprecated)
// - (void)getObjects:(ObjectType _Nonnull __attribute__((objc_ownership(none))) [_Nonnull])objects __attribute__((availability(swift, unavailable, message="Use 'as [AnyObject]' instead"))) __attribute__((availability(macos,introduced=10.0,deprecated=10.13,message="Use -getObjects:range: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=11.0,message="Use -getObjects:range: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=4.0,message="Use -getObjects:range: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=11.0,message="Use -getObjects:range: instead")));
// + (nullable NSArray<ObjectType> *)arrayWithContentsOfFile:(NSString *)path __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="arrayWithContentsOfURL:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="arrayWithContentsOfURL:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="arrayWithContentsOfURL:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="arrayWithContentsOfURL:error:")));
// + (nullable NSArray<ObjectType> *)arrayWithContentsOfURL:(NSURL *)url __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="arrayWithContentsOfURL:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="arrayWithContentsOfURL:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="arrayWithContentsOfURL:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="arrayWithContentsOfURL:error:")));
// - (nullable NSArray<ObjectType> *)initWithContentsOfFile:(NSString *)path __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="initWithContentsOfURL:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="initWithContentsOfURL:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="initWithContentsOfURL:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="initWithContentsOfURL:error:")));
// - (nullable NSArray<ObjectType> *)initWithContentsOfURL:(NSURL *)url __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="initWithContentsOfURL:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="initWithContentsOfURL:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="initWithContentsOfURL:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="initWithContentsOfURL:error:")));
// - (BOOL)writeToFile:(NSString *)path atomically:(BOOL)useAuxiliaryFile __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="writeToURL:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="writeToURL:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="writeToURL:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="writeToURL:error:")));
// - (BOOL)writeToURL:(NSURL *)url atomically:(BOOL)atomically __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="writeToURL:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="writeToURL:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="writeToURL:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="writeToURL:error:")));
/* @end */
#ifndef _REWRITER_typedef_NSMutableArray
#define _REWRITER_typedef_NSMutableArray
typedef struct objc_object NSMutableArray;
typedef struct {} _objc_exc_NSMutableArray;
#endif
struct NSMutableArray_IMPL {
struct NSArray_IMPL NSArray_IVARS;
};
// - (void)addObject:(ObjectType)anObject;
// - (void)insertObject:(ObjectType)anObject atIndex:(NSUInteger)index;
// - (void)removeLastObject;
// - (void)removeObjectAtIndex:(NSUInteger)index;
// - (void)replaceObjectAtIndex:(NSUInteger)index withObject:(ObjectType)anObject;
// - (instancetype)init __attribute__((objc_designated_initializer));
// - (instancetype)initWithCapacity:(NSUInteger)numItems __attribute__((objc_designated_initializer));
// - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer));
/* @end */
// @interface NSMutableArray<ObjectType> (NSExtendedMutableArray)
// - (void)addObjectsFromArray:(NSArray<ObjectType> *)otherArray;
// - (void)exchangeObjectAtIndex:(NSUInteger)idx1 withObjectAtIndex:(NSUInteger)idx2;
// - (void)removeAllObjects;
// - (void)removeObject:(ObjectType)anObject inRange:(NSRange)range;
// - (void)removeObject:(ObjectType)anObject;
// - (void)removeObjectIdenticalTo:(ObjectType)anObject inRange:(NSRange)range;
// - (void)removeObjectIdenticalTo:(ObjectType)anObject;
// - (void)removeObjectsFromIndices:(NSUInteger *)indices numIndices:(NSUInteger)cnt __attribute__((availability(macos,introduced=10.0,deprecated=10.6,message="Not supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=4.0,message="Not supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Not supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Not supported")));
// - (void)removeObjectsInArray:(NSArray<ObjectType> *)otherArray;
// - (void)removeObjectsInRange:(NSRange)range;
// - (void)replaceObjectsInRange:(NSRange)range withObjectsFromArray:(NSArray<ObjectType> *)otherArray range:(NSRange)otherRange;
// - (void)replaceObjectsInRange:(NSRange)range withObjectsFromArray:(NSArray<ObjectType> *)otherArray;
// - (void)setArray:(NSArray<ObjectType> *)otherArray;
// - (void)sortUsingFunction:(NSInteger (__attribute__((noescape)) *)(ObjectType, ObjectType, void * _Nullable))compare context:(nullable void *)context;
// - (void)sortUsingSelector:(SEL)comparator;
// - (void)insertObjects:(NSArray<ObjectType> *)objects atIndexes:(NSIndexSet *)indexes;
// - (void)removeObjectsAtIndexes:(NSIndexSet *)indexes;
// - (void)replaceObjectsAtIndexes:(NSIndexSet *)indexes withObjects:(NSArray<ObjectType> *)objects;
// - (void)setObject:(ObjectType)obj atIndexedSubscript:(NSUInteger)idx __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)sortUsingComparator:(NSComparator __attribute__((noescape)))cmptr __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)sortWithOptions:(NSSortOptions)opts usingComparator:(NSComparator __attribute__((noescape)))cmptr __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSMutableArray<ObjectType> (NSMutableArrayCreation)
// + (instancetype)arrayWithCapacity:(NSUInteger)numItems;
// + (nullable NSMutableArray<ObjectType> *)arrayWithContentsOfFile:(NSString *)path;
// + (nullable NSMutableArray<ObjectType> *)arrayWithContentsOfURL:(NSURL *)url;
// - (nullable NSMutableArray<ObjectType> *)initWithContentsOfFile:(NSString *)path;
// - (nullable NSMutableArray<ObjectType> *)initWithContentsOfURL:(NSURL *)url;
/* @end */
__attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)))
__attribute__((availability(swift, unavailable, message="NSMutableArray diffing methods are not available in Swift")))
// @interface NSMutableArray<ObjectType> (NSMutableArrayDiffing)
// - (void)applyDifference:(NSOrderedCollectionDifference<ObjectType> *)difference;
/* @end */
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
#ifndef _REWRITER_typedef_NSAutoreleasePool
#define _REWRITER_typedef_NSAutoreleasePool
typedef struct objc_object NSAutoreleasePool;
typedef struct {} _objc_exc_NSAutoreleasePool;
#endif
struct NSAutoreleasePool_IMPL {
struct NSObject_IMPL NSObject_IVARS;
void *_token;
void *_reserved3;
void *_reserved2;
void *_reserved;
};
// + (void)addObject:(id)anObject;
// - (void)addObject:(id)anObject;
// - (void)drain;
/* @end */
#pragma clang assume_nonnull end
typedef unsigned short unichar;
#pragma clang assume_nonnull begin
// @class NSItemProvider;
#ifndef _REWRITER_typedef_NSItemProvider
#define _REWRITER_typedef_NSItemProvider
typedef struct objc_object NSItemProvider;
typedef struct {} _objc_exc_NSItemProvider;
#endif
#ifndef _REWRITER_typedef_NSProgress
#define _REWRITER_typedef_NSProgress
typedef struct objc_object NSProgress;
typedef struct {} _objc_exc_NSProgress;
#endif
typedef NSInteger NSItemProviderRepresentationVisibility; enum {
NSItemProviderRepresentationVisibilityAll = 0,
NSItemProviderRepresentationVisibilityTeam
__attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(macos,unavailable))) = 1,
NSItemProviderRepresentationVisibilityGroup
__attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 2 ,
NSItemProviderRepresentationVisibilityOwnProcess = 3,
} __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
typedef NSInteger NSItemProviderFileOptions; enum {
NSItemProviderFileOptionOpenInPlace = 1,
} __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
__attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)))
// @protocol NSItemProviderWriting <NSObject>
@property (class, nonatomic, readonly, copy) NSArray<NSString *> *writableTypeIdentifiersForItemProvider;
/* @optional */
// @property (nonatomic, readonly, copy) NSArray<NSString *> *writableTypeIdentifiersForItemProvider;
// + (NSItemProviderRepresentationVisibility)itemProviderVisibilityForRepresentationWithTypeIdentifier:(NSString *)typeIdentifier;
// - (NSItemProviderRepresentationVisibility)itemProviderVisibilityForRepresentationWithTypeIdentifier:(NSString *)typeIdentifier;
/* @required */
#if 0
- (nullable NSProgress *)loadDataWithTypeIdentifier:(NSString *)typeIdentifier
forItemProviderCompletionHandler:(void (^)(NSData * _Nullable data, NSError * _Nullable error))completionHandler;
#endif
/* @end */
__attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)))
// @protocol NSItemProviderReading <NSObject>
@property (class, nonatomic, readonly, copy) NSArray<NSString *> *readableTypeIdentifiersForItemProvider;
#if 0
+ (nullable instancetype)objectWithItemProviderData:(NSData *)data
typeIdentifier:(NSString *)typeIdentifier
error:(NSError **)outError;
#endif
/* @end */
typedef void (*NSItemProviderCompletionHandler)(_Nullable id /*<NSSecureCoding>*/ item, NSError * _Null_unspecified error);
typedef void (*NSItemProviderLoadHandler)(_Null_unspecified NSItemProviderCompletionHandler completionHandler, _Null_unspecified Class expectedValueClass, NSDictionary * _Null_unspecified options);
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSItemProvider
#define _REWRITER_typedef_NSItemProvider
typedef struct objc_object NSItemProvider;
typedef struct {} _objc_exc_NSItemProvider;
#endif
struct NSItemProvider_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// - (instancetype)init __attribute__((objc_designated_initializer));
#if 0
- (void)registerDataRepresentationForTypeIdentifier:(NSString *)typeIdentifier
visibility:(NSItemProviderRepresentationVisibility)visibility
loadHandler:(NSProgress * _Nullable (^)(void (^completionHandler)(NSData * _Nullable data, NSError * _Nullable error)))loadHandler __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
#endif
#if 0
- (void)registerFileRepresentationForTypeIdentifier:(NSString *)typeIdentifier
fileOptions:(NSItemProviderFileOptions)fileOptions
visibility:(NSItemProviderRepresentationVisibility)visibility
loadHandler:(NSProgress * _Nullable (^)(void (^completionHandler)(NSURL * _Nullable url, BOOL coordinated, NSError * _Nullable error)))loadHandler __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
#endif
// @property (copy, readonly, atomic) NSArray<NSString *> *registeredTypeIdentifiers;
// - (NSArray<NSString *> *)registeredTypeIdentifiersWithFileOptions:(NSItemProviderFileOptions)fileOptions __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// - (BOOL)hasItemConformingToTypeIdentifier:(NSString *)typeIdentifier;
#if 0
- (BOOL)hasRepresentationConformingToTypeIdentifier:(NSString *)typeIdentifier
fileOptions:(NSItemProviderFileOptions)fileOptions __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
#endif
#if 0
- (NSProgress *)loadDataRepresentationForTypeIdentifier:(NSString *)typeIdentifier
completionHandler:(void(^)(NSData * _Nullable data, NSError * _Nullable error))completionHandler __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
#endif
#if 0
- (NSProgress *)loadFileRepresentationForTypeIdentifier:(NSString *)typeIdentifier
completionHandler:(void(^)(NSURL * _Nullable url, NSError * _Nullable error))completionHandler __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
#endif
#if 0
- (NSProgress *)loadInPlaceFileRepresentationForTypeIdentifier:(NSString *)typeIdentifier
completionHandler:(void (^)(NSURL * _Nullable url, BOOL isInPlace, NSError * _Nullable error))completionHandler __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
#endif
// @property (atomic, copy, nullable) NSString *suggestedName __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// - (instancetype)initWithObject:(id<NSItemProviderWriting>)object __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// - (void)registerObject:(id<NSItemProviderWriting>)object visibility:(NSItemProviderRepresentationVisibility)visibility __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
#if 0
- (void)registerObjectOfClass:(Class<NSItemProviderWriting>)aClass
visibility:(NSItemProviderRepresentationVisibility)visibility
loadHandler:(NSProgress * _Nullable (^)(void (^completionHandler)(id<NSItemProviderWriting> _Nullable object, NSError * _Nullable error)))loadHandler __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
#endif
// - (BOOL)canLoadObjectOfClass:(Class<NSItemProviderReading>)aClass __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
#if 0
- (NSProgress *)loadObjectOfClass:(Class<NSItemProviderReading>)aClass
completionHandler:(void (^)(id<NSItemProviderReading> _Nullable object, NSError * _Nullable error))completionHandler __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
#endif
// - (instancetype)initWithItem:(nullable id<NSSecureCoding>)item typeIdentifier:(nullable NSString *)typeIdentifier __attribute__((objc_designated_initializer));
// - (nullable instancetype)initWithContentsOfURL:(null_unspecified NSURL *)fileURL;
// - (void)registerItemForTypeIdentifier:(NSString *)typeIdentifier loadHandler:(NSItemProviderLoadHandler)loadHandler;
// - (void)loadItemForTypeIdentifier:(NSString *)typeIdentifier options:(nullable NSDictionary *)options completionHandler:(nullable NSItemProviderCompletionHandler)completionHandler;
/* @end */
extern "C" NSString * const NSItemProviderPreferredImageSizeKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @interface NSItemProvider(NSPreviewSupport)
// @property (nullable, copy, atomic) NSItemProviderLoadHandler previewImageHandler __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)loadPreviewImageWithOptions:(null_unspecified NSDictionary *)options completionHandler:(null_unspecified NSItemProviderCompletionHandler)completionHandler __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
extern "C" NSString * _Null_unspecified const NSExtensionJavaScriptPreprocessingResultsKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * _Null_unspecified const NSExtensionJavaScriptFinalizeArgumentKey __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
extern "C" NSString * const NSItemProviderErrorDomain __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef NSInteger NSItemProviderErrorCode; enum {
NSItemProviderUnknownError = -1,
NSItemProviderItemUnavailableError = -1000,
NSItemProviderUnexpectedValueClassError = -1100,
NSItemProviderUnavailableCoercionError __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = -1200
} __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
#pragma clang assume_nonnull end
// @class NSData;
#ifndef _REWRITER_typedef_NSData
#define _REWRITER_typedef_NSData
typedef struct objc_object NSData;
typedef struct {} _objc_exc_NSData;
#endif
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
#ifndef _REWRITER_typedef_NSCharacterSet
#define _REWRITER_typedef_NSCharacterSet
typedef struct objc_object NSCharacterSet;
typedef struct {} _objc_exc_NSCharacterSet;
#endif
#ifndef _REWRITER_typedef_NSURL
#define _REWRITER_typedef_NSURL
typedef struct objc_object NSURL;
typedef struct {} _objc_exc_NSURL;
#endif
#ifndef _REWRITER_typedef_NSError
#define _REWRITER_typedef_NSError
typedef struct objc_object NSError;
typedef struct {} _objc_exc_NSError;
#endif
#ifndef _REWRITER_typedef_NSLocale
#define _REWRITER_typedef_NSLocale
typedef struct objc_object NSLocale;
typedef struct {} _objc_exc_NSLocale;
#endif
#pragma clang assume_nonnull begin
typedef NSUInteger NSStringCompareOptions; enum {
NSCaseInsensitiveSearch = 1,
NSLiteralSearch = 2,
NSBackwardsSearch = 4,
NSAnchoredSearch = 8,
NSNumericSearch = 64,
NSDiacriticInsensitiveSearch __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 128,
NSWidthInsensitiveSearch __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 256,
NSForcedOrderingSearch __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 512,
NSRegularExpressionSearch __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 1024
};
typedef NSUInteger NSStringEncoding;
enum {
NSASCIIStringEncoding = 1,
NSNEXTSTEPStringEncoding = 2,
NSJapaneseEUCStringEncoding = 3,
NSUTF8StringEncoding = 4,
NSISOLatin1StringEncoding = 5,
NSSymbolStringEncoding = 6,
NSNonLossyASCIIStringEncoding = 7,
NSShiftJISStringEncoding = 8,
NSISOLatin2StringEncoding = 9,
NSUnicodeStringEncoding = 10,
NSWindowsCP1251StringEncoding = 11,
NSWindowsCP1252StringEncoding = 12,
NSWindowsCP1253StringEncoding = 13,
NSWindowsCP1254StringEncoding = 14,
NSWindowsCP1250StringEncoding = 15,
NSISO2022JPStringEncoding = 21,
NSMacOSRomanStringEncoding = 30,
NSUTF16StringEncoding = NSUnicodeStringEncoding,
NSUTF16BigEndianStringEncoding = 0x90000100,
NSUTF16LittleEndianStringEncoding = 0x94000100,
NSUTF32StringEncoding = 0x8c000100,
NSUTF32BigEndianStringEncoding = 0x98000100,
NSUTF32LittleEndianStringEncoding = 0x9c000100
};
typedef NSUInteger NSStringEncodingConversionOptions; enum {
NSStringEncodingConversionAllowLossy = 1,
NSStringEncodingConversionExternalRepresentation = 2
};
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
struct NSString_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// @property (readonly) NSUInteger length;
// - (unichar)characterAtIndex:(NSUInteger)index;
// - (instancetype)init __attribute__((objc_designated_initializer));
// - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer));
/* @end */
// @interface NSString (NSStringExtensionMethods)
// - (NSString *)substringFromIndex:(NSUInteger)from;
// - (NSString *)substringToIndex:(NSUInteger)to;
// - (NSString *)substringWithRange:(NSRange)range;
// - (void)getCharacters:(unichar *)buffer range:(NSRange)range;
// - (NSComparisonResult)compare:(NSString *)string;
// - (NSComparisonResult)compare:(NSString *)string options:(NSStringCompareOptions)mask;
// - (NSComparisonResult)compare:(NSString *)string options:(NSStringCompareOptions)mask range:(NSRange)rangeOfReceiverToCompare;
// - (NSComparisonResult)compare:(NSString *)string options:(NSStringCompareOptions)mask range:(NSRange)rangeOfReceiverToCompare locale:(nullable id)locale;
// - (NSComparisonResult)caseInsensitiveCompare:(NSString *)string;
// - (NSComparisonResult)localizedCompare:(NSString *)string;
// - (NSComparisonResult)localizedCaseInsensitiveCompare:(NSString *)string;
// - (NSComparisonResult)localizedStandardCompare:(NSString *)string __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)isEqualToString:(NSString *)aString;
// - (BOOL)hasPrefix:(NSString *)str;
// - (BOOL)hasSuffix:(NSString *)str;
// - (NSString *)commonPrefixWithString:(NSString *)str options:(NSStringCompareOptions)mask;
// - (BOOL)containsString:(NSString *)str __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)localizedCaseInsensitiveContainsString:(NSString *)str __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)localizedStandardContainsString:(NSString *)str __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSRange)localizedStandardRangeOfString:(NSString *)str __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSRange)rangeOfString:(NSString *)searchString;
// - (NSRange)rangeOfString:(NSString *)searchString options:(NSStringCompareOptions)mask;
// - (NSRange)rangeOfString:(NSString *)searchString options:(NSStringCompareOptions)mask range:(NSRange)rangeOfReceiverToSearch;
// - (NSRange)rangeOfString:(NSString *)searchString options:(NSStringCompareOptions)mask range:(NSRange)rangeOfReceiverToSearch locale:(nullable NSLocale *)locale __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSRange)rangeOfCharacterFromSet:(NSCharacterSet *)searchSet;
// - (NSRange)rangeOfCharacterFromSet:(NSCharacterSet *)searchSet options:(NSStringCompareOptions)mask;
// - (NSRange)rangeOfCharacterFromSet:(NSCharacterSet *)searchSet options:(NSStringCompareOptions)mask range:(NSRange)rangeOfReceiverToSearch;
// - (NSRange)rangeOfComposedCharacterSequenceAtIndex:(NSUInteger)index;
// - (NSRange)rangeOfComposedCharacterSequencesForRange:(NSRange)range __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSString *)stringByAppendingString:(NSString *)aString;
// - (NSString *)stringByAppendingFormat:(NSString *)format, ... __attribute__((format(__NSString__, 1, 2)));
// @property (readonly) double doubleValue;
// @property (readonly) float floatValue;
// @property (readonly) int intValue;
// @property (readonly) NSInteger integerValue __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly) long long longLongValue __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly) BOOL boolValue __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSString *uppercaseString;
// @property (readonly, copy) NSString *lowercaseString;
// @property (readonly, copy) NSString *capitalizedString;
// @property (readonly, copy) NSString *localizedUppercaseString __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSString *localizedLowercaseString __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSString *localizedCapitalizedString __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSString *)uppercaseStringWithLocale:(nullable NSLocale *)locale __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSString *)lowercaseStringWithLocale:(nullable NSLocale *)locale __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSString *)capitalizedStringWithLocale:(nullable NSLocale *)locale __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)getLineStart:(nullable NSUInteger *)startPtr end:(nullable NSUInteger *)lineEndPtr contentsEnd:(nullable NSUInteger *)contentsEndPtr forRange:(NSRange)range;
// - (NSRange)lineRangeForRange:(NSRange)range;
// - (void)getParagraphStart:(nullable NSUInteger *)startPtr end:(nullable NSUInteger *)parEndPtr contentsEnd:(nullable NSUInteger *)contentsEndPtr forRange:(NSRange)range;
// - (NSRange)paragraphRangeForRange:(NSRange)range;
typedef NSUInteger NSStringEnumerationOptions; enum {
NSStringEnumerationByLines = 0,
NSStringEnumerationByParagraphs = 1,
NSStringEnumerationByComposedCharacterSequences = 2,
NSStringEnumerationByWords = 3,
NSStringEnumerationBySentences = 4,
NSStringEnumerationReverse = 1UL << 8,
NSStringEnumerationSubstringNotRequired = 1UL << 9,
NSStringEnumerationLocalized = 1UL << 10
};
// - (void)enumerateSubstringsInRange:(NSRange)range options:(NSStringEnumerationOptions)opts usingBlock:(void (^)(NSString * _Nullable substring, NSRange substringRange, NSRange enclosingRange, BOOL *stop))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)enumerateLinesUsingBlock:(void (^)(NSString *line, BOOL *stop))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly) const char *UTF8String __attribute__((objc_returns_inner_pointer));
// @property (readonly) NSStringEncoding fastestEncoding;
// @property (readonly) NSStringEncoding smallestEncoding;
// - (nullable NSData *)dataUsingEncoding:(NSStringEncoding)encoding allowLossyConversion:(BOOL)lossy;
// - (nullable NSData *)dataUsingEncoding:(NSStringEncoding)encoding;
// - (BOOL)canBeConvertedToEncoding:(NSStringEncoding)encoding;
// - (nullable const char *)cStringUsingEncoding:(NSStringEncoding)encoding __attribute__((objc_returns_inner_pointer));
// - (BOOL)getCString:(char *)buffer maxLength:(NSUInteger)maxBufferCount encoding:(NSStringEncoding)encoding;
// - (BOOL)getBytes:(nullable void *)buffer maxLength:(NSUInteger)maxBufferCount usedLength:(nullable NSUInteger *)usedBufferCount encoding:(NSStringEncoding)encoding options:(NSStringEncodingConversionOptions)options range:(NSRange)range remainingRange:(nullable NSRangePointer)leftover;
// - (NSUInteger)maximumLengthOfBytesUsingEncoding:(NSStringEncoding)enc;
// - (NSUInteger)lengthOfBytesUsingEncoding:(NSStringEncoding)enc;
@property (class, readonly) const NSStringEncoding *availableStringEncodings;
// + (NSString *)localizedNameOfStringEncoding:(NSStringEncoding)encoding;
@property (class, readonly) NSStringEncoding defaultCStringEncoding;
// @property (readonly, copy) NSString *decomposedStringWithCanonicalMapping;
// @property (readonly, copy) NSString *precomposedStringWithCanonicalMapping;
// @property (readonly, copy) NSString *decomposedStringWithCompatibilityMapping;
// @property (readonly, copy) NSString *precomposedStringWithCompatibilityMapping;
// - (NSArray<NSString *> *)componentsSeparatedByString:(NSString *)separator;
// - (NSArray<NSString *> *)componentsSeparatedByCharactersInSet:(NSCharacterSet *)separator __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSString *)stringByTrimmingCharactersInSet:(NSCharacterSet *)set;
// - (NSString *)stringByPaddingToLength:(NSUInteger)newLength withString:(NSString *)padString startingAtIndex:(NSUInteger)padIndex;
// - (NSString *)stringByFoldingWithOptions:(NSStringCompareOptions)options locale:(nullable NSLocale *)locale __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSString *)stringByReplacingOccurrencesOfString:(NSString *)target withString:(NSString *)replacement options:(NSStringCompareOptions)options range:(NSRange)searchRange __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSString *)stringByReplacingOccurrencesOfString:(NSString *)target withString:(NSString *)replacement __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSString *)stringByReplacingCharactersInRange:(NSRange)range withString:(NSString *)replacement __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef NSString *NSStringTransform __attribute__((swift_wrapper(struct)));
// - (nullable NSString *)stringByApplyingTransform:(NSStringTransform)transform reverse:(BOOL)reverse __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStringTransform const NSStringTransformLatinToKatakana __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStringTransform const NSStringTransformLatinToHiragana __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStringTransform const NSStringTransformLatinToHangul __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStringTransform const NSStringTransformLatinToArabic __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStringTransform const NSStringTransformLatinToHebrew __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStringTransform const NSStringTransformLatinToThai __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStringTransform const NSStringTransformLatinToCyrillic __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStringTransform const NSStringTransformLatinToGreek __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStringTransform const NSStringTransformToLatin __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStringTransform const NSStringTransformMandarinToLatin __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStringTransform const NSStringTransformHiraganaToKatakana __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStringTransform const NSStringTransformFullwidthToHalfwidth __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStringTransform const NSStringTransformToXMLHex __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStringTransform const NSStringTransformToUnicodeName __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStringTransform const NSStringTransformStripCombiningMarks __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStringTransform const NSStringTransformStripDiacritics __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)writeToURL:(NSURL *)url atomically:(BOOL)useAuxiliaryFile encoding:(NSStringEncoding)enc error:(NSError **)error;
// - (BOOL)writeToFile:(NSString *)path atomically:(BOOL)useAuxiliaryFile encoding:(NSStringEncoding)enc error:(NSError **)error;
// @property (readonly, copy) NSString *description;
// @property (readonly) NSUInteger hash;
// - (instancetype)initWithCharactersNoCopy:(unichar *)characters length:(NSUInteger)length freeWhenDone:(BOOL)freeBuffer;
// - (instancetype)initWithCharacters:(const unichar *)characters length:(NSUInteger)length;
// - (nullable instancetype)initWithUTF8String:(const char *)nullTerminatedCString;
// - (instancetype)initWithString:(NSString *)aString;
// - (instancetype)initWithFormat:(NSString *)format, ... __attribute__((format(__NSString__, 1, 2)));
// - (instancetype)initWithFormat:(NSString *)format arguments:(va_list)argList __attribute__((format(__NSString__, 1, 0)));
// - (instancetype)initWithFormat:(NSString *)format locale:(nullable id)locale, ... __attribute__((format(__NSString__, 1, 3)));
// - (instancetype)initWithFormat:(NSString *)format locale:(nullable id)locale arguments:(va_list)argList __attribute__((format(__NSString__, 1, 0)));
// - (nullable instancetype)initWithData:(NSData *)data encoding:(NSStringEncoding)encoding;
// - (nullable instancetype)initWithBytes:(const void *)bytes length:(NSUInteger)len encoding:(NSStringEncoding)encoding;
// - (nullable instancetype)initWithBytesNoCopy:(void *)bytes length:(NSUInteger)len encoding:(NSStringEncoding)encoding freeWhenDone:(BOOL)freeBuffer;
// + (instancetype)string;
// + (instancetype)stringWithString:(NSString *)string;
// + (instancetype)stringWithCharacters:(const unichar *)characters length:(NSUInteger)length;
// + (nullable instancetype)stringWithUTF8String:(const char *)nullTerminatedCString;
// + (instancetype)stringWithFormat:(NSString *)format, ... __attribute__((format(__NSString__, 1, 2)));
// + (instancetype)localizedStringWithFormat:(NSString *)format, ... __attribute__((format(__NSString__, 1, 2)));
// - (nullable instancetype)initWithCString:(const char *)nullTerminatedCString encoding:(NSStringEncoding)encoding;
// + (nullable instancetype)stringWithCString:(const char *)cString encoding:(NSStringEncoding)enc;
// - (nullable instancetype)initWithContentsOfURL:(NSURL *)url encoding:(NSStringEncoding)enc error:(NSError **)error;
// - (nullable instancetype)initWithContentsOfFile:(NSString *)path encoding:(NSStringEncoding)enc error:(NSError **)error;
// + (nullable instancetype)stringWithContentsOfURL:(NSURL *)url encoding:(NSStringEncoding)enc error:(NSError **)error;
// + (nullable instancetype)stringWithContentsOfFile:(NSString *)path encoding:(NSStringEncoding)enc error:(NSError **)error;
// - (nullable instancetype)initWithContentsOfURL:(NSURL *)url usedEncoding:(nullable NSStringEncoding *)enc error:(NSError **)error;
// - (nullable instancetype)initWithContentsOfFile:(NSString *)path usedEncoding:(nullable NSStringEncoding *)enc error:(NSError **)error;
// + (nullable instancetype)stringWithContentsOfURL:(NSURL *)url usedEncoding:(nullable NSStringEncoding *)enc error:(NSError **)error;
// + (nullable instancetype)stringWithContentsOfFile:(NSString *)path usedEncoding:(nullable NSStringEncoding *)enc error:(NSError **)error;
/* @end */
typedef NSString * NSStringEncodingDetectionOptionsKey __attribute__((swift_wrapper(enum)));
// @interface NSString (NSStringEncodingDetection)
#if 0
+ (NSStringEncoding)stringEncodingForData:(NSData *)data
encodingOptions:(nullable NSDictionary<NSStringEncodingDetectionOptionsKey, id> *)opts
convertedString:(NSString * _Nullable * _Nullable)string
usedLossyConversion:(nullable BOOL *)usedLossyConversion __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
#endif
extern "C" NSStringEncodingDetectionOptionsKey const NSStringEncodingDetectionSuggestedEncodingsKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStringEncodingDetectionOptionsKey const NSStringEncodingDetectionDisallowedEncodingsKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStringEncodingDetectionOptionsKey const NSStringEncodingDetectionUseOnlySuggestedEncodingsKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStringEncodingDetectionOptionsKey const NSStringEncodingDetectionAllowLossyKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStringEncodingDetectionOptionsKey const NSStringEncodingDetectionFromWindowsKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStringEncodingDetectionOptionsKey const NSStringEncodingDetectionLossySubstitutionKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStringEncodingDetectionOptionsKey const NSStringEncodingDetectionLikelyLanguageKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSString (NSItemProvider) <NSItemProviderReading, NSItemProviderWriting>
/* @end */
#ifndef _REWRITER_typedef_NSMutableString
#define _REWRITER_typedef_NSMutableString
typedef struct objc_object NSMutableString;
typedef struct {} _objc_exc_NSMutableString;
#endif
struct NSMutableString_IMPL {
struct NSString_IMPL NSString_IVARS;
};
// - (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)aString;
/* @end */
// @interface NSMutableString (NSMutableStringExtensionMethods)
// - (void)insertString:(NSString *)aString atIndex:(NSUInteger)loc;
// - (void)deleteCharactersInRange:(NSRange)range;
// - (void)appendString:(NSString *)aString;
// - (void)appendFormat:(NSString *)format, ... __attribute__((format(__NSString__, 1, 2)));
// - (void)setString:(NSString *)aString;
// - (NSUInteger)replaceOccurrencesOfString:(NSString *)target withString:(NSString *)replacement options:(NSStringCompareOptions)options range:(NSRange)searchRange;
// - (BOOL)applyTransform:(NSStringTransform)transform reverse:(BOOL)reverse range:(NSRange)range updatedRange:(nullable NSRangePointer)resultingRange __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSMutableString *)initWithCapacity:(NSUInteger)capacity;
// + (NSMutableString *)stringWithCapacity:(NSUInteger)capacity;
/* @end */
extern "C" NSExceptionName const NSCharacterConversionException;
extern "C" NSExceptionName const NSParseErrorException;
// @interface NSString (NSExtendedStringPropertyListParsing)
// - (id)propertyList;
// - (nullable NSDictionary *)propertyListFromStringsFileFormat;
/* @end */
// @interface NSString (NSStringDeprecated)
// - (nullable const char *)cString __attribute__((objc_returns_inner_pointer)) __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use -cStringUsingEncoding: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -cStringUsingEncoding: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -cStringUsingEncoding: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -cStringUsingEncoding: instead")));
// - (nullable const char *)lossyCString __attribute__((objc_returns_inner_pointer)) __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use -cStringUsingEncoding: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -cStringUsingEncoding: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -cStringUsingEncoding: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -cStringUsingEncoding: instead")));
// - (NSUInteger)cStringLength __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use -lengthOfBytesUsingEncoding: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -lengthOfBytesUsingEncoding: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -lengthOfBytesUsingEncoding: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -lengthOfBytesUsingEncoding: instead")));
// - (void)getCString:(char *)bytes __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use -getCString:maxLength:encoding: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -getCString:maxLength:encoding: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -getCString:maxLength:encoding: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -getCString:maxLength:encoding: instead")));
// - (void)getCString:(char *)bytes maxLength:(NSUInteger)maxLength __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use -getCString:maxLength:encoding: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -getCString:maxLength:encoding: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -getCString:maxLength:encoding: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -getCString:maxLength:encoding: instead")));
// - (void)getCString:(char *)bytes maxLength:(NSUInteger)maxLength range:(NSRange)aRange remainingRange:(nullable NSRangePointer)leftoverRange __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use -getCString:maxLength:encoding: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -getCString:maxLength:encoding: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -getCString:maxLength:encoding: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -getCString:maxLength:encoding: instead")));
// - (BOOL)writeToFile:(NSString *)path atomically:(BOOL)useAuxiliaryFile __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use -writeToFile:atomically:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -writeToFile:atomically:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -writeToFile:atomically:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -writeToFile:atomically:error: instead")));
// - (BOOL)writeToURL:(NSURL *)url atomically:(BOOL)atomically __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use -writeToURL:atomically:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -writeToURL:atomically:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -writeToURL:atomically:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -writeToURL:atomically:error: instead")));
// - (nullable id)initWithContentsOfFile:(NSString *)path __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use -initWithContentsOfFile:encoding:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -initWithContentsOfFile:encoding:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -initWithContentsOfFile:encoding:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -initWithContentsOfFile:encoding:error: instead")));
// - (nullable id)initWithContentsOfURL:(NSURL *)url __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use -initWithContentsOfURL:encoding:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -initWithContentsOfURL:encoding:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -initWithContentsOfURL:encoding:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -initWithContentsOfURL:encoding:error: instead")));
// + (nullable id)stringWithContentsOfFile:(NSString *)path __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use +stringWithContentsOfFile:encoding:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use +stringWithContentsOfFile:encoding:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use +stringWithContentsOfFile:encoding:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use +stringWithContentsOfFile:encoding:error: instead")));
// + (nullable id)stringWithContentsOfURL:(NSURL *)url __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use +stringWithContentsOfURL:encoding:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use +stringWithContentsOfURL:encoding:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use +stringWithContentsOfURL:encoding:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use +stringWithContentsOfURL:encoding:error: instead")));
// - (nullable id)initWithCStringNoCopy:(char *)bytes length:(NSUInteger)length freeWhenDone:(BOOL)freeBuffer __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use -initWithCString:encoding: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -initWithCString:encoding: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -initWithCString:encoding: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -initWithCString:encoding: instead")));
// - (nullable id)initWithCString:(const char *)bytes length:(NSUInteger)length __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use -initWithCString:encoding: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -initWithCString:encoding: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -initWithCString:encoding: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -initWithCString:encoding: instead")));
// - (nullable id)initWithCString:(const char *)bytes __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use -initWithCString:encoding: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -initWithCString:encoding: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -initWithCString:encoding: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -initWithCString:encoding: instead")));
// + (nullable id)stringWithCString:(const char *)bytes length:(NSUInteger)length __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use +stringWithCString:encoding:"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use +stringWithCString:encoding:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use +stringWithCString:encoding:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use +stringWithCString:encoding:")));
// + (nullable id)stringWithCString:(const char *)bytes __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use +stringWithCString:encoding: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use +stringWithCString:encoding: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use +stringWithCString:encoding: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use +stringWithCString:encoding: instead")));
// - (void)getCharacters:(unichar *)buffer;
/* @end */
enum {
NSProprietaryStringEncoding = 65536
};
__attribute__((availability(swift, unavailable, message="Use String or NSString instead.")))
#ifndef _REWRITER_typedef_NSSimpleCString
#define _REWRITER_typedef_NSSimpleCString
typedef struct objc_object NSSimpleCString;
typedef struct {} _objc_exc_NSSimpleCString;
#endif
struct NSSimpleCString_IMPL {
struct NSString_IMPL NSString_IVARS;
char *bytes;
int numBytes;
int _unused;
};
/* @end */
__attribute__((availability(swift, unavailable, message="Use String or NSString instead.")))
#ifndef _REWRITER_typedef_NSConstantString
#define _REWRITER_typedef_NSConstantString
typedef struct objc_object NSConstantString;
typedef struct {} _objc_exc_NSConstantString;
#endif
struct NSConstantString_IMPL {
struct NSSimpleCString_IMPL NSSimpleCString_IVARS;
};
/* @end */
#pragma clang assume_nonnull end
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSSet
#define _REWRITER_typedef_NSSet
typedef struct objc_object NSSet;
typedef struct {} _objc_exc_NSSet;
#endif
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#ifndef _REWRITER_typedef_NSURL
#define _REWRITER_typedef_NSURL
typedef struct objc_object NSURL;
typedef struct {} _objc_exc_NSURL;
#endif
#pragma clang assume_nonnull begin
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
struct NSDictionary_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// @property (readonly) NSUInteger count;
// - (nullable ObjectType)objectForKey:(KeyType)aKey;
// - (NSEnumerator<KeyType> *)keyEnumerator;
// - (instancetype)init __attribute__((objc_designated_initializer));
// - (instancetype)initWithObjects:(const ObjectType _Nonnull [_Nullable])objects forKeys:(const KeyType <NSCopying> _Nonnull [_Nullable])keys count:(NSUInteger)cnt __attribute__((objc_designated_initializer));
// - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer));
/* @end */
// @interface NSDictionary<KeyType, ObjectType> (NSExtendedDictionary)
// @property (readonly, copy) NSArray<KeyType> *allKeys;
// - (NSArray<KeyType> *)allKeysForObject:(ObjectType)anObject;
// @property (readonly, copy) NSArray<ObjectType> *allValues;
// @property (readonly, copy) NSString *description;
// @property (readonly, copy) NSString *descriptionInStringsFileFormat;
// - (NSString *)descriptionWithLocale:(nullable id)locale;
// - (NSString *)descriptionWithLocale:(nullable id)locale indent:(NSUInteger)level;
// - (BOOL)isEqualToDictionary:(NSDictionary<KeyType, ObjectType> *)otherDictionary;
// - (NSEnumerator<ObjectType> *)objectEnumerator;
// - (NSArray<ObjectType> *)objectsForKeys:(NSArray<KeyType> *)keys notFoundMarker:(ObjectType)marker;
// - (BOOL)writeToURL:(NSURL *)url error:(NSError **)error __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// - (NSArray<KeyType> *)keysSortedByValueUsingSelector:(SEL)comparator;
// - (void)getObjects:(ObjectType _Nonnull __attribute__((objc_ownership(none))) [_Nullable])objects andKeys:(KeyType _Nonnull __attribute__((objc_ownership(none))) [_Nullable])keys count:(NSUInteger)count __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(swift, unavailable, message="Use 'allKeys' and/or 'allValues' instead")));
// - (nullable ObjectType)objectForKeyedSubscript:(KeyType)key __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)enumerateKeysAndObjectsUsingBlock:(void (__attribute__((noescape)) ^)(KeyType key, ObjectType obj, BOOL *stop))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)enumerateKeysAndObjectsWithOptions:(NSEnumerationOptions)opts usingBlock:(void (__attribute__((noescape)) ^)(KeyType key, ObjectType obj, BOOL *stop))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSArray<KeyType> *)keysSortedByValueUsingComparator:(NSComparator __attribute__((noescape)))cmptr __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSArray<KeyType> *)keysSortedByValueWithOptions:(NSSortOptions)opts usingComparator:(NSComparator __attribute__((noescape)))cmptr __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSSet<KeyType> *)keysOfEntriesPassingTest:(BOOL (__attribute__((noescape)) ^)(KeyType key, ObjectType obj, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSSet<KeyType> *)keysOfEntriesWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (__attribute__((noescape)) ^)(KeyType key, ObjectType obj, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSDictionary<KeyType, ObjectType> (NSDeprecated)
// - (void)getObjects:(ObjectType _Nonnull __attribute__((objc_ownership(none))) [_Nullable])objects andKeys:(KeyType _Nonnull __attribute__((objc_ownership(none))) [_Nullable])keys __attribute__((availability(swift, unavailable, message="Use 'allKeys' and/or 'allValues' instead"))) __attribute__((availability(macos,introduced=10.0,deprecated=10.13,message="Use -getObjects:andKeys:count: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=11.0,message="Use -getObjects:andKeys:count: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=4.0,message="Use -getObjects:andKeys:count: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=11.0,message="Use -getObjects:andKeys:count: instead")));
// + (nullable NSDictionary<KeyType, ObjectType> *)dictionaryWithContentsOfFile:(NSString *)path __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="dictionaryWithContentsOfURL:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="dictionaryWithContentsOfURL:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="dictionaryWithContentsOfURL:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="dictionaryWithContentsOfURL:error:")));
// + (nullable NSDictionary<KeyType, ObjectType> *)dictionaryWithContentsOfURL:(NSURL *)url __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="dictionaryWithContentsOfURL:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="dictionaryWithContentsOfURL:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="dictionaryWithContentsOfURL:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="dictionaryWithContentsOfURL:error:")));
// - (nullable NSDictionary<KeyType, ObjectType> *)initWithContentsOfFile:(NSString *)path __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="initWithContentsOfURL:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="initWithContentsOfURL:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="initWithContentsOfURL:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="initWithContentsOfURL:error:")));
// - (nullable NSDictionary<KeyType, ObjectType> *)initWithContentsOfURL:(NSURL *)url __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="initWithContentsOfURL:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="initWithContentsOfURL:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="initWithContentsOfURL:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="initWithContentsOfURL:error:")));
// - (BOOL)writeToFile:(NSString *)path atomically:(BOOL)useAuxiliaryFile __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="writeToURL:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="writeToURL:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="writeToURL:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="writeToURL:error:")));
// - (BOOL)writeToURL:(NSURL *)url atomically:(BOOL)atomically __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="writeToURL:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="writeToURL:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="writeToURL:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="writeToURL:error:")));
/* @end */
// @interface NSDictionary<KeyType, ObjectType> (NSDictionaryCreation)
// + (instancetype)dictionary;
// + (instancetype)dictionaryWithObject:(ObjectType)object forKey:(KeyType <NSCopying>)key;
// + (instancetype)dictionaryWithObjects:(const ObjectType _Nonnull [_Nullable])objects forKeys:(const KeyType <NSCopying> _Nonnull [_Nullable])keys count:(NSUInteger)cnt;
// + (instancetype)dictionaryWithObjectsAndKeys:(id)firstObject, ... __attribute__((sentinel(0,1))) __attribute__((availability(swift, unavailable, message="Use dictionary literals instead")));
// + (instancetype)dictionaryWithDictionary:(NSDictionary<KeyType, ObjectType> *)dict;
// + (instancetype)dictionaryWithObjects:(NSArray<ObjectType> *)objects forKeys:(NSArray<KeyType <NSCopying>> *)keys;
// - (instancetype)initWithObjectsAndKeys:(id)firstObject, ... __attribute__((sentinel(0,1)));
// - (instancetype)initWithDictionary:(NSDictionary<KeyType, ObjectType> *)otherDictionary;
// - (instancetype)initWithDictionary:(NSDictionary<KeyType, ObjectType> *)otherDictionary copyItems:(BOOL)flag;
// - (instancetype)initWithObjects:(NSArray<ObjectType> *)objects forKeys:(NSArray<KeyType <NSCopying>> *)keys;
// - (nullable NSDictionary<NSString *, ObjectType> *)initWithContentsOfURL:(NSURL *)url error:(NSError **)error __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// + (nullable NSDictionary<NSString *, ObjectType> *)dictionaryWithContentsOfURL:(NSURL *)url error:(NSError **)error __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(swift, unavailable, message="Use initializer instead")));
/* @end */
#ifndef _REWRITER_typedef_NSMutableDictionary
#define _REWRITER_typedef_NSMutableDictionary
typedef struct objc_object NSMutableDictionary;
typedef struct {} _objc_exc_NSMutableDictionary;
#endif
struct NSMutableDictionary_IMPL {
struct NSDictionary_IMPL NSDictionary_IVARS;
};
// - (void)removeObjectForKey:(KeyType)aKey;
// - (void)setObject:(ObjectType)anObject forKey:(KeyType <NSCopying>)aKey;
// - (instancetype)init __attribute__((objc_designated_initializer));
// - (instancetype)initWithCapacity:(NSUInteger)numItems __attribute__((objc_designated_initializer));
// - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer));
/* @end */
// @interface NSMutableDictionary<KeyType, ObjectType> (NSExtendedMutableDictionary)
// - (void)addEntriesFromDictionary:(NSDictionary<KeyType, ObjectType> *)otherDictionary;
// - (void)removeAllObjects;
// - (void)removeObjectsForKeys:(NSArray<KeyType> *)keyArray;
// - (void)setDictionary:(NSDictionary<KeyType, ObjectType> *)otherDictionary;
// - (void)setObject:(nullable ObjectType)obj forKeyedSubscript:(KeyType <NSCopying>)key __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSMutableDictionary<KeyType, ObjectType> (NSMutableDictionaryCreation)
// + (instancetype)dictionaryWithCapacity:(NSUInteger)numItems;
// + (nullable NSMutableDictionary<KeyType, ObjectType> *)dictionaryWithContentsOfFile:(NSString *)path;
// + (nullable NSMutableDictionary<KeyType, ObjectType> *)dictionaryWithContentsOfURL:(NSURL *)url;
// - (nullable NSMutableDictionary<KeyType, ObjectType> *)initWithContentsOfFile:(NSString *)path;
// - (nullable NSMutableDictionary<KeyType, ObjectType> *)initWithContentsOfURL:(NSURL *)url;
/* @end */
// @interface NSDictionary<KeyType, ObjectType> (NSSharedKeySetDictionary)
// + (id)sharedKeySetForKeys:(NSArray<KeyType <NSCopying>> *)keys __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSMutableDictionary<KeyType, ObjectType> (NSSharedKeySetDictionary)
// + (NSMutableDictionary<KeyType, ObjectType> *)dictionaryWithSharedKeySet:(id)keyset __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSDictionary<K, V> (NSGenericFastEnumeraiton) <NSFastEnumeration>
// - (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(K __attribute__((objc_ownership(none))) _Nullable [_Nonnull])buffer count:(NSUInteger)len;
/* @end */
#pragma clang assume_nonnull end
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#pragma clang assume_nonnull begin
#ifndef _REWRITER_typedef_NSSet
#define _REWRITER_typedef_NSSet
typedef struct objc_object NSSet;
typedef struct {} _objc_exc_NSSet;
#endif
struct NSSet_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// @property (readonly) NSUInteger count;
// - (nullable ObjectType)member:(ObjectType)object;
// - (NSEnumerator<ObjectType> *)objectEnumerator;
// - (instancetype)init __attribute__((objc_designated_initializer));
// - (instancetype)initWithObjects:(const ObjectType _Nonnull [_Nullable])objects count:(NSUInteger)cnt __attribute__((objc_designated_initializer));
// - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer));
/* @end */
// @interface NSSet<ObjectType> (NSExtendedSet)
// @property (readonly, copy) NSArray<ObjectType> *allObjects;
// - (nullable ObjectType)anyObject;
// - (BOOL)containsObject:(ObjectType)anObject;
// @property (readonly, copy) NSString *description;
// - (NSString *)descriptionWithLocale:(nullable id)locale;
// - (BOOL)intersectsSet:(NSSet<ObjectType> *)otherSet;
// - (BOOL)isEqualToSet:(NSSet<ObjectType> *)otherSet;
// - (BOOL)isSubsetOfSet:(NSSet<ObjectType> *)otherSet;
// - (void)makeObjectsPerformSelector:(SEL)aSelector __attribute__((availability(swift, unavailable, message="Use enumerateObjectsUsingBlock: or a for loop instead")));
// - (void)makeObjectsPerformSelector:(SEL)aSelector withObject:(nullable id)argument __attribute__((availability(swift, unavailable, message="Use enumerateObjectsUsingBlock: or a for loop instead")));
// - (NSSet<ObjectType> *)setByAddingObject:(ObjectType)anObject __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSSet<ObjectType> *)setByAddingObjectsFromSet:(NSSet<ObjectType> *)other __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSSet<ObjectType> *)setByAddingObjectsFromArray:(NSArray<ObjectType> *)other __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)enumerateObjectsUsingBlock:(void (__attribute__((noescape)) ^)(ObjectType obj, BOOL *stop))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)enumerateObjectsWithOptions:(NSEnumerationOptions)opts usingBlock:(void (__attribute__((noescape)) ^)(ObjectType obj, BOOL *stop))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSSet<ObjectType> *)objectsPassingTest:(BOOL (__attribute__((noescape)) ^)(ObjectType obj, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSSet<ObjectType> *)objectsWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (__attribute__((noescape)) ^)(ObjectType obj, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSSet<ObjectType> (NSSetCreation)
// + (instancetype)set;
// + (instancetype)setWithObject:(ObjectType)object;
// + (instancetype)setWithObjects:(const ObjectType _Nonnull [_Nonnull])objects count:(NSUInteger)cnt;
// + (instancetype)setWithObjects:(ObjectType)firstObj, ... __attribute__((sentinel(0,1)));
// + (instancetype)setWithSet:(NSSet<ObjectType> *)set;
// + (instancetype)setWithArray:(NSArray<ObjectType> *)array;
// - (instancetype)initWithObjects:(ObjectType)firstObj, ... __attribute__((sentinel(0,1)));
// - (instancetype)initWithSet:(NSSet<ObjectType> *)set;
// - (instancetype)initWithSet:(NSSet<ObjectType> *)set copyItems:(BOOL)flag;
// - (instancetype)initWithArray:(NSArray<ObjectType> *)array;
/* @end */
#ifndef _REWRITER_typedef_NSMutableSet
#define _REWRITER_typedef_NSMutableSet
typedef struct objc_object NSMutableSet;
typedef struct {} _objc_exc_NSMutableSet;
#endif
struct NSMutableSet_IMPL {
struct NSSet_IMPL NSSet_IVARS;
};
// - (void)addObject:(ObjectType)object;
// - (void)removeObject:(ObjectType)object;
// - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer));
// - (instancetype)init __attribute__((objc_designated_initializer));
// - (instancetype)initWithCapacity:(NSUInteger)numItems __attribute__((objc_designated_initializer));
/* @end */
// @interface NSMutableSet<ObjectType> (NSExtendedMutableSet)
// - (void)addObjectsFromArray:(NSArray<ObjectType> *)array;
// - (void)intersectSet:(NSSet<ObjectType> *)otherSet;
// - (void)minusSet:(NSSet<ObjectType> *)otherSet;
// - (void)removeAllObjects;
// - (void)unionSet:(NSSet<ObjectType> *)otherSet;
// - (void)setSet:(NSSet<ObjectType> *)otherSet;
/* @end */
// @interface NSMutableSet<ObjectType> (NSMutableSetCreation)
// + (instancetype)setWithCapacity:(NSUInteger)numItems;
/* @end */
#ifndef _REWRITER_typedef_NSCountedSet
#define _REWRITER_typedef_NSCountedSet
typedef struct objc_object NSCountedSet;
typedef struct {} _objc_exc_NSCountedSet;
#endif
struct NSCountedSet_IMPL {
struct NSMutableSet_IMPL NSMutableSet_IVARS;
id _table;
void *_reserved;
};
// - (instancetype)initWithCapacity:(NSUInteger)numItems __attribute__((objc_designated_initializer));
// - (instancetype)initWithArray:(NSArray<ObjectType> *)array;
// - (instancetype)initWithSet:(NSSet<ObjectType> *)set;
// - (NSUInteger)countForObject:(ObjectType)object;
// - (NSEnumerator<ObjectType> *)objectEnumerator;
// - (void)addObject:(ObjectType)object;
// - (void)removeObject:(ObjectType)object;
/* @end */
#pragma clang assume_nonnull end
// @class NSDictionary;
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
#ifndef _REWRITER_typedef_NSMutableDictionary
#define _REWRITER_typedef_NSMutableDictionary
typedef struct objc_object NSMutableDictionary;
typedef struct {} _objc_exc_NSMutableDictionary;
#endif
#ifndef _REWRITER_typedef_NSMutableSet
#define _REWRITER_typedef_NSMutableSet
typedef struct objc_object NSMutableSet;
typedef struct {} _objc_exc_NSMutableSet;
#endif
#ifndef _REWRITER_typedef_NSURL
#define _REWRITER_typedef_NSURL
typedef struct objc_object NSURL;
typedef struct {} _objc_exc_NSURL;
#endif
#ifndef _REWRITER_typedef_NSUUID
#define _REWRITER_typedef_NSUUID
typedef struct objc_object NSUUID;
typedef struct {} _objc_exc_NSUUID;
#endif
#ifndef _REWRITER_typedef_NSXPCConnection
#define _REWRITER_typedef_NSXPCConnection
typedef struct objc_object NSXPCConnection;
typedef struct {} _objc_exc_NSXPCConnection;
#endif
#ifndef _REWRITER_typedef_NSLock
#define _REWRITER_typedef_NSLock
typedef struct objc_object NSLock;
typedef struct {} _objc_exc_NSLock;
#endif
typedef NSString * NSProgressKind __attribute__((swift_wrapper(struct)));
typedef NSString * NSProgressUserInfoKey __attribute__((swift_wrapper(struct)));
typedef NSString * NSProgressFileOperationKind __attribute__((swift_wrapper(struct)));
#pragma clang assume_nonnull begin
__attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSProgress
#define _REWRITER_typedef_NSProgress
typedef struct objc_object NSProgress;
typedef struct {} _objc_exc_NSProgress;
#endif
struct NSProgress_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// + (nullable NSProgress *)currentProgress;
// + (NSProgress *)progressWithTotalUnitCount:(int64_t)unitCount;
// + (NSProgress *)discreteProgressWithTotalUnitCount:(int64_t)unitCount __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSProgress *)progressWithTotalUnitCount:(int64_t)unitCount parent:(NSProgress *)parent pendingUnitCount:(int64_t)portionOfParentTotalUnitCount __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (instancetype)initWithParent:(nullable NSProgress *)parentProgressOrNil userInfo:(nullable NSDictionary<NSProgressUserInfoKey, id> *)userInfoOrNil __attribute__((objc_designated_initializer));
// - (void)becomeCurrentWithPendingUnitCount:(int64_t)unitCount;
// - (void)performAsCurrentWithPendingUnitCount:(int64_t)unitCount usingBlock:(void (__attribute__((noescape)) ^)(void))work __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((swift_private));
// - (void)resignCurrent;
// - (void)addChild:(NSProgress *)child withPendingUnitCount:(int64_t)inUnitCount __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property int64_t totalUnitCount;
// @property int64_t completedUnitCount;
// @property (null_resettable, copy) NSString *localizedDescription;
// @property (null_resettable, copy) NSString *localizedAdditionalDescription;
// @property (getter=isCancellable) BOOL cancellable;
// @property (getter=isPausable) BOOL pausable;
// @property (readonly, getter=isCancelled) BOOL cancelled;
// @property (readonly, getter=isPaused) BOOL paused;
// @property (nullable, copy) void (^cancellationHandler)(void);
// @property (nullable, copy) void (^pausingHandler)(void);
// @property (nullable, copy) void (^resumingHandler)(void) __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)setUserInfoObject:(nullable id)objectOrNil forKey:(NSProgressUserInfoKey)key;
// @property (readonly, getter=isIndeterminate) BOOL indeterminate;
// @property (readonly) double fractionCompleted;
// @property (readonly, getter=isFinished) BOOL finished;
// - (void)cancel;
// - (void)pause;
// - (void)resume __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSDictionary<NSProgressUserInfoKey, id> *userInfo;
// @property (nullable, copy) NSProgressKind kind;
// @property (nullable, copy) NSNumber *estimatedTimeRemaining __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((swift_private));
// @property (nullable, copy) NSNumber *throughput __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((swift_private));
// @property (nullable, copy) NSProgressFileOperationKind fileOperationKind __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// @property (nullable, copy) NSURL *fileURL __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// @property (nullable, copy) NSNumber *fileTotalCount __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((swift_private));
// @property (nullable, copy) NSNumber *fileCompletedCount __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((swift_private));
// - (void)publish __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// - (void)unpublish __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
typedef void (*NSProgressUnpublishingHandler)(void);
typedef _Nullable NSProgressUnpublishingHandler (*NSProgressPublishingHandler)(NSProgress *progress);
// + (id)addSubscriberForFileURL:(NSURL *)url withPublishingHandler:(NSProgressPublishingHandler)publishingHandler __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// + (void)removeSubscriber:(id)subscriber __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// @property (readonly, getter=isOld) BOOL old __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
/* @end */
// @protocol NSProgressReporting <NSObject>
// @property (readonly) NSProgress *progress;
/* @end */
extern "C" NSProgressUserInfoKey const NSProgressEstimatedTimeRemainingKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSProgressUserInfoKey const NSProgressThroughputKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSProgressKind const NSProgressKindFile __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSProgressUserInfoKey const NSProgressFileOperationKindKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSProgressFileOperationKind const NSProgressFileOperationKindDownloading __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSProgressFileOperationKind const NSProgressFileOperationKindDecompressingAfterDownloading __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSProgressFileOperationKind const NSProgressFileOperationKindReceiving __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSProgressFileOperationKind const NSProgressFileOperationKindCopying __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSProgressUserInfoKey const NSProgressFileURLKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSProgressUserInfoKey const NSProgressFileTotalCountKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSProgressUserInfoKey const NSProgressFileCompletedCountKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSProgressUserInfoKey const NSProgressFileAnimationImageKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSProgressUserInfoKey const NSProgressFileAnimationImageOriginalRectKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSProgressUserInfoKey const NSProgressFileIconKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
#pragma clang assume_nonnull end
typedef NSString *NSNotificationName __attribute__((swift_wrapper(struct)));
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
#ifndef _REWRITER_typedef_NSOperationQueue
#define _REWRITER_typedef_NSOperationQueue
typedef struct objc_object NSOperationQueue;
typedef struct {} _objc_exc_NSOperationQueue;
#endif
#pragma clang assume_nonnull begin
#ifndef _REWRITER_typedef_NSNotification
#define _REWRITER_typedef_NSNotification
typedef struct objc_object NSNotification;
typedef struct {} _objc_exc_NSNotification;
#endif
struct NSNotification_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// @property (readonly, copy) NSNotificationName name;
// @property (nullable, readonly, retain) id object;
// @property (nullable, readonly, copy) NSDictionary *userInfo;
// - (instancetype)initWithName:(NSNotificationName)name object:(nullable id)object userInfo:(nullable NSDictionary *)userInfo __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((objc_designated_initializer));
// - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer));
/* @end */
// @interface NSNotification (NSNotificationCreation)
// + (instancetype)notificationWithName:(NSNotificationName)aName object:(nullable id)anObject;
// + (instancetype)notificationWithName:(NSNotificationName)aName object:(nullable id)anObject userInfo:(nullable NSDictionary *)aUserInfo;
// - (instancetype)init ;
/* @end */
#ifndef _REWRITER_typedef_NSNotificationCenter
#define _REWRITER_typedef_NSNotificationCenter
typedef struct objc_object NSNotificationCenter;
typedef struct {} _objc_exc_NSNotificationCenter;
#endif
struct NSNotificationCenter_IMPL {
struct NSObject_IMPL NSObject_IVARS;
void *_impl;
void *_callback;
void *_pad[11];
};
@property (class, readonly, strong) NSNotificationCenter *defaultCenter;
// - (void)addObserver:(id)observer selector:(SEL)aSelector name:(nullable NSNotificationName)aName object:(nullable id)anObject;
// - (void)postNotification:(NSNotification *)notification;
// - (void)postNotificationName:(NSNotificationName)aName object:(nullable id)anObject;
// - (void)postNotificationName:(NSNotificationName)aName object:(nullable id)anObject userInfo:(nullable NSDictionary *)aUserInfo;
// - (void)removeObserver:(id)observer;
// - (void)removeObserver:(id)observer name:(nullable NSNotificationName)aName object:(nullable id)anObject;
// - (id <NSObject>)addObserverForName:(nullable NSNotificationName)name object:(nullable id)obj queue:(nullable NSOperationQueue *)queue usingBlock:(void (^)(NSNotification *note))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
#pragma clang assume_nonnull end
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#ifndef _REWRITER_typedef_NSURL
#define _REWRITER_typedef_NSURL
typedef struct objc_object NSURL;
typedef struct {} _objc_exc_NSURL;
#endif
#ifndef _REWRITER_typedef_NSError
#define _REWRITER_typedef_NSError
typedef struct objc_object NSError;
typedef struct {} _objc_exc_NSError;
#endif
#ifndef _REWRITER_typedef_NSUUID
#define _REWRITER_typedef_NSUUID
typedef struct objc_object NSUUID;
typedef struct {} _objc_exc_NSUUID;
#endif
#ifndef _REWRITER_typedef_NSLock
#define _REWRITER_typedef_NSLock
typedef struct objc_object NSLock;
typedef struct {} _objc_exc_NSLock;
#endif
#ifndef _REWRITER_typedef_NSNumber
#define _REWRITER_typedef_NSNumber
typedef struct objc_object NSNumber;
typedef struct {} _objc_exc_NSNumber;
#endif
#pragma clang assume_nonnull begin
#ifndef _REWRITER_typedef_NSBundle
#define _REWRITER_typedef_NSBundle
typedef struct objc_object NSBundle;
typedef struct {} _objc_exc_NSBundle;
#endif
struct NSBundle_IMPL {
struct NSObject_IMPL NSObject_IVARS;
NSUInteger _flags;
id _cfBundle;
NSUInteger _reserved2;
Class _principalClass;
id _initialPath;
id _resolvedPath;
NSString *_firstClassName;
};
@property (class, readonly, strong) NSBundle *mainBundle;
// + (nullable instancetype)bundleWithPath:(NSString *)path;
// - (nullable instancetype)initWithPath:(NSString *)path __attribute__((objc_designated_initializer));
// + (nullable instancetype)bundleWithURL:(NSURL *)url __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable instancetype)initWithURL:(NSURL *)url __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSBundle *)bundleForClass:(Class)aClass;
// + (nullable NSBundle *)bundleWithIdentifier:(NSString *)identifier;
@property (class, readonly, copy) NSArray<NSBundle *> *allBundles;
@property (class, readonly, copy) NSArray<NSBundle *> *allFrameworks;
// - (BOOL)load;
// @property (readonly, getter=isLoaded) BOOL loaded;
// - (BOOL)unload;
// - (BOOL)preflightAndReturnError:(NSError **)error __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)loadAndReturnError:(NSError **)error __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSURL *bundleURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) NSURL *resourceURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) NSURL *executableURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSURL *)URLForAuxiliaryExecutable:(NSString *)executableName __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) NSURL *privateFrameworksURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) NSURL *sharedFrameworksURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) NSURL *sharedSupportURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) NSURL *builtInPlugInsURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) NSURL *appStoreReceiptURL __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSString *bundlePath;
// @property (nullable, readonly, copy) NSString *resourcePath;
// @property (nullable, readonly, copy) NSString *executablePath;
// - (nullable NSString *)pathForAuxiliaryExecutable:(NSString *)executableName;
// @property (nullable, readonly, copy) NSString *privateFrameworksPath;
// @property (nullable, readonly, copy) NSString *sharedFrameworksPath;
// @property (nullable, readonly, copy) NSString *sharedSupportPath;
// @property (nullable, readonly, copy) NSString *builtInPlugInsPath;
// + (nullable NSURL *)URLForResource:(nullable NSString *)name withExtension:(nullable NSString *)ext subdirectory:(nullable NSString *)subpath inBundleWithURL:(NSURL *)bundleURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (nullable NSArray<NSURL *> *)URLsForResourcesWithExtension:(nullable NSString *)ext subdirectory:(nullable NSString *)subpath inBundleWithURL:(NSURL *)bundleURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSURL *)URLForResource:(nullable NSString *)name withExtension:(nullable NSString *)ext __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSURL *)URLForResource:(nullable NSString *)name withExtension:(nullable NSString *)ext subdirectory:(nullable NSString *)subpath __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSURL *)URLForResource:(nullable NSString *)name withExtension:(nullable NSString *)ext subdirectory:(nullable NSString *)subpath localization:(nullable NSString *)localizationName __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSArray<NSURL *> *)URLsForResourcesWithExtension:(nullable NSString *)ext subdirectory:(nullable NSString *)subpath __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSArray<NSURL *> *)URLsForResourcesWithExtension:(nullable NSString *)ext subdirectory:(nullable NSString *)subpath localization:(nullable NSString *)localizationName __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (nullable NSString *)pathForResource:(nullable NSString *)name ofType:(nullable NSString *)ext inDirectory:(NSString *)bundlePath;
// + (NSArray<NSString *> *)pathsForResourcesOfType:(nullable NSString *)ext inDirectory:(NSString *)bundlePath;
// - (nullable NSString *)pathForResource:(nullable NSString *)name ofType:(nullable NSString *)ext;
// - (nullable NSString *)pathForResource:(nullable NSString *)name ofType:(nullable NSString *)ext inDirectory:(nullable NSString *)subpath;
// - (nullable NSString *)pathForResource:(nullable NSString *)name ofType:(nullable NSString *)ext inDirectory:(nullable NSString *)subpath forLocalization:(nullable NSString *)localizationName;
// - (NSArray<NSString *> *)pathsForResourcesOfType:(nullable NSString *)ext inDirectory:(nullable NSString *)subpath;
// - (NSArray<NSString *> *)pathsForResourcesOfType:(nullable NSString *)ext inDirectory:(nullable NSString *)subpath forLocalization:(nullable NSString *)localizationName;
// - (NSString *)localizedStringForKey:(NSString *)key value:(nullable NSString *)value table:(nullable NSString *)tableName __attribute__ ((format_arg(1)));
// @property (nullable, readonly, copy) NSString *bundleIdentifier;
// @property (nullable, readonly, copy) NSDictionary<NSString *, id> *infoDictionary;
// @property (nullable, readonly, copy) NSDictionary<NSString *, id> *localizedInfoDictionary;
// - (nullable id)objectForInfoDictionaryKey:(NSString *)key;
// - (nullable Class)classNamed:(NSString *)className;
// @property (nullable, readonly) Class principalClass;
// @property (readonly, copy) NSArray<NSString *> *preferredLocalizations;
// @property (readonly, copy) NSArray<NSString *> *localizations;
// @property (nullable, readonly, copy) NSString *developmentLocalization;
// + (NSArray<NSString *> *)preferredLocalizationsFromArray:(NSArray<NSString *> *)localizationsArray;
// + (NSArray<NSString *> *)preferredLocalizationsFromArray:(NSArray<NSString *> *)localizationsArray forPreferences:(nullable NSArray<NSString *> *)preferencesArray;
enum {
NSBundleExecutableArchitectureI386 = 0x00000007,
NSBundleExecutableArchitecturePPC = 0x00000012,
NSBundleExecutableArchitectureX86_64 = 0x01000007,
NSBundleExecutableArchitecturePPC64 = 0x01000012
};
// @property (nullable, readonly, copy) NSArray<NSNumber *> *executableArchitectures __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSString (NSBundleExtensionMethods)
// - (NSString *)variantFittingPresentationWidth:(NSInteger)width __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
extern "C" NSNotificationName const NSBundleDidLoadNotification;
extern "C" NSString * const NSLoadedClasses;
__attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)))
#ifndef _REWRITER_typedef_NSBundleResourceRequest
#define _REWRITER_typedef_NSBundleResourceRequest
typedef struct objc_object NSBundleResourceRequest;
typedef struct {} _objc_exc_NSBundleResourceRequest;
#endif
struct NSBundleResourceRequest_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// - (instancetype)init __attribute__((availability(macos,unavailable))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// - (instancetype)initWithTags:(NSSet<NSString *> *)tags;
// - (instancetype)initWithTags:(NSSet<NSString *> *)tags bundle:(NSBundle *)bundle __attribute__((objc_designated_initializer));
// @property double loadingPriority;
// @property (readonly, copy) NSSet<NSString *> *tags;
// @property (readonly, strong) NSBundle *bundle;
// - (void)beginAccessingResourcesWithCompletionHandler:(void (^)(NSError * _Nullable error))completionHandler;
// - (void)conditionallyBeginAccessingResourcesWithCompletionHandler:(void (^)(BOOL resourcesAvailable))completionHandler;
// - (void)endAccessingResources;
// @property (readonly, strong) NSProgress *progress;
/* @end */
// @interface NSBundle (NSBundleResourceRequestAdditions)
// - (void)setPreservationPriority:(double)priority forTags:(NSSet<NSString *> *)tags __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
// - (double)preservationPriorityForTag:(NSString *)tag __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
/* @end */
extern "C" NSNotificationName const NSBundleResourceRequestLowDiskSpaceNotification __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
extern "C" double const NSBundleResourceRequestLoadingPriorityUrgent __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
#pragma clang assume_nonnull end
enum {
NS_UnknownByteOrder = CFByteOrderUnknown,
NS_LittleEndian = CFByteOrderLittleEndian,
NS_BigEndian = CFByteOrderBigEndian
};
static __inline__ __attribute__((always_inline)) long NSHostByteOrder(void) {
return CFByteOrderGetCurrent();
}
static __inline__ __attribute__((always_inline)) unsigned short NSSwapShort(unsigned short inv) {
return CFSwapInt16(inv);
}
static __inline__ __attribute__((always_inline)) unsigned int NSSwapInt(unsigned int inv) {
return CFSwapInt32(inv);
}
static __inline__ __attribute__((always_inline)) unsigned long NSSwapLong(unsigned long inv) {
return CFSwapInt64(inv);
}
static __inline__ __attribute__((always_inline)) unsigned long long NSSwapLongLong(unsigned long long inv) {
return CFSwapInt64(inv);
}
static __inline__ __attribute__((always_inline)) unsigned short NSSwapBigShortToHost(unsigned short x) {
return CFSwapInt16BigToHost(x);
}
static __inline__ __attribute__((always_inline)) unsigned int NSSwapBigIntToHost(unsigned int x) {
return CFSwapInt32BigToHost(x);
}
static __inline__ __attribute__((always_inline)) unsigned long NSSwapBigLongToHost(unsigned long x) {
return CFSwapInt64BigToHost(x);
}
static __inline__ __attribute__((always_inline)) unsigned long long NSSwapBigLongLongToHost(unsigned long long x) {
return CFSwapInt64BigToHost(x);
}
static __inline__ __attribute__((always_inline)) unsigned short NSSwapHostShortToBig(unsigned short x) {
return CFSwapInt16HostToBig(x);
}
static __inline__ __attribute__((always_inline)) unsigned int NSSwapHostIntToBig(unsigned int x) {
return CFSwapInt32HostToBig(x);
}
static __inline__ __attribute__((always_inline)) unsigned long NSSwapHostLongToBig(unsigned long x) {
return CFSwapInt64HostToBig(x);
}
static __inline__ __attribute__((always_inline)) unsigned long long NSSwapHostLongLongToBig(unsigned long long x) {
return CFSwapInt64HostToBig(x);
}
static __inline__ __attribute__((always_inline)) unsigned short NSSwapLittleShortToHost(unsigned short x) {
return CFSwapInt16LittleToHost(x);
}
static __inline__ __attribute__((always_inline)) unsigned int NSSwapLittleIntToHost(unsigned int x) {
return CFSwapInt32LittleToHost(x);
}
static __inline__ __attribute__((always_inline)) unsigned long NSSwapLittleLongToHost(unsigned long x) {
return CFSwapInt64LittleToHost(x);
}
static __inline__ __attribute__((always_inline)) unsigned long long NSSwapLittleLongLongToHost(unsigned long long x) {
return CFSwapInt64LittleToHost(x);
}
static __inline__ __attribute__((always_inline)) unsigned short NSSwapHostShortToLittle(unsigned short x) {
return CFSwapInt16HostToLittle(x);
}
static __inline__ __attribute__((always_inline)) unsigned int NSSwapHostIntToLittle(unsigned int x) {
return CFSwapInt32HostToLittle(x);
}
static __inline__ __attribute__((always_inline)) unsigned long NSSwapHostLongToLittle(unsigned long x) {
return CFSwapInt64HostToLittle(x);
}
static __inline__ __attribute__((always_inline)) unsigned long long NSSwapHostLongLongToLittle(unsigned long long x) {
return CFSwapInt64HostToLittle(x);
}
typedef struct {unsigned int v;} NSSwappedFloat;
typedef struct {unsigned long long v;} NSSwappedDouble;
static __inline__ __attribute__((always_inline)) NSSwappedFloat NSConvertHostFloatToSwapped(float x) {
union fconv {
float number;
NSSwappedFloat sf;
};
return ((union fconv *)&x)->sf;
}
static __inline__ __attribute__((always_inline)) float NSConvertSwappedFloatToHost(NSSwappedFloat x) {
union fconv {
float number;
NSSwappedFloat sf;
};
return ((union fconv *)&x)->number;
}
static __inline__ __attribute__((always_inline)) NSSwappedDouble NSConvertHostDoubleToSwapped(double x) {
union dconv {
double number;
NSSwappedDouble sd;
};
return ((union dconv *)&x)->sd;
}
static __inline__ __attribute__((always_inline)) double NSConvertSwappedDoubleToHost(NSSwappedDouble x) {
union dconv {
double number;
NSSwappedDouble sd;
};
return ((union dconv *)&x)->number;
}
static __inline__ __attribute__((always_inline)) NSSwappedFloat NSSwapFloat(NSSwappedFloat x) {
x.v = NSSwapInt(x.v);
return x;
}
static __inline__ __attribute__((always_inline)) NSSwappedDouble NSSwapDouble(NSSwappedDouble x) {
x.v = NSSwapLongLong(x.v);
return x;
}
static __inline__ __attribute__((always_inline)) double NSSwapBigDoubleToHost(NSSwappedDouble x) {
return NSConvertSwappedDoubleToHost(NSSwapDouble(x));
}
static __inline__ __attribute__((always_inline)) float NSSwapBigFloatToHost(NSSwappedFloat x) {
return NSConvertSwappedFloatToHost(NSSwapFloat(x));
}
static __inline__ __attribute__((always_inline)) NSSwappedDouble NSSwapHostDoubleToBig(double x) {
return NSSwapDouble(NSConvertHostDoubleToSwapped(x));
}
static __inline__ __attribute__((always_inline)) NSSwappedFloat NSSwapHostFloatToBig(float x) {
return NSSwapFloat(NSConvertHostFloatToSwapped(x));
}
static __inline__ __attribute__((always_inline)) double NSSwapLittleDoubleToHost(NSSwappedDouble x) {
return NSConvertSwappedDoubleToHost(x);
}
static __inline__ __attribute__((always_inline)) float NSSwapLittleFloatToHost(NSSwappedFloat x) {
return NSConvertSwappedFloatToHost(x);
}
static __inline__ __attribute__((always_inline)) NSSwappedDouble NSSwapHostDoubleToLittle(double x) {
return NSConvertHostDoubleToSwapped(x);
}
static __inline__ __attribute__((always_inline)) NSSwappedFloat NSSwapHostFloatToLittle(float x) {
return NSConvertHostFloatToSwapped(x);
}
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#pragma clang assume_nonnull begin
extern "C" NSNotificationName const NSSystemClockDidChangeNotification __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef double NSTimeInterval;
#ifndef _REWRITER_typedef_NSDate
#define _REWRITER_typedef_NSDate
typedef struct objc_object NSDate;
typedef struct {} _objc_exc_NSDate;
#endif
struct NSDate_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// @property (readonly) NSTimeInterval timeIntervalSinceReferenceDate;
// - (instancetype)init __attribute__((objc_designated_initializer));
// - (instancetype)initWithTimeIntervalSinceReferenceDate:(NSTimeInterval)ti __attribute__((objc_designated_initializer));
// - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer));
/* @end */
// @interface NSDate (NSExtendedDate)
// - (NSTimeInterval)timeIntervalSinceDate:(NSDate *)anotherDate;
// @property (readonly) NSTimeInterval timeIntervalSinceNow;
// @property (readonly) NSTimeInterval timeIntervalSince1970;
// - (id)addTimeInterval:(NSTimeInterval)seconds __attribute__((availability(macos,introduced=10.0,deprecated=10.6,message="Use dateByAddingTimeInterval instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=4.0,message="Use dateByAddingTimeInterval instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use dateByAddingTimeInterval instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use dateByAddingTimeInterval instead")));
// - (instancetype)dateByAddingTimeInterval:(NSTimeInterval)ti __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSDate *)earlierDate:(NSDate *)anotherDate;
// - (NSDate *)laterDate:(NSDate *)anotherDate;
// - (NSComparisonResult)compare:(NSDate *)other;
// - (BOOL)isEqualToDate:(NSDate *)otherDate;
// @property (readonly, copy) NSString *description;
// - (NSString *)descriptionWithLocale:(nullable id)locale;
@property (class, readonly) NSTimeInterval timeIntervalSinceReferenceDate;
/* @end */
// @interface NSDate (NSDateCreation)
// + (instancetype)date;
// + (instancetype)dateWithTimeIntervalSinceNow:(NSTimeInterval)secs;
// + (instancetype)dateWithTimeIntervalSinceReferenceDate:(NSTimeInterval)ti;
// + (instancetype)dateWithTimeIntervalSince1970:(NSTimeInterval)secs;
// + (instancetype)dateWithTimeInterval:(NSTimeInterval)secsToBeAdded sinceDate:(NSDate *)date;
@property (class, readonly, copy) NSDate *distantFuture;
@property (class, readonly, copy) NSDate *distantPast;
@property (class, readonly, copy) NSDate *now __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// - (instancetype)initWithTimeIntervalSinceNow:(NSTimeInterval)secs;
// - (instancetype)initWithTimeIntervalSince1970:(NSTimeInterval)secs;
// - (instancetype)initWithTimeInterval:(NSTimeInterval)secsToBeAdded sinceDate:(NSDate *)date;
/* @end */
#pragma clang assume_nonnull end
// @class NSDateComponents;
#ifndef _REWRITER_typedef_NSDateComponents
#define _REWRITER_typedef_NSDateComponents
typedef struct objc_object NSDateComponents;
typedef struct {} _objc_exc_NSDateComponents;
#endif
#ifndef _REWRITER_typedef_NSLocale
#define _REWRITER_typedef_NSLocale
typedef struct objc_object NSLocale;
typedef struct {} _objc_exc_NSLocale;
#endif
#ifndef _REWRITER_typedef_NSTimeZone
#define _REWRITER_typedef_NSTimeZone
typedef struct objc_object NSTimeZone;
typedef struct {} _objc_exc_NSTimeZone;
#endif
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#pragma clang assume_nonnull begin
typedef NSString * NSCalendarIdentifier __attribute__((swift_wrapper(struct)));
extern "C" NSCalendarIdentifier const NSCalendarIdentifierGregorian __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSCalendarIdentifier const NSCalendarIdentifierBuddhist __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSCalendarIdentifier const NSCalendarIdentifierChinese __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSCalendarIdentifier const NSCalendarIdentifierCoptic __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSCalendarIdentifier const NSCalendarIdentifierEthiopicAmeteMihret __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSCalendarIdentifier const NSCalendarIdentifierEthiopicAmeteAlem __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSCalendarIdentifier const NSCalendarIdentifierHebrew __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSCalendarIdentifier const NSCalendarIdentifierISO8601 __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSCalendarIdentifier const NSCalendarIdentifierIndian __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSCalendarIdentifier const NSCalendarIdentifierIslamic __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSCalendarIdentifier const NSCalendarIdentifierIslamicCivil __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSCalendarIdentifier const NSCalendarIdentifierJapanese __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSCalendarIdentifier const NSCalendarIdentifierPersian __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSCalendarIdentifier const NSCalendarIdentifierRepublicOfChina __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSCalendarIdentifier const NSCalendarIdentifierIslamicTabular __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSCalendarIdentifier const NSCalendarIdentifierIslamicUmmAlQura __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef NSUInteger NSCalendarUnit; enum {
NSCalendarUnitEra = kCFCalendarUnitEra,
NSCalendarUnitYear = kCFCalendarUnitYear,
NSCalendarUnitMonth = kCFCalendarUnitMonth,
NSCalendarUnitDay = kCFCalendarUnitDay,
NSCalendarUnitHour = kCFCalendarUnitHour,
NSCalendarUnitMinute = kCFCalendarUnitMinute,
NSCalendarUnitSecond = kCFCalendarUnitSecond,
NSCalendarUnitWeekday = kCFCalendarUnitWeekday,
NSCalendarUnitWeekdayOrdinal = kCFCalendarUnitWeekdayOrdinal,
NSCalendarUnitQuarter __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = kCFCalendarUnitQuarter,
NSCalendarUnitWeekOfMonth __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = kCFCalendarUnitWeekOfMonth,
NSCalendarUnitWeekOfYear __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = kCFCalendarUnitWeekOfYear,
NSCalendarUnitYearForWeekOfYear __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = kCFCalendarUnitYearForWeekOfYear,
NSCalendarUnitNanosecond __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1 << 15),
NSCalendarUnitCalendar __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1 << 20),
NSCalendarUnitTimeZone __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1 << 21),
NSEraCalendarUnit __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarUnitEra"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarUnitEra"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarUnitEra"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarUnitEra"))) = NSCalendarUnitEra,
NSYearCalendarUnit __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarUnitYear"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarUnitYear"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarUnitYear"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarUnitYear"))) = NSCalendarUnitYear,
NSMonthCalendarUnit __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarUnitMonth"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarUnitMonth"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarUnitMonth"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarUnitMonth"))) = NSCalendarUnitMonth,
NSDayCalendarUnit __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarUnitDay"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarUnitDay"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarUnitDay"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarUnitDay"))) = NSCalendarUnitDay,
NSHourCalendarUnit __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarUnitHour"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarUnitHour"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarUnitHour"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarUnitHour"))) = NSCalendarUnitHour,
NSMinuteCalendarUnit __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarUnitMinute"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarUnitMinute"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarUnitMinute"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarUnitMinute"))) = NSCalendarUnitMinute,
NSSecondCalendarUnit __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarUnitSecond"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarUnitSecond"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarUnitSecond"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarUnitSecond"))) = NSCalendarUnitSecond,
NSWeekCalendarUnit __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="NSCalendarUnitWeekOfMonth or NSCalendarUnitWeekOfYear, depending on which you mean"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="NSCalendarUnitWeekOfMonth or NSCalendarUnitWeekOfYear, depending on which you mean"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="NSCalendarUnitWeekOfMonth or NSCalendarUnitWeekOfYear, depending on which you mean"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="NSCalendarUnitWeekOfMonth or NSCalendarUnitWeekOfYear, depending on which you mean"))) = kCFCalendarUnitWeek,
NSWeekdayCalendarUnit __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarUnitWeekday"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarUnitWeekday"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarUnitWeekday"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarUnitWeekday"))) = NSCalendarUnitWeekday,
NSWeekdayOrdinalCalendarUnit __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarUnitWeekdayOrdinal"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarUnitWeekdayOrdinal"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarUnitWeekdayOrdinal"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarUnitWeekdayOrdinal"))) = NSCalendarUnitWeekdayOrdinal,
NSQuarterCalendarUnit __attribute__((availability(macos,introduced=10.6,deprecated=10.10,replacement="NSCalendarUnitQuarter"))) __attribute__((availability(ios,introduced=4.0,deprecated=8.0,replacement="NSCalendarUnitQuarter"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarUnitQuarter"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarUnitQuarter"))) = NSCalendarUnitQuarter,
NSWeekOfMonthCalendarUnit __attribute__((availability(macos,introduced=10.7,deprecated=10.10,replacement="NSCalendarUnitWeekOfMonth"))) __attribute__((availability(ios,introduced=5.0,deprecated=8.0,replacement="NSCalendarUnitWeekOfMonth"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarUnitWeekOfMonth"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarUnitWeekOfMonth"))) = NSCalendarUnitWeekOfMonth,
NSWeekOfYearCalendarUnit __attribute__((availability(macos,introduced=10.7,deprecated=10.10,replacement="NSCalendarUnitWeekOfYear"))) __attribute__((availability(ios,introduced=5.0,deprecated=8.0,replacement="NSCalendarUnitWeekOfYear"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarUnitWeekOfYear"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarUnitWeekOfYear"))) = NSCalendarUnitWeekOfYear,
NSYearForWeekOfYearCalendarUnit __attribute__((availability(macos,introduced=10.7,deprecated=10.10,replacement="NSCalendarUnitYearForWeekOfYear"))) __attribute__((availability(ios,introduced=5.0,deprecated=8.0,replacement="NSCalendarUnitYearForWeekOfYear"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarUnitYearForWeekOfYear"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarUnitYearForWeekOfYear"))) = NSCalendarUnitYearForWeekOfYear,
NSCalendarCalendarUnit __attribute__((availability(macos,introduced=10.7,deprecated=10.10,replacement="NSCalendarUnitCalendar"))) __attribute__((availability(ios,introduced=4.0,deprecated=8.0,replacement="NSCalendarUnitCalendar"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarUnitCalendar"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarUnitCalendar"))) = NSCalendarUnitCalendar,
NSTimeZoneCalendarUnit __attribute__((availability(macos,introduced=10.7,deprecated=10.10,replacement="NSCalendarUnitTimeZone"))) __attribute__((availability(ios,introduced=4.0,deprecated=8.0,replacement="NSCalendarUnitTimeZone"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarUnitTimeZone"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarUnitTimeZone"))) = NSCalendarUnitTimeZone,
};
typedef NSUInteger NSCalendarOptions; enum {
NSCalendarWrapComponents = (1UL << 0),
NSCalendarMatchStrictly __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1ULL << 1),
NSCalendarSearchBackwards __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1ULL << 2),
NSCalendarMatchPreviousTimePreservingSmallerUnits __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1ULL << 8),
NSCalendarMatchNextTimePreservingSmallerUnits __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1ULL << 9),
NSCalendarMatchNextTime __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1ULL << 10),
NSCalendarMatchFirst __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1ULL << 12),
NSCalendarMatchLast __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1ULL << 13)
};
enum {
NSWrapCalendarComponents __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarWrapComponents"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarWrapComponents"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarWrapComponents"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarWrapComponents"))) = NSCalendarWrapComponents,
};
#ifndef _REWRITER_typedef_NSCalendar
#define _REWRITER_typedef_NSCalendar
typedef struct objc_object NSCalendar;
typedef struct {} _objc_exc_NSCalendar;
#endif
struct NSCalendar_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
@property (class, readonly, copy) NSCalendar *currentCalendar;
@property (class, readonly, strong) NSCalendar *autoupdatingCurrentCalendar __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (nullable NSCalendar *)calendarWithIdentifier:(NSCalendarIdentifier)calendarIdentifierConstant __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (instancetype)init __attribute__((availability(macos,unavailable))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// - (nullable id)initWithCalendarIdentifier:(NSCalendarIdentifier)ident __attribute__((objc_designated_initializer));
// @property (readonly, copy) NSCalendarIdentifier calendarIdentifier;
// @property (nullable, copy) NSLocale *locale;
// @property (copy) NSTimeZone *timeZone;
// @property NSUInteger firstWeekday;
// @property NSUInteger minimumDaysInFirstWeek;
// @property (readonly, copy) NSArray<NSString *> *eraSymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSArray<NSString *> *longEraSymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSArray<NSString *> *monthSymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSArray<NSString *> *shortMonthSymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSArray<NSString *> *veryShortMonthSymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSArray<NSString *> *standaloneMonthSymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSArray<NSString *> *shortStandaloneMonthSymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSArray<NSString *> *veryShortStandaloneMonthSymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSArray<NSString *> *weekdaySymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSArray<NSString *> *shortWeekdaySymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSArray<NSString *> *veryShortWeekdaySymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSArray<NSString *> *standaloneWeekdaySymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSArray<NSString *> *shortStandaloneWeekdaySymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSArray<NSString *> *veryShortStandaloneWeekdaySymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSArray<NSString *> *quarterSymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSArray<NSString *> *shortQuarterSymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSArray<NSString *> *standaloneQuarterSymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSArray<NSString *> *shortStandaloneQuarterSymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSString *AMSymbol __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSString *PMSymbol __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSRange)minimumRangeOfUnit:(NSCalendarUnit)unit;
// - (NSRange)maximumRangeOfUnit:(NSCalendarUnit)unit;
// - (NSRange)rangeOfUnit:(NSCalendarUnit)smaller inUnit:(NSCalendarUnit)larger forDate:(NSDate *)date;
// - (NSUInteger)ordinalityOfUnit:(NSCalendarUnit)smaller inUnit:(NSCalendarUnit)larger forDate:(NSDate *)date;
// - (BOOL)rangeOfUnit:(NSCalendarUnit)unit startDate:(NSDate * _Nullable * _Nullable)datep interval:(nullable NSTimeInterval *)tip forDate:(NSDate *)date __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSDate *)dateFromComponents:(NSDateComponents *)comps;
// - (NSDateComponents *)components:(NSCalendarUnit)unitFlags fromDate:(NSDate *)date;
// - (nullable NSDate *)dateByAddingComponents:(NSDateComponents *)comps toDate:(NSDate *)date options:(NSCalendarOptions)opts;
// - (NSDateComponents *)components:(NSCalendarUnit)unitFlags fromDate:(NSDate *)startingDate toDate:(NSDate *)resultDate options:(NSCalendarOptions)opts;
// - (void)getEra:(out nullable NSInteger *)eraValuePointer year:(out nullable NSInteger *)yearValuePointer month:(out nullable NSInteger *)monthValuePointer day:(out nullable NSInteger *)dayValuePointer fromDate:(NSDate *)date __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)getEra:(out nullable NSInteger *)eraValuePointer yearForWeekOfYear:(out nullable NSInteger *)yearValuePointer weekOfYear:(out nullable NSInteger *)weekValuePointer weekday:(out nullable NSInteger *)weekdayValuePointer fromDate:(NSDate *)date __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)getHour:(out nullable NSInteger *)hourValuePointer minute:(out nullable NSInteger *)minuteValuePointer second:(out nullable NSInteger *)secondValuePointer nanosecond:(out nullable NSInteger *)nanosecondValuePointer fromDate:(NSDate *)date __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSInteger)component:(NSCalendarUnit)unit fromDate:(NSDate *)date __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSDate *)dateWithEra:(NSInteger)eraValue year:(NSInteger)yearValue month:(NSInteger)monthValue day:(NSInteger)dayValue hour:(NSInteger)hourValue minute:(NSInteger)minuteValue second:(NSInteger)secondValue nanosecond:(NSInteger)nanosecondValue __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSDate *)dateWithEra:(NSInteger)eraValue yearForWeekOfYear:(NSInteger)yearValue weekOfYear:(NSInteger)weekValue weekday:(NSInteger)weekdayValue hour:(NSInteger)hourValue minute:(NSInteger)minuteValue second:(NSInteger)secondValue nanosecond:(NSInteger)nanosecondValue __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSDate *)startOfDayForDate:(NSDate *)date __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSDateComponents *)componentsInTimeZone:(NSTimeZone *)timezone fromDate:(NSDate *)date __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSComparisonResult)compareDate:(NSDate *)date1 toDate:(NSDate *)date2 toUnitGranularity:(NSCalendarUnit)unit __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)isDate:(NSDate *)date1 equalToDate:(NSDate *)date2 toUnitGranularity:(NSCalendarUnit)unit __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)isDate:(NSDate *)date1 inSameDayAsDate:(NSDate *)date2 __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)isDateInToday:(NSDate *)date __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)isDateInYesterday:(NSDate *)date __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)isDateInTomorrow:(NSDate *)date __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)isDateInWeekend:(NSDate *)date __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)rangeOfWeekendStartDate:(out NSDate * _Nullable * _Nullable)datep interval:(out nullable NSTimeInterval *)tip containingDate:(NSDate *)date __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)nextWeekendStartDate:(out NSDate * _Nullable * _Nullable)datep interval:(out nullable NSTimeInterval *)tip options:(NSCalendarOptions)options afterDate:(NSDate *)date __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSDateComponents *)components:(NSCalendarUnit)unitFlags fromDateComponents:(NSDateComponents *)startingDateComp toDateComponents:(NSDateComponents *)resultDateComp options:(NSCalendarOptions)options __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSDate *)dateByAddingUnit:(NSCalendarUnit)unit value:(NSInteger)value toDate:(NSDate *)date options:(NSCalendarOptions)options __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)enumerateDatesStartingAfterDate:(NSDate *)start matchingComponents:(NSDateComponents *)comps options:(NSCalendarOptions)opts usingBlock:(void (__attribute__((noescape)) ^)(NSDate * _Nullable date, BOOL exactMatch, BOOL *stop))block __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSDate *)nextDateAfterDate:(NSDate *)date matchingComponents:(NSDateComponents *)comps options:(NSCalendarOptions)options __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSDate *)nextDateAfterDate:(NSDate *)date matchingUnit:(NSCalendarUnit)unit value:(NSInteger)value options:(NSCalendarOptions)options __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSDate *)nextDateAfterDate:(NSDate *)date matchingHour:(NSInteger)hourValue minute:(NSInteger)minuteValue second:(NSInteger)secondValue options:(NSCalendarOptions)options __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSDate *)dateBySettingUnit:(NSCalendarUnit)unit value:(NSInteger)v ofDate:(NSDate *)date options:(NSCalendarOptions)opts __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSDate *)dateBySettingHour:(NSInteger)h minute:(NSInteger)m second:(NSInteger)s ofDate:(NSDate *)date options:(NSCalendarOptions)opts __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)date:(NSDate *)date matchesComponents:(NSDateComponents *)components __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
extern "C" NSNotificationName const NSCalendarDayChangedNotification __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
enum {
NSDateComponentUndefined = 9223372036854775807L,
NSUndefinedDateComponent __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSDateComponentUndefined"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSDateComponentUndefined"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSDateComponentUndefined"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSDateComponentUndefined"))) = NSDateComponentUndefined
};
#ifndef _REWRITER_typedef_NSDateComponents
#define _REWRITER_typedef_NSDateComponents
typedef struct objc_object NSDateComponents;
typedef struct {} _objc_exc_NSDateComponents;
#endif
struct NSDateComponents_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// @property (nullable, copy) NSCalendar *calendar __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, copy) NSTimeZone *timeZone __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property NSInteger era;
// @property NSInteger year;
// @property NSInteger month;
// @property NSInteger day;
// @property NSInteger hour;
// @property NSInteger minute;
// @property NSInteger second;
// @property NSInteger nanosecond __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property NSInteger weekday;
// @property NSInteger weekdayOrdinal;
// @property NSInteger quarter __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property NSInteger weekOfMonth __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property NSInteger weekOfYear __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property NSInteger yearForWeekOfYear __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (getter=isLeapMonth) BOOL leapMonth __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) NSDate *date __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSInteger)week __attribute__((availability(macos,introduced=10.4,deprecated=10.9,message="Use -weekOfMonth or -weekOfYear, depending on which you mean"))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Use -weekOfMonth or -weekOfYear, depending on which you mean"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -weekOfMonth or -weekOfYear, depending on which you mean"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -weekOfMonth or -weekOfYear, depending on which you mean")));
// - (void)setWeek:(NSInteger)v __attribute__((availability(macos,introduced=10.4,deprecated=10.9,message="Use -setWeekOfMonth: or -setWeekOfYear:, depending on which you mean"))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Use -setWeekOfMonth: or -setWeekOfYear:, depending on which you mean"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -setWeekOfMonth: or -setWeekOfYear:, depending on which you mean"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -setWeekOfMonth: or -setWeekOfYear:, depending on which you mean")));
// - (void)setValue:(NSInteger)value forComponent:(NSCalendarUnit)unit __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSInteger)valueForComponent:(NSCalendarUnit)unit __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (getter=isValidDate, readonly) BOOL validDate __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)isValidDateInCalendar:(NSCalendar *)calendar __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
#pragma clang assume_nonnull end
// @class NSData;
#ifndef _REWRITER_typedef_NSData
#define _REWRITER_typedef_NSData
typedef struct objc_object NSData;
typedef struct {} _objc_exc_NSData;
#endif
#pragma clang assume_nonnull begin
enum {
NSOpenStepUnicodeReservedBase = 0xF400
};
#ifndef _REWRITER_typedef_NSCharacterSet
#define _REWRITER_typedef_NSCharacterSet
typedef struct objc_object NSCharacterSet;
typedef struct {} _objc_exc_NSCharacterSet;
#endif
struct NSCharacterSet_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
@property (readonly, class, copy) NSCharacterSet *controlCharacterSet;
@property (readonly, class, copy) NSCharacterSet *whitespaceCharacterSet;
@property (readonly, class, copy) NSCharacterSet *whitespaceAndNewlineCharacterSet;
@property (readonly, class, copy) NSCharacterSet *decimalDigitCharacterSet;
@property (readonly, class, copy) NSCharacterSet *letterCharacterSet;
@property (readonly, class, copy) NSCharacterSet *lowercaseLetterCharacterSet;
@property (readonly, class, copy) NSCharacterSet *uppercaseLetterCharacterSet;
@property (readonly, class, copy) NSCharacterSet *nonBaseCharacterSet;
@property (readonly, class, copy) NSCharacterSet *alphanumericCharacterSet;
@property (readonly, class, copy) NSCharacterSet *decomposableCharacterSet;
@property (readonly, class, copy) NSCharacterSet *illegalCharacterSet;
@property (readonly, class, copy) NSCharacterSet *punctuationCharacterSet;
@property (readonly, class, copy) NSCharacterSet *capitalizedLetterCharacterSet;
@property (readonly, class, copy) NSCharacterSet *symbolCharacterSet;
@property (readonly, class, copy) NSCharacterSet *newlineCharacterSet __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSCharacterSet *)characterSetWithRange:(NSRange)aRange;
// + (NSCharacterSet *)characterSetWithCharactersInString:(NSString *)aString;
// + (NSCharacterSet *)characterSetWithBitmapRepresentation:(NSData *)data;
// + (nullable NSCharacterSet *)characterSetWithContentsOfFile:(NSString *)fName;
// - (instancetype) initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer));
// - (BOOL)characterIsMember:(unichar)aCharacter;
// @property (readonly, copy) NSData *bitmapRepresentation;
// @property (readonly, copy) NSCharacterSet *invertedSet;
// - (BOOL)longCharacterIsMember:(UTF32Char)theLongChar;
// - (BOOL)isSupersetOfSet:(NSCharacterSet *)theOtherSet;
// - (BOOL)hasMemberInPlane:(uint8_t)thePlane;
/* @end */
#ifndef _REWRITER_typedef_NSMutableCharacterSet
#define _REWRITER_typedef_NSMutableCharacterSet
typedef struct objc_object NSMutableCharacterSet;
typedef struct {} _objc_exc_NSMutableCharacterSet;
#endif
struct NSMutableCharacterSet_IMPL {
struct NSCharacterSet_IMPL NSCharacterSet_IVARS;
};
// - (void)addCharactersInRange:(NSRange)aRange;
// - (void)removeCharactersInRange:(NSRange)aRange;
// - (void)addCharactersInString:(NSString *)aString;
// - (void)removeCharactersInString:(NSString *)aString;
// - (void)formUnionWithCharacterSet:(NSCharacterSet *)otherSet;
// - (void)formIntersectionWithCharacterSet:(NSCharacterSet *)otherSet;
// - (void)invert;
// + (NSMutableCharacterSet *)controlCharacterSet;
// + (NSMutableCharacterSet *)whitespaceCharacterSet;
// + (NSMutableCharacterSet *)whitespaceAndNewlineCharacterSet;
// + (NSMutableCharacterSet *)decimalDigitCharacterSet;
// + (NSMutableCharacterSet *)letterCharacterSet;
// + (NSMutableCharacterSet *)lowercaseLetterCharacterSet;
// + (NSMutableCharacterSet *)uppercaseLetterCharacterSet;
// + (NSMutableCharacterSet *)nonBaseCharacterSet;
// + (NSMutableCharacterSet *)alphanumericCharacterSet;
// + (NSMutableCharacterSet *)decomposableCharacterSet;
// + (NSMutableCharacterSet *)illegalCharacterSet;
// + (NSMutableCharacterSet *)punctuationCharacterSet;
// + (NSMutableCharacterSet *)capitalizedLetterCharacterSet;
// + (NSMutableCharacterSet *)symbolCharacterSet;
// + (NSMutableCharacterSet *)newlineCharacterSet __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSMutableCharacterSet *)characterSetWithRange:(NSRange)aRange;
// + (NSMutableCharacterSet *)characterSetWithCharactersInString:(NSString *)aString;
// + (NSMutableCharacterSet *)characterSetWithBitmapRepresentation:(NSData *)data;
// + (nullable NSMutableCharacterSet *)characterSetWithContentsOfFile:(NSString *)fName;
/* @end */
#pragma clang assume_nonnull end
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#ifndef _REWRITER_typedef_NSData
#define _REWRITER_typedef_NSData
typedef struct objc_object NSData;
typedef struct {} _objc_exc_NSData;
#endif
#ifndef _REWRITER_typedef_NSSet
#define _REWRITER_typedef_NSSet
typedef struct objc_object NSSet;
typedef struct {} _objc_exc_NSSet;
#endif
#pragma clang assume_nonnull begin
typedef NSInteger NSDecodingFailurePolicy; enum {
NSDecodingFailurePolicyRaiseException,
NSDecodingFailurePolicySetErrorAndReturn,
} __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
#ifndef _REWRITER_typedef_NSCoder
#define _REWRITER_typedef_NSCoder
typedef struct objc_object NSCoder;
typedef struct {} _objc_exc_NSCoder;
#endif
struct NSCoder_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// - (void)encodeValueOfObjCType:(const char *)type at:(const void *)addr;
// - (void)encodeDataObject:(NSData *)data;
// - (nullable NSData *)decodeDataObject;
// - (void)decodeValueOfObjCType:(const char *)type at:(void *)data size:(NSUInteger)size __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// - (NSInteger)versionForClassName:(NSString *)className;
/* @end */
// @interface NSCoder (NSExtendedCoder)
// - (void)encodeObject:(nullable id)object;
// - (void)encodeRootObject:(id)rootObject;
// - (void)encodeBycopyObject:(nullable id)anObject;
// - (void)encodeByrefObject:(nullable id)anObject;
// - (void)encodeConditionalObject:(nullable id)object;
// - (void)encodeValuesOfObjCTypes:(const char *)types, ...;
// - (void)encodeArrayOfObjCType:(const char *)type count:(NSUInteger)count at:(const void *)array;
// - (void)encodeBytes:(nullable const void *)byteaddr length:(NSUInteger)length;
// - (nullable id)decodeObject;
// - (nullable id)decodeTopLevelObjectAndReturnError:(NSError **)error __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(swift, unavailable, message="Use 'decodeTopLevelObject() throws' instead")));
// - (void)decodeValuesOfObjCTypes:(const char *)types, ...;
// - (void)decodeArrayOfObjCType:(const char *)itemType count:(NSUInteger)count at:(void *)array;
// - (nullable void *)decodeBytesWithReturnedLength:(NSUInteger *)lengthp __attribute__((objc_returns_inner_pointer));
// - (void)setObjectZone:(nullable NSZone *)zone ;
// - (nullable NSZone *)objectZone ;
// @property (readonly) unsigned int systemVersion;
// @property (readonly) BOOL allowsKeyedCoding;
// - (void)encodeObject:(nullable id)object forKey:(NSString *)key;
// - (void)encodeConditionalObject:(nullable id)object forKey:(NSString *)key;
// - (void)encodeBool:(BOOL)value forKey:(NSString *)key;
// - (void)encodeInt:(int)value forKey:(NSString *)key;
// - (void)encodeInt32:(int32_t)value forKey:(NSString *)key;
// - (void)encodeInt64:(int64_t)value forKey:(NSString *)key;
// - (void)encodeFloat:(float)value forKey:(NSString *)key;
// - (void)encodeDouble:(double)value forKey:(NSString *)key;
// - (void)encodeBytes:(nullable const uint8_t *)bytes length:(NSUInteger)length forKey:(NSString *)key;
// - (BOOL)containsValueForKey:(NSString *)key;
// - (nullable id)decodeObjectForKey:(NSString *)key;
// - (nullable id)decodeTopLevelObjectForKey:(NSString *)key error:(NSError **)error __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(swift, unavailable, message="Use 'decodeObjectForKey(_:) throws' instead")));
// - (BOOL)decodeBoolForKey:(NSString *)key;
// - (int)decodeIntForKey:(NSString *)key;
// - (int32_t)decodeInt32ForKey:(NSString *)key;
// - (int64_t)decodeInt64ForKey:(NSString *)key;
// - (float)decodeFloatForKey:(NSString *)key;
// - (double)decodeDoubleForKey:(NSString *)key;
// - (nullable const uint8_t *)decodeBytesForKey:(NSString *)key returnedLength:(nullable NSUInteger *)lengthp __attribute__((objc_returns_inner_pointer));
// - (void)encodeInteger:(NSInteger)value forKey:(NSString *)key __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSInteger)decodeIntegerForKey:(NSString *)key __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly) BOOL requiresSecureCoding __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable id)decodeObjectOfClass:(Class)aClass forKey:(NSString *)key __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable id)decodeTopLevelObjectOfClass:(Class)aClass forKey:(NSString *)key error:(NSError **)error __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(swift, unavailable, message="Use 'decodeTopLevelObjectOfClass(_:,forKey:) throws' instead")));
// - (nullable id)decodeObjectOfClasses:(nullable NSSet<Class> *)classes forKey:(NSString *)key __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((swift_private));
// - (nullable id)decodeTopLevelObjectOfClasses:(nullable NSSet<Class> *)classes forKey:(NSString *)key error:(NSError **)error __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(swift, unavailable, message="Use 'decodeObjectOfClasses(_:,forKey:) throws' instead")));
// - (nullable id)decodePropertyListForKey:(NSString *)key __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) NSSet<Class> *allowedClasses __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)failWithError:(NSError *)error __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly) NSDecodingFailurePolicy decodingFailurePolicy __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) NSError *error __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSCoder(NSDeprecated)
// - (void)decodeValueOfObjCType:(const char *)type at:(void *)data __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="decodeValueOfObjCType:at:size:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="decodeValueOfObjCType:at:size:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="decodeValueOfObjCType:at:size:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="decodeValueOfObjCType:at:size:")));
/* @end */
#pragma clang assume_nonnull end
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#ifndef _REWRITER_typedef_NSURL
#define _REWRITER_typedef_NSURL
typedef struct objc_object NSURL;
typedef struct {} _objc_exc_NSURL;
#endif
#ifndef _REWRITER_typedef_NSError
#define _REWRITER_typedef_NSError
typedef struct objc_object NSError;
typedef struct {} _objc_exc_NSError;
#endif
#pragma clang assume_nonnull begin
typedef NSUInteger NSDataReadingOptions; enum {
NSDataReadingMappedIfSafe = 1UL << 0,
NSDataReadingUncached = 1UL << 1,
NSDataReadingMappedAlways __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 1UL << 3,
NSDataReadingMapped __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="NSDataReadingMappedIfSafe"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="NSDataReadingMappedIfSafe"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="NSDataReadingMappedIfSafe"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="NSDataReadingMappedIfSafe"))) = NSDataReadingMappedIfSafe,
NSMappedRead __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="NSDataReadingMapped"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="NSDataReadingMapped"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="NSDataReadingMapped"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="NSDataReadingMapped"))) = NSDataReadingMapped,
NSUncachedRead __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="NSDataReadingUncached"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="NSDataReadingUncached"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="NSDataReadingUncached"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="NSDataReadingUncached"))) = NSDataReadingUncached
};
typedef NSUInteger NSDataWritingOptions; enum {
NSDataWritingAtomic = 1UL << 0,
NSDataWritingWithoutOverwriting __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 1UL << 1,
NSDataWritingFileProtectionNone __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))) = 0x10000000,
NSDataWritingFileProtectionComplete __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))) = 0x20000000,
NSDataWritingFileProtectionCompleteUnlessOpen __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))) = 0x30000000,
NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))) = 0x40000000,
NSDataWritingFileProtectionMask __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))) = 0xf0000000,
NSAtomicWrite __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="NSDataWritingAtomic"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="NSDataWritingAtomic"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="NSDataWritingAtomic"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="NSDataWritingAtomic"))) = NSDataWritingAtomic
};
typedef NSUInteger NSDataSearchOptions; enum {
NSDataSearchBackwards = 1UL << 0,
NSDataSearchAnchored = 1UL << 1
} __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef NSUInteger NSDataBase64EncodingOptions; enum {
NSDataBase64Encoding64CharacterLineLength = 1UL << 0,
NSDataBase64Encoding76CharacterLineLength = 1UL << 1,
NSDataBase64EncodingEndLineWithCarriageReturn = 1UL << 4,
NSDataBase64EncodingEndLineWithLineFeed = 1UL << 5,
} __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef NSUInteger NSDataBase64DecodingOptions; enum {
NSDataBase64DecodingIgnoreUnknownCharacters = 1UL << 0
} __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
#ifndef _REWRITER_typedef_NSData
#define _REWRITER_typedef_NSData
typedef struct objc_object NSData;
typedef struct {} _objc_exc_NSData;
#endif
struct NSData_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// @property (readonly) NSUInteger length;
// @property (readonly) const void *bytes __attribute__((objc_returns_inner_pointer));
/* @end */
// @interface NSData (NSExtendedData)
// @property (readonly, copy) NSString *description;
// - (void)getBytes:(void *)buffer length:(NSUInteger)length;
// - (void)getBytes:(void *)buffer range:(NSRange)range;
// - (BOOL)isEqualToData:(NSData *)other;
// - (NSData *)subdataWithRange:(NSRange)range;
// - (BOOL)writeToFile:(NSString *)path atomically:(BOOL)useAuxiliaryFile;
// - (BOOL)writeToURL:(NSURL *)url atomically:(BOOL)atomically;
// - (BOOL)writeToFile:(NSString *)path options:(NSDataWritingOptions)writeOptionsMask error:(NSError **)errorPtr;
// - (BOOL)writeToURL:(NSURL *)url options:(NSDataWritingOptions)writeOptionsMask error:(NSError **)errorPtr;
// - (NSRange)rangeOfData:(NSData *)dataToFind options:(NSDataSearchOptions)mask range:(NSRange)searchRange __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void) enumerateByteRangesUsingBlock:(void (__attribute__((noescape)) ^)(const void *bytes, NSRange byteRange, BOOL *stop))block __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSData (NSDataCreation)
// + (instancetype)data;
// + (instancetype)dataWithBytes:(nullable const void *)bytes length:(NSUInteger)length;
// + (instancetype)dataWithBytesNoCopy:(void *)bytes length:(NSUInteger)length;
// + (instancetype)dataWithBytesNoCopy:(void *)bytes length:(NSUInteger)length freeWhenDone:(BOOL)b;
// + (nullable instancetype)dataWithContentsOfFile:(NSString *)path options:(NSDataReadingOptions)readOptionsMask error:(NSError **)errorPtr;
// + (nullable instancetype)dataWithContentsOfURL:(NSURL *)url options:(NSDataReadingOptions)readOptionsMask error:(NSError **)errorPtr;
// + (nullable instancetype)dataWithContentsOfFile:(NSString *)path;
// + (nullable instancetype)dataWithContentsOfURL:(NSURL *)url;
// - (instancetype)initWithBytes:(nullable const void *)bytes length:(NSUInteger)length;
// - (instancetype)initWithBytesNoCopy:(void *)bytes length:(NSUInteger)length;
// - (instancetype)initWithBytesNoCopy:(void *)bytes length:(NSUInteger)length freeWhenDone:(BOOL)b;
// - (instancetype)initWithBytesNoCopy:(void *)bytes length:(NSUInteger)length deallocator:(nullable void (^)(void *bytes, NSUInteger length))deallocator __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable instancetype)initWithContentsOfFile:(NSString *)path options:(NSDataReadingOptions)readOptionsMask error:(NSError **)errorPtr;
// - (nullable instancetype)initWithContentsOfURL:(NSURL *)url options:(NSDataReadingOptions)readOptionsMask error:(NSError **)errorPtr;
// - (nullable instancetype)initWithContentsOfFile:(NSString *)path;
// - (nullable instancetype)initWithContentsOfURL:(NSURL *)url;
// - (instancetype)initWithData:(NSData *)data;
// + (instancetype)dataWithData:(NSData *)data;
/* @end */
// @interface NSData (NSDataBase64Encoding)
// - (nullable instancetype)initWithBase64EncodedString:(NSString *)base64String options:(NSDataBase64DecodingOptions)options __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSString *)base64EncodedStringWithOptions:(NSDataBase64EncodingOptions)options __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable instancetype)initWithBase64EncodedData:(NSData *)base64Data options:(NSDataBase64DecodingOptions)options __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSData *)base64EncodedDataWithOptions:(NSDataBase64EncodingOptions)options __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
typedef NSInteger NSDataCompressionAlgorithm; enum {
NSDataCompressionAlgorithmLZFSE = 0,
NSDataCompressionAlgorithmLZ4,
NSDataCompressionAlgorithmLZMA,
NSDataCompressionAlgorithmZlib,
} __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// @interface NSData (NSDataCompression)
// - (nullable instancetype)decompressedDataUsingAlgorithm:(NSDataCompressionAlgorithm)algorithm error:(NSError **)error __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// - (nullable instancetype)compressedDataUsingAlgorithm:(NSDataCompressionAlgorithm)algorithm error:(NSError **)error __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
/* @end */
// @interface NSData (NSDeprecated)
// - (void)getBytes:(void *)buffer __attribute__((availability(macos,introduced=10.0,deprecated=10.10,message="This method is unsafe because it could potentially cause buffer overruns. Use -getBytes:length: instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="This method is unsafe because it could potentially cause buffer overruns. Use -getBytes:length: instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="This method is unsafe because it could potentially cause buffer overruns. Use -getBytes:length: instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="This method is unsafe because it could potentially cause buffer overruns. Use -getBytes:length: instead.")));
// + (nullable id)dataWithContentsOfMappedFile:(NSString *)path __attribute__((availability(macos,introduced=10.0,deprecated=10.10,message="Use +dataWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use +dataWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use +dataWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use +dataWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead.")));
// - (nullable id)initWithContentsOfMappedFile:(NSString *)path __attribute__((availability(macos,introduced=10.0,deprecated=10.10,message="Use -initWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use -initWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -initWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -initWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead.")));
// - (nullable id)initWithBase64Encoding:(NSString *)base64String __attribute__((availability(macos,introduced=10.6,deprecated=10.9,message="Use initWithBase64EncodedString instead"))) __attribute__((availability(ios,introduced=4.0,deprecated=7.0,message="Use initWithBase64EncodedString instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use initWithBase64EncodedString instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use initWithBase64EncodedString instead")));
// - (NSString *)base64Encoding __attribute__((availability(macos,introduced=10.6,deprecated=10.9,message="Use base64EncodedStringWithOptions instead"))) __attribute__((availability(ios,introduced=4.0,deprecated=7.0,message="Use base64EncodedStringWithOptions instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use base64EncodedStringWithOptions instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use base64EncodedStringWithOptions instead")));
/* @end */
#ifndef _REWRITER_typedef_NSMutableData
#define _REWRITER_typedef_NSMutableData
typedef struct objc_object NSMutableData;
typedef struct {} _objc_exc_NSMutableData;
#endif
struct NSMutableData_IMPL {
struct NSData_IMPL NSData_IVARS;
};
// @property (readonly) void *mutableBytes __attribute__((objc_returns_inner_pointer));
// @property NSUInteger length;
/* @end */
// @interface NSMutableData (NSExtendedMutableData)
// - (void)appendBytes:(const void *)bytes length:(NSUInteger)length;
// - (void)appendData:(NSData *)other;
// - (void)increaseLengthBy:(NSUInteger)extraLength;
// - (void)replaceBytesInRange:(NSRange)range withBytes:(const void *)bytes;
// - (void)resetBytesInRange:(NSRange)range;
// - (void)setData:(NSData *)data;
// - (void)replaceBytesInRange:(NSRange)range withBytes:(nullable const void *)replacementBytes length:(NSUInteger)replacementLength;
/* @end */
// @interface NSMutableData (NSMutableDataCreation)
// + (nullable instancetype)dataWithCapacity:(NSUInteger)aNumItems;
// + (nullable instancetype)dataWithLength:(NSUInteger)length;
// - (nullable instancetype)initWithCapacity:(NSUInteger)capacity;
// - (nullable instancetype)initWithLength:(NSUInteger)length;
/* @end */
// @interface NSMutableData (NSMutableDataCompression)
// - (BOOL)decompressUsingAlgorithm:(NSDataCompressionAlgorithm)algorithm error:(NSError **)error __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// - (BOOL)compressUsingAlgorithm:(NSDataCompressionAlgorithm)algorithm error:(NSError **)error __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
/* @end */
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSPurgeableData
#define _REWRITER_typedef_NSPurgeableData
typedef struct objc_object NSPurgeableData;
typedef struct {} _objc_exc_NSPurgeableData;
#endif
struct NSPurgeableData_IMPL {
struct NSMutableData_IMPL NSMutableData_IVARS;
NSUInteger _length;
int32_t _accessCount;
uint8_t _private[32];
void *_reserved;
};
/* @end */
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSDateInterval
#define _REWRITER_typedef_NSDateInterval
typedef struct objc_object NSDateInterval;
typedef struct {} _objc_exc_NSDateInterval;
#endif
struct NSDateInterval_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// @property (readonly, copy) NSDate *startDate;
// @property (readonly, copy) NSDate *endDate;
// @property (readonly) NSTimeInterval duration;
// - (instancetype)init;
// - (instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer));
// - (instancetype)initWithStartDate:(NSDate *)startDate duration:(NSTimeInterval)duration __attribute__((objc_designated_initializer));
// - (instancetype)initWithStartDate:(NSDate *)startDate endDate:(NSDate *)endDate;
// - (NSComparisonResult)compare:(NSDateInterval *)dateInterval;
// - (BOOL)isEqualToDateInterval:(NSDateInterval *)dateInterval;
// - (BOOL)intersectsDateInterval:(NSDateInterval *)dateInterval;
// - (nullable NSDateInterval *)intersectionWithDateInterval:(NSDateInterval *)dateInterval;
// - (BOOL)containsDate:(NSDate *)date;
/* @end */
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
typedef NSString * NSAttributedStringKey __attribute__((swift_wrapper(struct)));
__attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSAttributedString
#define _REWRITER_typedef_NSAttributedString
typedef struct objc_object NSAttributedString;
typedef struct {} _objc_exc_NSAttributedString;
#endif
struct NSAttributedString_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// @property (readonly, copy) NSString *string;
// - (NSDictionary<NSAttributedStringKey, id> *)attributesAtIndex:(NSUInteger)location effectiveRange:(nullable NSRangePointer)range;
/* @end */
// @interface NSAttributedString (NSExtendedAttributedString)
// @property (readonly) NSUInteger length;
// - (nullable id)attribute:(NSAttributedStringKey)attrName atIndex:(NSUInteger)location effectiveRange:(nullable NSRangePointer)range;
// - (NSAttributedString *)attributedSubstringFromRange:(NSRange)range;
// - (NSDictionary<NSAttributedStringKey, id> *)attributesAtIndex:(NSUInteger)location longestEffectiveRange:(nullable NSRangePointer)range inRange:(NSRange)rangeLimit;
// - (nullable id)attribute:(NSAttributedStringKey)attrName atIndex:(NSUInteger)location longestEffectiveRange:(nullable NSRangePointer)range inRange:(NSRange)rangeLimit;
// - (BOOL)isEqualToAttributedString:(NSAttributedString *)other;
// - (instancetype)initWithString:(NSString *)str;
// - (instancetype)initWithString:(NSString *)str attributes:(nullable NSDictionary<NSAttributedStringKey, id> *)attrs;
// - (instancetype)initWithAttributedString:(NSAttributedString *)attrStr;
typedef NSUInteger NSAttributedStringEnumerationOptions; enum {
NSAttributedStringEnumerationReverse = (1UL << 1),
NSAttributedStringEnumerationLongestEffectiveRangeNotRequired = (1UL << 20)
};
// - (void)enumerateAttributesInRange:(NSRange)enumerationRange options:(NSAttributedStringEnumerationOptions)opts usingBlock:(void (__attribute__((noescape)) ^)(NSDictionary<NSAttributedStringKey, id> *attrs, NSRange range, BOOL *stop))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)enumerateAttribute:(NSAttributedStringKey)attrName inRange:(NSRange)enumerationRange options:(NSAttributedStringEnumerationOptions)opts usingBlock:(void (__attribute__((noescape)) ^)(id _Nullable value, NSRange range, BOOL *stop))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
__attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSMutableAttributedString
#define _REWRITER_typedef_NSMutableAttributedString
typedef struct objc_object NSMutableAttributedString;
typedef struct {} _objc_exc_NSMutableAttributedString;
#endif
struct NSMutableAttributedString_IMPL {
struct NSAttributedString_IMPL NSAttributedString_IVARS;
};
// - (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)str;
// - (void)setAttributes:(nullable NSDictionary<NSAttributedStringKey, id> *)attrs range:(NSRange)range;
/* @end */
// @interface NSMutableAttributedString (NSExtendedMutableAttributedString)
// @property (readonly, retain) NSMutableString *mutableString;
// - (void)addAttribute:(NSAttributedStringKey)name value:(id)value range:(NSRange)range;
// - (void)addAttributes:(NSDictionary<NSAttributedStringKey, id> *)attrs range:(NSRange)range;
// - (void)removeAttribute:(NSAttributedStringKey)name range:(NSRange)range;
// - (void)replaceCharactersInRange:(NSRange)range withAttributedString:(NSAttributedString *)attrString;
// - (void)insertAttributedString:(NSAttributedString *)attrString atIndex:(NSUInteger)loc;
// - (void)appendAttributedString:(NSAttributedString *)attrString;
// - (void)deleteCharactersInRange:(NSRange)range;
// - (void)setAttributedString:(NSAttributedString *)attrString;
// - (void)beginEditing;
// - (void)endEditing;
/* @end */
#pragma clang assume_nonnull end
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
// @class NSAttributedString;
#ifndef _REWRITER_typedef_NSAttributedString
#define _REWRITER_typedef_NSAttributedString
typedef struct objc_object NSAttributedString;
typedef struct {} _objc_exc_NSAttributedString;
#endif
// @class NSDictionary;
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
#pragma clang assume_nonnull begin
typedef NSInteger NSFormattingContext; enum {
NSFormattingContextUnknown = 0,
NSFormattingContextDynamic = 1,
NSFormattingContextStandalone = 2,
NSFormattingContextListItem = 3,
NSFormattingContextBeginningOfSentence = 4,
NSFormattingContextMiddleOfSentence = 5,
} __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef NSInteger NSFormattingUnitStyle; enum {
NSFormattingUnitStyleShort = 1,
NSFormattingUnitStyleMedium,
NSFormattingUnitStyleLong,
} __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
#ifndef _REWRITER_typedef_NSFormatter
#define _REWRITER_typedef_NSFormatter
typedef struct objc_object NSFormatter;
typedef struct {} _objc_exc_NSFormatter;
#endif
struct NSFormatter_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// - (nullable NSString *)stringForObjectValue:(nullable id)obj;
// - (nullable NSAttributedString *)attributedStringForObjectValue:(id)obj withDefaultAttributes:(nullable NSDictionary<NSAttributedStringKey, id> *)attrs;
// - (nullable NSString *)editingStringForObjectValue:(id)obj;
// - (BOOL)getObjectValue:(out id _Nullable * _Nullable)obj forString:(NSString *)string errorDescription:(out NSString * _Nullable * _Nullable)error;
// - (BOOL)isPartialStringValid:(NSString *)partialString newEditingString:(NSString * _Nullable * _Nullable)newString errorDescription:(NSString * _Nullable * _Nullable)error;
// - (BOOL)isPartialStringValid:(NSString * _Nonnull * _Nonnull)partialStringPtr proposedSelectedRange:(nullable NSRangePointer)proposedSelRangePtr originalString:(NSString *)origString originalSelectedRange:(NSRange)origSelRange errorDescription:(NSString * _Nullable * _Nullable)error;
/* @end */
#pragma clang assume_nonnull end
// @class NSLocale;
#ifndef _REWRITER_typedef_NSLocale
#define _REWRITER_typedef_NSLocale
typedef struct objc_object NSLocale;
typedef struct {} _objc_exc_NSLocale;
#endif
#ifndef _REWRITER_typedef_NSDate
#define _REWRITER_typedef_NSDate
typedef struct objc_object NSDate;
typedef struct {} _objc_exc_NSDate;
#endif
#ifndef _REWRITER_typedef_NSCalendar
#define _REWRITER_typedef_NSCalendar
typedef struct objc_object NSCalendar;
typedef struct {} _objc_exc_NSCalendar;
#endif
#ifndef _REWRITER_typedef_NSTimeZone
#define _REWRITER_typedef_NSTimeZone
typedef struct objc_object NSTimeZone;
typedef struct {} _objc_exc_NSTimeZone;
#endif
#ifndef _REWRITER_typedef_NSError
#define _REWRITER_typedef_NSError
typedef struct objc_object NSError;
typedef struct {} _objc_exc_NSError;
#endif
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSMutableDictionary
#define _REWRITER_typedef_NSMutableDictionary
typedef struct objc_object NSMutableDictionary;
typedef struct {} _objc_exc_NSMutableDictionary;
#endif
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#pragma clang assume_nonnull begin
#ifndef _REWRITER_typedef_NSDateFormatter
#define _REWRITER_typedef_NSDateFormatter
typedef struct objc_object NSDateFormatter;
typedef struct {} _objc_exc_NSDateFormatter;
#endif
struct NSDateFormatter_IMPL {
struct NSFormatter_IMPL NSFormatter_IVARS;
NSMutableDictionary *_attributes;
CFDateFormatterRef _formatter;
NSUInteger _counter;
};
// @property NSFormattingContext formattingContext __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)getObjectValue:(out id _Nullable * _Nullable)obj forString:(NSString *)string range:(inout nullable NSRange *)rangep error:(out NSError **)error;
// - (NSString *)stringFromDate:(NSDate *)date;
// - (nullable NSDate *)dateFromString:(NSString *)string;
typedef NSUInteger NSDateFormatterStyle; enum {
NSDateFormatterNoStyle = kCFDateFormatterNoStyle,
NSDateFormatterShortStyle = kCFDateFormatterShortStyle,
NSDateFormatterMediumStyle = kCFDateFormatterMediumStyle,
NSDateFormatterLongStyle = kCFDateFormatterLongStyle,
NSDateFormatterFullStyle = kCFDateFormatterFullStyle
};
typedef NSUInteger NSDateFormatterBehavior; enum {
NSDateFormatterBehaviorDefault = 0,
NSDateFormatterBehavior10_4 = 1040,
};
// + (NSString *)localizedStringFromDate:(NSDate *)date dateStyle:(NSDateFormatterStyle)dstyle timeStyle:(NSDateFormatterStyle)tstyle __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (nullable NSString *)dateFormatFromTemplate:(NSString *)tmplate options:(NSUInteger)opts locale:(nullable NSLocale *)locale __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
@property (class) NSDateFormatterBehavior defaultFormatterBehavior;
// - (void) setLocalizedDateFormatFromTemplate:(NSString *)dateFormatTemplate __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (null_resettable, copy) NSString *dateFormat;
// @property NSDateFormatterStyle dateStyle;
// @property NSDateFormatterStyle timeStyle;
// @property (null_resettable, copy) NSLocale *locale;
// @property BOOL generatesCalendarDates;
// @property NSDateFormatterBehavior formatterBehavior;
// @property (null_resettable, copy) NSTimeZone *timeZone;
// @property (null_resettable, copy) NSCalendar *calendar;
// @property (getter=isLenient) BOOL lenient;
// @property (nullable, copy) NSDate *twoDigitStartDate;
// @property (nullable, copy) NSDate *defaultDate;
// @property (null_resettable, copy) NSArray<NSString *> *eraSymbols;
// @property (null_resettable, copy) NSArray<NSString *> *monthSymbols;
// @property (null_resettable, copy) NSArray<NSString *> *shortMonthSymbols;
// @property (null_resettable, copy) NSArray<NSString *> *weekdaySymbols;
// @property (null_resettable, copy) NSArray<NSString *> *shortWeekdaySymbols;
// @property (null_resettable, copy) NSString *AMSymbol;
// @property (null_resettable, copy) NSString *PMSymbol;
// @property (null_resettable, copy) NSArray<NSString *> *longEraSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (null_resettable, copy) NSArray<NSString *> *veryShortMonthSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (null_resettable, copy) NSArray<NSString *> *standaloneMonthSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (null_resettable, copy) NSArray<NSString *> *shortStandaloneMonthSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (null_resettable, copy) NSArray<NSString *> *veryShortStandaloneMonthSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (null_resettable, copy) NSArray<NSString *> *veryShortWeekdaySymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (null_resettable, copy) NSArray<NSString *> *standaloneWeekdaySymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (null_resettable, copy) NSArray<NSString *> *shortStandaloneWeekdaySymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (null_resettable, copy) NSArray<NSString *> *veryShortStandaloneWeekdaySymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (null_resettable, copy) NSArray<NSString *> *quarterSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (null_resettable, copy) NSArray<NSString *> *shortQuarterSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (null_resettable, copy) NSArray<NSString *> *standaloneQuarterSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (null_resettable, copy) NSArray<NSString *> *shortStandaloneQuarterSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, copy) NSDate *gregorianStartDate __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property BOOL doesRelativeDateFormatting __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
#pragma clang assume_nonnull end
// @class NSLocale;
#ifndef _REWRITER_typedef_NSLocale
#define _REWRITER_typedef_NSLocale
typedef struct objc_object NSLocale;
typedef struct {} _objc_exc_NSLocale;
#endif
#ifndef _REWRITER_typedef_NSCalendar
#define _REWRITER_typedef_NSCalendar
typedef struct objc_object NSCalendar;
typedef struct {} _objc_exc_NSCalendar;
#endif
#ifndef _REWRITER_typedef_NSTimeZone
#define _REWRITER_typedef_NSTimeZone
typedef struct objc_object NSTimeZone;
typedef struct {} _objc_exc_NSTimeZone;
#endif
#ifndef _REWRITER_typedef_NSDate
#define _REWRITER_typedef_NSDate
typedef struct objc_object NSDate;
typedef struct {} _objc_exc_NSDate;
#endif
#pragma clang assume_nonnull begin
typedef NSUInteger NSDateIntervalFormatterStyle; enum {
NSDateIntervalFormatterNoStyle = 0,
NSDateIntervalFormatterShortStyle = 1,
NSDateIntervalFormatterMediumStyle = 2,
NSDateIntervalFormatterLongStyle = 3,
NSDateIntervalFormatterFullStyle = 4
} __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSDateIntervalFormatter
#define _REWRITER_typedef_NSDateIntervalFormatter
typedef struct objc_object NSDateIntervalFormatter;
typedef struct {} _objc_exc_NSDateIntervalFormatter;
#endif
struct NSDateIntervalFormatter_IMPL {
struct NSFormatter_IMPL NSFormatter_IVARS;
NSLocale *_locale;
NSCalendar *_calendar;
NSTimeZone *_timeZone;
NSString *_dateTemplate;
NSString *_dateTemplateFromStyles;
void *_formatter;
NSDateIntervalFormatterStyle _dateStyle;
NSDateIntervalFormatterStyle _timeStyle;
BOOL _modified;
BOOL _useTemplate;
dispatch_semaphore_t _lock;
void *_reserved[4];
};
// @property (null_resettable, copy) NSLocale *locale;
// @property (null_resettable, copy) NSCalendar *calendar;
// @property (null_resettable, copy) NSTimeZone *timeZone;
// @property (null_resettable, copy) NSString *dateTemplate;
// @property NSDateIntervalFormatterStyle dateStyle;
// @property NSDateIntervalFormatterStyle timeStyle;
// - (NSString *)stringFromDate:(NSDate *)fromDate toDate:(NSDate *)toDate;
// - (nullable NSString *)stringFromDateInterval:(NSDateInterval *)dateInterval __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
/* @end */
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#ifndef _REWRITER_typedef_NSDate
#define _REWRITER_typedef_NSDate
typedef struct objc_object NSDate;
typedef struct {} _objc_exc_NSDate;
#endif
#ifndef _REWRITER_typedef_NSTimeZone
#define _REWRITER_typedef_NSTimeZone
typedef struct objc_object NSTimeZone;
typedef struct {} _objc_exc_NSTimeZone;
#endif
typedef NSUInteger NSISO8601DateFormatOptions; enum {
NSISO8601DateFormatWithYear __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithYear,
NSISO8601DateFormatWithMonth __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithMonth,
NSISO8601DateFormatWithWeekOfYear __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithWeekOfYear,
NSISO8601DateFormatWithDay __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithDay,
NSISO8601DateFormatWithTime __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithTime,
NSISO8601DateFormatWithTimeZone __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithTimeZone,
NSISO8601DateFormatWithSpaceBetweenDateAndTime __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithSpaceBetweenDateAndTime,
NSISO8601DateFormatWithDashSeparatorInDate __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithDashSeparatorInDate,
NSISO8601DateFormatWithColonSeparatorInTime __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithColonSeparatorInTime,
NSISO8601DateFormatWithColonSeparatorInTimeZone __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithColonSeparatorInTimeZone,
NSISO8601DateFormatWithFractionalSeconds __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))) = kCFISO8601DateFormatWithFractionalSeconds,
NSISO8601DateFormatWithFullDate __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithFullDate,
NSISO8601DateFormatWithFullTime __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithFullTime,
NSISO8601DateFormatWithInternetDateTime __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithInternetDateTime,
};
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSISO8601DateFormatter
#define _REWRITER_typedef_NSISO8601DateFormatter
typedef struct objc_object NSISO8601DateFormatter;
typedef struct {} _objc_exc_NSISO8601DateFormatter;
#endif
struct NSISO8601DateFormatter_IMPL {
struct NSFormatter_IMPL NSFormatter_IVARS;
CFDateFormatterRef _formatter;
NSTimeZone *_timeZone;
NSISO8601DateFormatOptions _formatOptions;
};
// @property (null_resettable, copy) NSTimeZone *timeZone;
// @property NSISO8601DateFormatOptions formatOptions;
// - (instancetype)init __attribute__((objc_designated_initializer));
// - (NSString *)stringFromDate:(NSDate *)date;
// - (nullable NSDate *)dateFromString:(NSString *)string;
// + (NSString *)stringFromDate:(NSDate *)date timeZone:(NSTimeZone *)timeZone formatOptions:(NSISO8601DateFormatOptions)formatOptions;
/* @end */
#pragma clang assume_nonnull end
// @class NSNumberFormatter;
#ifndef _REWRITER_typedef_NSNumberFormatter
#define _REWRITER_typedef_NSNumberFormatter
typedef struct objc_object NSNumberFormatter;
typedef struct {} _objc_exc_NSNumberFormatter;
#endif
#pragma clang assume_nonnull begin
typedef NSInteger NSMassFormatterUnit; enum {
NSMassFormatterUnitGram = 11,
NSMassFormatterUnitKilogram = 14,
NSMassFormatterUnitOunce = (6 << 8) + 1,
NSMassFormatterUnitPound = (6 << 8) + 2,
NSMassFormatterUnitStone = (6 << 8) + 3,
} __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSMassFormatter
#define _REWRITER_typedef_NSMassFormatter
typedef struct objc_object NSMassFormatter;
typedef struct {} _objc_exc_NSMassFormatter;
#endif
struct NSMassFormatter_IMPL {
struct NSFormatter_IMPL NSFormatter_IVARS;
void *_formatter;
BOOL _isForPersonMassUse;
void *_reserved[2];
};
// @property (null_resettable, copy) NSNumberFormatter *numberFormatter;
// @property NSFormattingUnitStyle unitStyle;
// @property (getter = isForPersonMassUse) BOOL forPersonMassUse;
// - (NSString *)stringFromValue:(double)value unit:(NSMassFormatterUnit)unit;
// - (NSString *)stringFromKilograms:(double)numberInKilograms;
// - (NSString *)unitStringFromValue:(double)value unit:(NSMassFormatterUnit)unit;
// - (NSString *)unitStringFromKilograms:(double)numberInKilograms usedUnit:(nullable NSMassFormatterUnit *)unitp;
// - (BOOL)getObjectValue:(out id _Nullable * _Nullable)obj forString:(NSString *)string errorDescription:(out NSString * _Nullable * _Nullable)error;
/* @end */
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
typedef NSInteger NSLengthFormatterUnit; enum {
NSLengthFormatterUnitMillimeter = 8,
NSLengthFormatterUnitCentimeter = 9,
NSLengthFormatterUnitMeter = 11,
NSLengthFormatterUnitKilometer = 14,
NSLengthFormatterUnitInch = (5 << 8) + 1,
NSLengthFormatterUnitFoot = (5 << 8) + 2,
NSLengthFormatterUnitYard = (5 << 8) + 3,
NSLengthFormatterUnitMile = (5 << 8) + 4,
} __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSLengthFormatter
#define _REWRITER_typedef_NSLengthFormatter
typedef struct objc_object NSLengthFormatter;
typedef struct {} _objc_exc_NSLengthFormatter;
#endif
struct NSLengthFormatter_IMPL {
struct NSFormatter_IMPL NSFormatter_IVARS;
void *_formatter;
BOOL _isForPersonHeight;
void *_reserved[2];
};
// @property (null_resettable, copy) NSNumberFormatter *numberFormatter;
// @property NSFormattingUnitStyle unitStyle;
// @property (getter = isForPersonHeightUse) BOOL forPersonHeightUse;
// - (NSString *)stringFromValue:(double)value unit:(NSLengthFormatterUnit)unit;
// - (NSString *)stringFromMeters:(double)numberInMeters;
// - (NSString *)unitStringFromValue:(double)value unit:(NSLengthFormatterUnit)unit;
// - (NSString *)unitStringFromMeters:(double)numberInMeters usedUnit:(nullable NSLengthFormatterUnit *)unitp;
// - (BOOL)getObjectValue:(out id _Nullable * _Nullable)obj forString:(NSString *)string errorDescription:(out NSString * _Nullable * _Nullable)error;
/* @end */
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
typedef NSInteger NSEnergyFormatterUnit; enum {
NSEnergyFormatterUnitJoule = 11,
NSEnergyFormatterUnitKilojoule = 14,
NSEnergyFormatterUnitCalorie = (7 << 8) + 1,
NSEnergyFormatterUnitKilocalorie = (7 << 8) + 2,
} __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSEnergyFormatter
#define _REWRITER_typedef_NSEnergyFormatter
typedef struct objc_object NSEnergyFormatter;
typedef struct {} _objc_exc_NSEnergyFormatter;
#endif
struct NSEnergyFormatter_IMPL {
struct NSFormatter_IMPL NSFormatter_IVARS;
void *_formatter;
BOOL _isForFoodEnergyUse;
void *_reserved[2];
};
// @property (null_resettable, copy) NSNumberFormatter *numberFormatter;
// @property NSFormattingUnitStyle unitStyle;
// @property (getter = isForFoodEnergyUse) BOOL forFoodEnergyUse;
// - (NSString *)stringFromValue:(double)value unit:(NSEnergyFormatterUnit)unit;
// - (NSString *)stringFromJoules:(double)numberInJoules;
// - (NSString *)unitStringFromValue:(double)value unit:(NSEnergyFormatterUnit)unit;
// - (NSString *)unitStringFromJoules:(double)numberInJoules usedUnit:(nullable NSEnergyFormatterUnit *)unitp;
// - (BOOL)getObjectValue:(out id _Nullable * _Nullable)obj forString:(NSString *)string errorDescription:(out NSString * _Nullable * _Nullable)error;
/* @end */
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSUnitConverter
#define _REWRITER_typedef_NSUnitConverter
typedef struct objc_object NSUnitConverter;
typedef struct {} _objc_exc_NSUnitConverter;
#endif
struct NSUnitConverter_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// - (double)baseUnitValueFromValue:(double)value;
// - (double)valueFromBaseUnitValue:(double)baseUnitValue;
/* @end */
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSUnitConverterLinear
#define _REWRITER_typedef_NSUnitConverterLinear
typedef struct objc_object NSUnitConverterLinear;
typedef struct {} _objc_exc_NSUnitConverterLinear;
#endif
struct NSUnitConverterLinear_IMPL {
struct NSUnitConverter_IMPL NSUnitConverter_IVARS;
double _coefficient;
double _constant;
};
// @property (readonly) double coefficient;
// @property (readonly) double constant;
// - (instancetype)initWithCoefficient:(double)coefficient;
// - (instancetype)initWithCoefficient:(double)coefficient constant:(double)constant __attribute__((objc_designated_initializer));
/* @end */
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSUnit
#define _REWRITER_typedef_NSUnit
typedef struct objc_object NSUnit;
typedef struct {} _objc_exc_NSUnit;
#endif
struct NSUnit_IMPL {
struct NSObject_IMPL NSObject_IVARS;
NSString *_symbol;
};
// @property (readonly, copy) NSString *symbol;
// - (instancetype)init __attribute__((availability(macos,unavailable))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// + (instancetype)new __attribute__((availability(macos,unavailable))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// - (instancetype)initWithSymbol:(NSString *)symbol __attribute__((objc_designated_initializer));
/* @end */
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSDimension
#define _REWRITER_typedef_NSDimension
typedef struct objc_object NSDimension;
typedef struct {} _objc_exc_NSDimension;
#endif
struct NSDimension_IMPL {
struct NSUnit_IMPL NSUnit_IVARS;
NSUInteger _reserved;
NSUnitConverter *_converter;
};
// @property (readonly, copy) NSUnitConverter *converter;
// - (instancetype)initWithSymbol:(NSString *)symbol converter:(NSUnitConverter *)converter __attribute__((objc_designated_initializer));
// + (instancetype)baseUnit;
/* @end */
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSUnitAcceleration
#define _REWRITER_typedef_NSUnitAcceleration
typedef struct objc_object NSUnitAcceleration;
typedef struct {} _objc_exc_NSUnitAcceleration;
#endif
struct NSUnitAcceleration_IMPL {
struct NSDimension_IMPL NSDimension_IVARS;
};
@property (class, readonly, copy) NSUnitAcceleration *metersPerSecondSquared;
@property (class, readonly, copy) NSUnitAcceleration *gravity;
/* @end */
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSUnitAngle
#define _REWRITER_typedef_NSUnitAngle
typedef struct objc_object NSUnitAngle;
typedef struct {} _objc_exc_NSUnitAngle;
#endif
struct NSUnitAngle_IMPL {
struct NSDimension_IMPL NSDimension_IVARS;
};
@property (class, readonly, copy) NSUnitAngle *degrees;
@property (class, readonly, copy) NSUnitAngle *arcMinutes;
@property (class, readonly, copy) NSUnitAngle *arcSeconds;
@property (class, readonly, copy) NSUnitAngle *radians;
@property (class, readonly, copy) NSUnitAngle *gradians;
@property (class, readonly, copy) NSUnitAngle *revolutions;
/* @end */
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSUnitArea
#define _REWRITER_typedef_NSUnitArea
typedef struct objc_object NSUnitArea;
typedef struct {} _objc_exc_NSUnitArea;
#endif
struct NSUnitArea_IMPL {
struct NSDimension_IMPL NSDimension_IVARS;
};
@property (class, readonly, copy) NSUnitArea *squareMegameters;
@property (class, readonly, copy) NSUnitArea *squareKilometers;
@property (class, readonly, copy) NSUnitArea *squareMeters;
@property (class, readonly, copy) NSUnitArea *squareCentimeters;
@property (class, readonly, copy) NSUnitArea *squareMillimeters;
@property (class, readonly, copy) NSUnitArea *squareMicrometers;
@property (class, readonly, copy) NSUnitArea *squareNanometers;
@property (class, readonly, copy) NSUnitArea *squareInches;
@property (class, readonly, copy) NSUnitArea *squareFeet;
@property (class, readonly, copy) NSUnitArea *squareYards;
@property (class, readonly, copy) NSUnitArea *squareMiles;
@property (class, readonly, copy) NSUnitArea *acres;
@property (class, readonly, copy) NSUnitArea *ares;
@property (class, readonly, copy) NSUnitArea *hectares;
/* @end */
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSUnitConcentrationMass
#define _REWRITER_typedef_NSUnitConcentrationMass
typedef struct objc_object NSUnitConcentrationMass;
typedef struct {} _objc_exc_NSUnitConcentrationMass;
#endif
struct NSUnitConcentrationMass_IMPL {
struct NSDimension_IMPL NSDimension_IVARS;
};
@property (class, readonly, copy) NSUnitConcentrationMass *gramsPerLiter;
@property (class, readonly, copy) NSUnitConcentrationMass *milligramsPerDeciliter;
// + (NSUnitConcentrationMass *)millimolesPerLiterWithGramsPerMole:(double)gramsPerMole;
/* @end */
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSUnitDispersion
#define _REWRITER_typedef_NSUnitDispersion
typedef struct objc_object NSUnitDispersion;
typedef struct {} _objc_exc_NSUnitDispersion;
#endif
struct NSUnitDispersion_IMPL {
struct NSDimension_IMPL NSDimension_IVARS;
};
@property (class, readonly, copy) NSUnitDispersion *partsPerMillion;
/* @end */
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSUnitDuration
#define _REWRITER_typedef_NSUnitDuration
typedef struct objc_object NSUnitDuration;
typedef struct {} _objc_exc_NSUnitDuration;
#endif
struct NSUnitDuration_IMPL {
struct NSDimension_IMPL NSDimension_IVARS;
};
@property (class, readonly, copy) NSUnitDuration *hours;
@property (class, readonly, copy) NSUnitDuration *minutes;
@property (class, readonly, copy) NSUnitDuration *seconds;
@property (class, readonly, copy) NSUnitDuration *milliseconds __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0)));
@property (class, readonly, copy) NSUnitDuration *microseconds __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0)));
@property (class, readonly, copy) NSUnitDuration *nanoseconds __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0)));
@property (class, readonly, copy) NSUnitDuration *picoseconds __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0)));
/* @end */
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSUnitElectricCharge
#define _REWRITER_typedef_NSUnitElectricCharge
typedef struct objc_object NSUnitElectricCharge;
typedef struct {} _objc_exc_NSUnitElectricCharge;
#endif
struct NSUnitElectricCharge_IMPL {
struct NSDimension_IMPL NSDimension_IVARS;
};
@property (class, readonly, copy) NSUnitElectricCharge *coulombs;
@property (class, readonly, copy) NSUnitElectricCharge *megaampereHours;
@property (class, readonly, copy) NSUnitElectricCharge *kiloampereHours;
@property (class, readonly, copy) NSUnitElectricCharge *ampereHours;
@property (class, readonly, copy) NSUnitElectricCharge *milliampereHours;
@property (class, readonly, copy) NSUnitElectricCharge *microampereHours;
/* @end */
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSUnitElectricCurrent
#define _REWRITER_typedef_NSUnitElectricCurrent
typedef struct objc_object NSUnitElectricCurrent;
typedef struct {} _objc_exc_NSUnitElectricCurrent;
#endif
struct NSUnitElectricCurrent_IMPL {
struct NSDimension_IMPL NSDimension_IVARS;
};
@property (class, readonly, copy) NSUnitElectricCurrent *megaamperes;
@property (class, readonly, copy) NSUnitElectricCurrent *kiloamperes;
@property (class, readonly, copy) NSUnitElectricCurrent *amperes;
@property (class, readonly, copy) NSUnitElectricCurrent *milliamperes;
@property (class, readonly, copy) NSUnitElectricCurrent *microamperes;
/* @end */
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSUnitElectricPotentialDifference
#define _REWRITER_typedef_NSUnitElectricPotentialDifference
typedef struct objc_object NSUnitElectricPotentialDifference;
typedef struct {} _objc_exc_NSUnitElectricPotentialDifference;
#endif
struct NSUnitElectricPotentialDifference_IMPL {
struct NSDimension_IMPL NSDimension_IVARS;
};
@property (class, readonly, copy) NSUnitElectricPotentialDifference *megavolts;
@property (class, readonly, copy) NSUnitElectricPotentialDifference *kilovolts;
@property (class, readonly, copy) NSUnitElectricPotentialDifference *volts;
@property (class, readonly, copy) NSUnitElectricPotentialDifference *millivolts;
@property (class, readonly, copy) NSUnitElectricPotentialDifference *microvolts;
/* @end */
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSUnitElectricResistance
#define _REWRITER_typedef_NSUnitElectricResistance
typedef struct objc_object NSUnitElectricResistance;
typedef struct {} _objc_exc_NSUnitElectricResistance;
#endif
struct NSUnitElectricResistance_IMPL {
struct NSDimension_IMPL NSDimension_IVARS;
};
@property (class, readonly, copy) NSUnitElectricResistance *megaohms;
@property (class, readonly, copy) NSUnitElectricResistance *kiloohms;
@property (class, readonly, copy) NSUnitElectricResistance *ohms;
@property (class, readonly, copy) NSUnitElectricResistance *milliohms;
@property (class, readonly, copy) NSUnitElectricResistance *microohms;
/* @end */
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSUnitEnergy
#define _REWRITER_typedef_NSUnitEnergy
typedef struct objc_object NSUnitEnergy;
typedef struct {} _objc_exc_NSUnitEnergy;
#endif
struct NSUnitEnergy_IMPL {
struct NSDimension_IMPL NSDimension_IVARS;
};
@property (class, readonly, copy) NSUnitEnergy *kilojoules;
@property (class, readonly, copy) NSUnitEnergy *joules;
@property (class, readonly, copy) NSUnitEnergy *kilocalories;
@property (class, readonly, copy) NSUnitEnergy *calories;
@property (class, readonly, copy) NSUnitEnergy *kilowattHours;
/* @end */
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSUnitFrequency
#define _REWRITER_typedef_NSUnitFrequency
typedef struct objc_object NSUnitFrequency;
typedef struct {} _objc_exc_NSUnitFrequency;
#endif
struct NSUnitFrequency_IMPL {
struct NSDimension_IMPL NSDimension_IVARS;
};
@property (class, readonly, copy) NSUnitFrequency *terahertz;
@property (class, readonly, copy) NSUnitFrequency *gigahertz;
@property (class, readonly, copy) NSUnitFrequency *megahertz;
@property (class, readonly, copy) NSUnitFrequency *kilohertz;
@property (class, readonly, copy) NSUnitFrequency *hertz;
@property (class, readonly, copy) NSUnitFrequency *millihertz;
@property (class, readonly, copy) NSUnitFrequency *microhertz;
@property (class, readonly, copy) NSUnitFrequency *nanohertz;
@property (class, readonly, copy) NSUnitFrequency *framesPerSecond __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0)));
/* @end */
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSUnitFuelEfficiency
#define _REWRITER_typedef_NSUnitFuelEfficiency
typedef struct objc_object NSUnitFuelEfficiency;
typedef struct {} _objc_exc_NSUnitFuelEfficiency;
#endif
struct NSUnitFuelEfficiency_IMPL {
struct NSDimension_IMPL NSDimension_IVARS;
};
@property (class, readonly, copy) NSUnitFuelEfficiency *litersPer100Kilometers;
@property (class, readonly, copy) NSUnitFuelEfficiency *milesPerImperialGallon;
@property (class, readonly, copy) NSUnitFuelEfficiency *milesPerGallon;
/* @end */
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0)))
__attribute__((swift_name("UnitInformationStorage")))
#ifndef _REWRITER_typedef_NSUnitInformationStorage
#define _REWRITER_typedef_NSUnitInformationStorage
typedef struct objc_object NSUnitInformationStorage;
typedef struct {} _objc_exc_NSUnitInformationStorage;
#endif
struct NSUnitInformationStorage_IMPL {
struct NSDimension_IMPL NSDimension_IVARS;
};
@property (readonly, class, copy) NSUnitInformationStorage *bytes;
@property (readonly, class, copy) NSUnitInformationStorage *bits;
@property (readonly, class, copy) NSUnitInformationStorage *nibbles;
@property (readonly, class, copy) NSUnitInformationStorage *yottabytes;
@property (readonly, class, copy) NSUnitInformationStorage *zettabytes;
@property (readonly, class, copy) NSUnitInformationStorage *exabytes;
@property (readonly, class, copy) NSUnitInformationStorage *petabytes;
@property (readonly, class, copy) NSUnitInformationStorage *terabytes;
@property (readonly, class, copy) NSUnitInformationStorage *gigabytes;
@property (readonly, class, copy) NSUnitInformationStorage *megabytes;
@property (readonly, class, copy) NSUnitInformationStorage *kilobytes;
@property (readonly, class, copy) NSUnitInformationStorage *yottabits;
@property (readonly, class, copy) NSUnitInformationStorage *zettabits;
@property (readonly, class, copy) NSUnitInformationStorage *exabits;
@property (readonly, class, copy) NSUnitInformationStorage *petabits;
@property (readonly, class, copy) NSUnitInformationStorage *terabits;
@property (readonly, class, copy) NSUnitInformationStorage *gigabits;
@property (readonly, class, copy) NSUnitInformationStorage *megabits;
@property (readonly, class, copy) NSUnitInformationStorage *kilobits;
@property (readonly, class, copy) NSUnitInformationStorage *yobibytes;
@property (readonly, class, copy) NSUnitInformationStorage *zebibytes;
@property (readonly, class, copy) NSUnitInformationStorage *exbibytes;
@property (readonly, class, copy) NSUnitInformationStorage *pebibytes;
@property (readonly, class, copy) NSUnitInformationStorage *tebibytes;
@property (readonly, class, copy) NSUnitInformationStorage *gibibytes;
@property (readonly, class, copy) NSUnitInformationStorage *mebibytes;
@property (readonly, class, copy) NSUnitInformationStorage *kibibytes;
@property (readonly, class, copy) NSUnitInformationStorage *yobibits;
@property (readonly, class, copy) NSUnitInformationStorage *zebibits;
@property (readonly, class, copy) NSUnitInformationStorage *exbibits;
@property (readonly, class, copy) NSUnitInformationStorage *pebibits;
@property (readonly, class, copy) NSUnitInformationStorage *tebibits;
@property (readonly, class, copy) NSUnitInformationStorage *gibibits;
@property (readonly, class, copy) NSUnitInformationStorage *mebibits;
@property (readonly, class, copy) NSUnitInformationStorage *kibibits;
/* @end */
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSUnitLength
#define _REWRITER_typedef_NSUnitLength
typedef struct objc_object NSUnitLength;
typedef struct {} _objc_exc_NSUnitLength;
#endif
struct NSUnitLength_IMPL {
struct NSDimension_IMPL NSDimension_IVARS;
};
@property (class, readonly, copy) NSUnitLength *megameters;
@property (class, readonly, copy) NSUnitLength *kilometers;
@property (class, readonly, copy) NSUnitLength *hectometers;
@property (class, readonly, copy) NSUnitLength *decameters;
@property (class, readonly, copy) NSUnitLength *meters;
@property (class, readonly, copy) NSUnitLength *decimeters;
@property (class, readonly, copy) NSUnitLength *centimeters;
@property (class, readonly, copy) NSUnitLength *millimeters;
@property (class, readonly, copy) NSUnitLength *micrometers;
@property (class, readonly, copy) NSUnitLength *nanometers;
@property (class, readonly, copy) NSUnitLength *picometers;
@property (class, readonly, copy) NSUnitLength *inches;
@property (class, readonly, copy) NSUnitLength *feet;
@property (class, readonly, copy) NSUnitLength *yards;
@property (class, readonly, copy) NSUnitLength *miles;
@property (class, readonly, copy) NSUnitLength *scandinavianMiles;
@property (class, readonly, copy) NSUnitLength *lightyears;
@property (class, readonly, copy) NSUnitLength *nauticalMiles;
@property (class, readonly, copy) NSUnitLength *fathoms;
@property (class, readonly, copy) NSUnitLength *furlongs;
@property (class, readonly, copy) NSUnitLength *astronomicalUnits;
@property (class, readonly, copy) NSUnitLength *parsecs;
/* @end */
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSUnitIlluminance
#define _REWRITER_typedef_NSUnitIlluminance
typedef struct objc_object NSUnitIlluminance;
typedef struct {} _objc_exc_NSUnitIlluminance;
#endif
struct NSUnitIlluminance_IMPL {
struct NSDimension_IMPL NSDimension_IVARS;
};
@property (class, readonly, copy) NSUnitIlluminance *lux;
/* @end */
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSUnitMass
#define _REWRITER_typedef_NSUnitMass
typedef struct objc_object NSUnitMass;
typedef struct {} _objc_exc_NSUnitMass;
#endif
struct NSUnitMass_IMPL {
struct NSDimension_IMPL NSDimension_IVARS;
};
@property (class, readonly, copy) NSUnitMass *kilograms;
@property (class, readonly, copy) NSUnitMass *grams;
@property (class, readonly, copy) NSUnitMass *decigrams;
@property (class, readonly, copy) NSUnitMass *centigrams;
@property (class, readonly, copy) NSUnitMass *milligrams;
@property (class, readonly, copy) NSUnitMass *micrograms;
@property (class, readonly, copy) NSUnitMass *nanograms;
@property (class, readonly, copy) NSUnitMass *picograms;
@property (class, readonly, copy) NSUnitMass *ounces;
@property (class, readonly, copy) NSUnitMass *poundsMass;
@property (class, readonly, copy) NSUnitMass *stones;
@property (class, readonly, copy) NSUnitMass *metricTons;
@property (class, readonly, copy) NSUnitMass *shortTons;
@property (class, readonly, copy) NSUnitMass *carats;
@property (class, readonly, copy) NSUnitMass *ouncesTroy;
@property (class, readonly, copy) NSUnitMass *slugs;
/* @end */
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSUnitPower
#define _REWRITER_typedef_NSUnitPower
typedef struct objc_object NSUnitPower;
typedef struct {} _objc_exc_NSUnitPower;
#endif
struct NSUnitPower_IMPL {
struct NSDimension_IMPL NSDimension_IVARS;
};
@property (class, readonly, copy) NSUnitPower *terawatts;
@property (class, readonly, copy) NSUnitPower *gigawatts;
@property (class, readonly, copy) NSUnitPower *megawatts;
@property (class, readonly, copy) NSUnitPower *kilowatts;
@property (class, readonly, copy) NSUnitPower *watts;
@property (class, readonly, copy) NSUnitPower *milliwatts;
@property (class, readonly, copy) NSUnitPower *microwatts;
@property (class, readonly, copy) NSUnitPower *nanowatts;
@property (class, readonly, copy) NSUnitPower *picowatts;
@property (class, readonly, copy) NSUnitPower *femtowatts;
@property (class, readonly, copy) NSUnitPower *horsepower;
/* @end */
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSUnitPressure
#define _REWRITER_typedef_NSUnitPressure
typedef struct objc_object NSUnitPressure;
typedef struct {} _objc_exc_NSUnitPressure;
#endif
struct NSUnitPressure_IMPL {
struct NSDimension_IMPL NSDimension_IVARS;
};
@property (class, readonly, copy) NSUnitPressure *newtonsPerMetersSquared;
@property (class, readonly, copy) NSUnitPressure *gigapascals;
@property (class, readonly, copy) NSUnitPressure *megapascals;
@property (class, readonly, copy) NSUnitPressure *kilopascals;
@property (class, readonly, copy) NSUnitPressure *hectopascals;
@property (class, readonly, copy) NSUnitPressure *inchesOfMercury;
@property (class, readonly, copy) NSUnitPressure *bars;
@property (class, readonly, copy) NSUnitPressure *millibars;
@property (class, readonly, copy) NSUnitPressure *millimetersOfMercury;
@property (class, readonly, copy) NSUnitPressure *poundsForcePerSquareInch;
/* @end */
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSUnitSpeed
#define _REWRITER_typedef_NSUnitSpeed
typedef struct objc_object NSUnitSpeed;
typedef struct {} _objc_exc_NSUnitSpeed;
#endif
struct NSUnitSpeed_IMPL {
struct NSDimension_IMPL NSDimension_IVARS;
};
@property (class, readonly, copy) NSUnitSpeed *metersPerSecond;
@property (class, readonly, copy) NSUnitSpeed *kilometersPerHour;
@property (class, readonly, copy) NSUnitSpeed *milesPerHour;
@property (class, readonly, copy) NSUnitSpeed *knots;
/* @end */
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSUnitTemperature
#define _REWRITER_typedef_NSUnitTemperature
typedef struct objc_object NSUnitTemperature;
typedef struct {} _objc_exc_NSUnitTemperature;
#endif
struct NSUnitTemperature_IMPL {
struct NSDimension_IMPL NSDimension_IVARS;
};
@property (class, readonly, copy) NSUnitTemperature *kelvin;
@property (class, readonly, copy) NSUnitTemperature *celsius;
@property (class, readonly, copy) NSUnitTemperature *fahrenheit;
/* @end */
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSUnitVolume
#define _REWRITER_typedef_NSUnitVolume
typedef struct objc_object NSUnitVolume;
typedef struct {} _objc_exc_NSUnitVolume;
#endif
struct NSUnitVolume_IMPL {
struct NSDimension_IMPL NSDimension_IVARS;
};
@property (class, readonly, copy) NSUnitVolume *megaliters;
@property (class, readonly, copy) NSUnitVolume *kiloliters;
@property (class, readonly, copy) NSUnitVolume *liters;
@property (class, readonly, copy) NSUnitVolume *deciliters;
@property (class, readonly, copy) NSUnitVolume *centiliters;
@property (class, readonly, copy) NSUnitVolume *milliliters;
@property (class, readonly, copy) NSUnitVolume *cubicKilometers;
@property (class, readonly, copy) NSUnitVolume *cubicMeters;
@property (class, readonly, copy) NSUnitVolume *cubicDecimeters;
@property (class, readonly, copy) NSUnitVolume *cubicCentimeters;
@property (class, readonly, copy) NSUnitVolume *cubicMillimeters;
@property (class, readonly, copy) NSUnitVolume *cubicInches;
@property (class, readonly, copy) NSUnitVolume *cubicFeet;
@property (class, readonly, copy) NSUnitVolume *cubicYards;
@property (class, readonly, copy) NSUnitVolume *cubicMiles;
@property (class, readonly, copy) NSUnitVolume *acreFeet;
@property (class, readonly, copy) NSUnitVolume *bushels;
@property (class, readonly, copy) NSUnitVolume *teaspoons;
@property (class, readonly, copy) NSUnitVolume *tablespoons;
@property (class, readonly, copy) NSUnitVolume *fluidOunces;
@property (class, readonly, copy) NSUnitVolume *cups;
@property (class, readonly, copy) NSUnitVolume *pints;
@property (class, readonly, copy) NSUnitVolume *quarts;
@property (class, readonly, copy) NSUnitVolume *gallons;
@property (class, readonly, copy) NSUnitVolume *imperialTeaspoons;
@property (class, readonly, copy) NSUnitVolume *imperialTablespoons;
@property (class, readonly, copy) NSUnitVolume *imperialFluidOunces;
@property (class, readonly, copy) NSUnitVolume *imperialPints;
@property (class, readonly, copy) NSUnitVolume *imperialQuarts;
@property (class, readonly, copy) NSUnitVolume *imperialGallons;
@property (class, readonly, copy) NSUnitVolume *metricCups;
/* @end */
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
__attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSMeasurement
#define _REWRITER_typedef_NSMeasurement
typedef struct objc_object NSMeasurement;
typedef struct {} _objc_exc_NSMeasurement;
#endif
struct NSMeasurement_IMPL {
struct NSObject_IMPL NSObject_IVARS;
UnitType _unit;
double _doubleValue;
};
// @property (readonly, copy) UnitType unit;
// @property (readonly) double doubleValue;
// - (instancetype)init __attribute__((availability(macos,unavailable))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// - (instancetype)initWithDoubleValue:(double)doubleValue unit:(UnitType)unit __attribute__((objc_designated_initializer));
// - (BOOL)canBeConvertedToUnit:(NSUnit *)unit;
// - (NSMeasurement *)measurementByConvertingToUnit:(NSUnit *)unit;
// - (NSMeasurement<UnitType> *)measurementByAddingMeasurement:(NSMeasurement<UnitType> *)measurement;
// - (NSMeasurement<UnitType> *)measurementBySubtractingMeasurement:(NSMeasurement<UnitType> *)measurement;
/* @end */
#pragma clang assume_nonnull end
// @class NSLocale;
#ifndef _REWRITER_typedef_NSLocale
#define _REWRITER_typedef_NSLocale
typedef struct objc_object NSLocale;
typedef struct {} _objc_exc_NSLocale;
#endif
#ifndef _REWRITER_typedef_NSError
#define _REWRITER_typedef_NSError
typedef struct objc_object NSError;
typedef struct {} _objc_exc_NSError;
#endif
#ifndef _REWRITER_typedef_NSMutableDictionary
#define _REWRITER_typedef_NSMutableDictionary
typedef struct objc_object NSMutableDictionary;
typedef struct {} _objc_exc_NSMutableDictionary;
#endif
#ifndef _REWRITER_typedef_NSRecursiveLock
#define _REWRITER_typedef_NSRecursiveLock
typedef struct objc_object NSRecursiveLock;
typedef struct {} _objc_exc_NSRecursiveLock;
#endif
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#ifndef _REWRITER_typedef_NSCache
#define _REWRITER_typedef_NSCache
typedef struct objc_object NSCache;
typedef struct {} _objc_exc_NSCache;
#endif
#pragma clang assume_nonnull begin
typedef NSUInteger NSNumberFormatterBehavior; enum {
NSNumberFormatterBehaviorDefault = 0,
NSNumberFormatterBehavior10_4 = 1040,
};
#ifndef _REWRITER_typedef_NSNumberFormatter
#define _REWRITER_typedef_NSNumberFormatter
typedef struct objc_object NSNumberFormatter;
typedef struct {} _objc_exc_NSNumberFormatter;
#endif
struct NSNumberFormatter_IMPL {
struct NSFormatter_IMPL NSFormatter_IVARS;
NSMutableDictionary *_attributes;
CFNumberFormatterRef _formatter;
NSUInteger _counter;
NSNumberFormatterBehavior _behavior;
NSRecursiveLock *_lock;
unsigned long _stateBitMask;
NSInteger _cacheGeneration;
void *_reserved[8];
};
// @property NSFormattingContext formattingContext __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)getObjectValue:(out id _Nullable * _Nullable)obj forString:(NSString *)string range:(inout nullable NSRange *)rangep error:(out NSError **)error;
// - (nullable NSString *)stringFromNumber:(NSNumber *)number;
// - (nullable NSNumber *)numberFromString:(NSString *)string;
typedef NSUInteger NSNumberFormatterStyle; enum {
NSNumberFormatterNoStyle = kCFNumberFormatterNoStyle,
NSNumberFormatterDecimalStyle = kCFNumberFormatterDecimalStyle,
NSNumberFormatterCurrencyStyle = kCFNumberFormatterCurrencyStyle,
NSNumberFormatterPercentStyle = kCFNumberFormatterPercentStyle,
NSNumberFormatterScientificStyle = kCFNumberFormatterScientificStyle,
NSNumberFormatterSpellOutStyle = kCFNumberFormatterSpellOutStyle,
NSNumberFormatterOrdinalStyle __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = kCFNumberFormatterOrdinalStyle,
NSNumberFormatterCurrencyISOCodeStyle __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = kCFNumberFormatterCurrencyISOCodeStyle,
NSNumberFormatterCurrencyPluralStyle __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = kCFNumberFormatterCurrencyPluralStyle,
NSNumberFormatterCurrencyAccountingStyle __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = kCFNumberFormatterCurrencyAccountingStyle,
};
// + (NSString *)localizedStringFromNumber:(NSNumber *)num numberStyle:(NSNumberFormatterStyle)nstyle __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSNumberFormatterBehavior)defaultFormatterBehavior;
// + (void)setDefaultFormatterBehavior:(NSNumberFormatterBehavior)behavior;
// @property NSNumberFormatterStyle numberStyle;
// @property (null_resettable, copy) NSLocale *locale;
// @property BOOL generatesDecimalNumbers;
// @property NSNumberFormatterBehavior formatterBehavior;
// @property (null_resettable, copy) NSString *negativeFormat;
// @property (nullable, copy) NSDictionary<NSString *, id> *textAttributesForNegativeValues;
// @property (null_resettable, copy) NSString *positiveFormat;
// @property (nullable, copy) NSDictionary<NSString *, id> *textAttributesForPositiveValues;
// @property BOOL allowsFloats;
// @property (null_resettable, copy) NSString *decimalSeparator;
// @property BOOL alwaysShowsDecimalSeparator;
// @property (null_resettable, copy) NSString *currencyDecimalSeparator;
// @property BOOL usesGroupingSeparator;
// @property (null_resettable, copy) NSString *groupingSeparator;
// @property (nullable, copy) NSString *zeroSymbol;
// @property (nullable, copy) NSDictionary<NSString *, id> *textAttributesForZero;
// @property (copy) NSString *nilSymbol;
// @property (nullable, copy) NSDictionary<NSString *, id> *textAttributesForNil;
// @property (null_resettable, copy) NSString *notANumberSymbol;
// @property (nullable, copy) NSDictionary<NSString *, id> *textAttributesForNotANumber;
// @property (copy) NSString *positiveInfinitySymbol;
// @property (nullable, copy) NSDictionary<NSString *, id> *textAttributesForPositiveInfinity;
// @property (copy) NSString *negativeInfinitySymbol;
// @property (nullable, copy) NSDictionary<NSString *, id> *textAttributesForNegativeInfinity;
// @property (null_resettable, copy) NSString *positivePrefix;
// @property (null_resettable, copy) NSString *positiveSuffix;
// @property (null_resettable, copy) NSString *negativePrefix;
// @property (null_resettable, copy) NSString *negativeSuffix;
// @property (null_resettable, copy) NSString *currencyCode;
// @property (null_resettable, copy) NSString *currencySymbol;
// @property (null_resettable, copy) NSString *internationalCurrencySymbol;
// @property (null_resettable, copy) NSString *percentSymbol;
// @property (null_resettable, copy) NSString *perMillSymbol;
// @property (null_resettable, copy) NSString *minusSign;
// @property (null_resettable, copy) NSString *plusSign;
// @property (null_resettable, copy) NSString *exponentSymbol;
// @property NSUInteger groupingSize;
// @property NSUInteger secondaryGroupingSize;
// @property (nullable, copy) NSNumber *multiplier;
// @property NSUInteger formatWidth;
// @property (null_resettable, copy) NSString *paddingCharacter;
typedef NSUInteger NSNumberFormatterPadPosition; enum {
NSNumberFormatterPadBeforePrefix = kCFNumberFormatterPadBeforePrefix,
NSNumberFormatterPadAfterPrefix = kCFNumberFormatterPadAfterPrefix,
NSNumberFormatterPadBeforeSuffix = kCFNumberFormatterPadBeforeSuffix,
NSNumberFormatterPadAfterSuffix = kCFNumberFormatterPadAfterSuffix
};
typedef NSUInteger NSNumberFormatterRoundingMode; enum {
NSNumberFormatterRoundCeiling = kCFNumberFormatterRoundCeiling,
NSNumberFormatterRoundFloor = kCFNumberFormatterRoundFloor,
NSNumberFormatterRoundDown = kCFNumberFormatterRoundDown,
NSNumberFormatterRoundUp = kCFNumberFormatterRoundUp,
NSNumberFormatterRoundHalfEven = kCFNumberFormatterRoundHalfEven,
NSNumberFormatterRoundHalfDown = kCFNumberFormatterRoundHalfDown,
NSNumberFormatterRoundHalfUp = kCFNumberFormatterRoundHalfUp
};
// @property NSNumberFormatterPadPosition paddingPosition;
// @property NSNumberFormatterRoundingMode roundingMode;
// @property (null_resettable, copy) NSNumber *roundingIncrement;
// @property NSUInteger minimumIntegerDigits;
// @property NSUInteger maximumIntegerDigits;
// @property NSUInteger minimumFractionDigits;
// @property NSUInteger maximumFractionDigits;
// @property (nullable, copy) NSNumber *minimum;
// @property (nullable, copy) NSNumber *maximum;
// @property (null_resettable, copy) NSString *currencyGroupingSeparator __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (getter=isLenient) BOOL lenient __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property BOOL usesSignificantDigits __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property NSUInteger minimumSignificantDigits __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property NSUInteger maximumSignificantDigits __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (getter=isPartialStringValidationEnabled) BOOL partialStringValidationEnabled __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @class NSDecimalNumberHandler;
#ifndef _REWRITER_typedef_NSDecimalNumberHandler
#define _REWRITER_typedef_NSDecimalNumberHandler
typedef struct objc_object NSDecimalNumberHandler;
typedef struct {} _objc_exc_NSDecimalNumberHandler;
#endif
#pragma clang assume_nonnull end
// @class NSCalendar;
#ifndef _REWRITER_typedef_NSCalendar
#define _REWRITER_typedef_NSCalendar
typedef struct objc_object NSCalendar;
typedef struct {} _objc_exc_NSCalendar;
#endif
typedef NSString * NSLocaleKey __attribute__((swift_wrapper(enum)));
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#pragma clang assume_nonnull begin
#ifndef _REWRITER_typedef_NSLocale
#define _REWRITER_typedef_NSLocale
typedef struct objc_object NSLocale;
typedef struct {} _objc_exc_NSLocale;
#endif
struct NSLocale_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// - (nullable id)objectForKey:(NSLocaleKey)key;
// - (nullable NSString *)displayNameForKey:(NSLocaleKey)key value:(id)value;
// - (instancetype)initWithLocaleIdentifier:(NSString *)string __attribute__((objc_designated_initializer));
// - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer));
/* @end */
// @interface NSLocale (NSExtendedLocale)
// @property (readonly, copy) NSString *localeIdentifier;
// - (NSString *)localizedStringForLocaleIdentifier:(NSString *)localeIdentifier __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// @property (readonly, copy) NSString *languageCode __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// - (nullable NSString *)localizedStringForLanguageCode:(NSString *)languageCode __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// @property (nullable, readonly, copy) NSString *countryCode __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// - (nullable NSString *)localizedStringForCountryCode:(NSString *)countryCode __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// @property (nullable, readonly, copy) NSString *scriptCode __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// - (nullable NSString *)localizedStringForScriptCode:(NSString *)scriptCode __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// @property (nullable, readonly, copy) NSString *variantCode __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// - (nullable NSString *)localizedStringForVariantCode:(NSString *)variantCode __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// @property (readonly, copy) NSCharacterSet *exemplarCharacterSet __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// @property (readonly, copy) NSString *calendarIdentifier __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// - (nullable NSString *)localizedStringForCalendarIdentifier:(NSString *)calendarIdentifier __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// @property (nullable, readonly, copy) NSString *collationIdentifier __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// - (nullable NSString *)localizedStringForCollationIdentifier:(NSString *)collationIdentifier __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// @property (readonly) BOOL usesMetricSystem __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// @property (readonly, copy) NSString *decimalSeparator __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// @property (readonly, copy) NSString *groupingSeparator __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// @property (readonly, copy) NSString *currencySymbol __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// @property (nullable, readonly, copy) NSString *currencyCode __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// - (nullable NSString *)localizedStringForCurrencyCode:(NSString *)currencyCode __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// @property (readonly, copy) NSString *collatorIdentifier __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// - (nullable NSString *)localizedStringForCollatorIdentifier:(NSString *)collatorIdentifier __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// @property (readonly, copy) NSString *quotationBeginDelimiter __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// @property (readonly, copy) NSString *quotationEndDelimiter __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// @property (readonly, copy) NSString *alternateQuotationBeginDelimiter __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// @property (readonly, copy) NSString *alternateQuotationEndDelimiter __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
/* @end */
// @interface NSLocale (NSLocaleCreation)
@property (class, readonly, strong) NSLocale *autoupdatingCurrentLocale __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
@property (class, readonly, copy) NSLocale *currentLocale;
@property (class, readonly, copy) NSLocale *systemLocale;
// + (instancetype)localeWithLocaleIdentifier:(NSString *)ident __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (instancetype)init __attribute__((availability(macos,unavailable))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
/* @end */
// @interface NSLocale (NSLocaleGeneralInfo)
@property (class, readonly, copy) NSArray<NSString *> *availableLocaleIdentifiers;
@property (class, readonly, copy) NSArray<NSString *> *ISOLanguageCodes;
@property (class, readonly, copy) NSArray<NSString *> *ISOCountryCodes;
@property (class, readonly, copy) NSArray<NSString *> *ISOCurrencyCodes;
@property (class, readonly, copy) NSArray<NSString *> *commonISOCurrencyCodes __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
@property (class, readonly, copy) NSArray<NSString *> *preferredLanguages __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSDictionary<NSString *, NSString *> *)componentsFromLocaleIdentifier:(NSString *)string;
// + (NSString *)localeIdentifierFromComponents:(NSDictionary<NSString *, NSString *> *)dict;
// + (NSString *)canonicalLocaleIdentifierFromString:(NSString *)string;
// + (NSString *)canonicalLanguageIdentifierFromString:(NSString *)string;
// + (nullable NSString *)localeIdentifierFromWindowsLocaleCode:(uint32_t)lcid __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (uint32_t)windowsLocaleCodeFromLocaleIdentifier:(NSString *)localeIdentifier __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef NSUInteger NSLocaleLanguageDirection; enum {
NSLocaleLanguageDirectionUnknown = kCFLocaleLanguageDirectionUnknown,
NSLocaleLanguageDirectionLeftToRight = kCFLocaleLanguageDirectionLeftToRight,
NSLocaleLanguageDirectionRightToLeft = kCFLocaleLanguageDirectionRightToLeft,
NSLocaleLanguageDirectionTopToBottom = kCFLocaleLanguageDirectionTopToBottom,
NSLocaleLanguageDirectionBottomToTop = kCFLocaleLanguageDirectionBottomToTop
};
// + (NSLocaleLanguageDirection)characterDirectionForLanguage:(NSString *)isoLangCode __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSLocaleLanguageDirection)lineDirectionForLanguage:(NSString *)isoLangCode __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
extern "C" NSNotificationName const NSCurrentLocaleDidChangeNotification __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLocaleKey const NSLocaleIdentifier;
extern "C" NSLocaleKey const NSLocaleLanguageCode;
extern "C" NSLocaleKey const NSLocaleCountryCode;
extern "C" NSLocaleKey const NSLocaleScriptCode;
extern "C" NSLocaleKey const NSLocaleVariantCode;
extern "C" NSLocaleKey const NSLocaleExemplarCharacterSet;
extern "C" NSLocaleKey const NSLocaleCalendar;
extern "C" NSLocaleKey const NSLocaleCollationIdentifier;
extern "C" NSLocaleKey const NSLocaleUsesMetricSystem;
extern "C" NSLocaleKey const NSLocaleMeasurementSystem;
extern "C" NSLocaleKey const NSLocaleDecimalSeparator;
extern "C" NSLocaleKey const NSLocaleGroupingSeparator;
extern "C" NSLocaleKey const NSLocaleCurrencySymbol;
extern "C" NSLocaleKey const NSLocaleCurrencyCode;
extern "C" NSLocaleKey const NSLocaleCollatorIdentifier __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLocaleKey const NSLocaleQuotationBeginDelimiterKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLocaleKey const NSLocaleQuotationEndDelimiterKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLocaleKey const NSLocaleAlternateQuotationBeginDelimiterKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLocaleKey const NSLocaleAlternateQuotationEndDelimiterKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSGregorianCalendar __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarIdentifierGregorian"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarIdentifierGregorian"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarIdentifierGregorian"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarIdentifierGregorian")));
extern "C" NSString * const NSBuddhistCalendar __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarIdentifierBuddhist"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarIdentifierBuddhist"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarIdentifierBuddhist"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarIdentifierBuddhist")));
extern "C" NSString * const NSChineseCalendar __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarIdentifierChinese"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarIdentifierChinese"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarIdentifierChinese"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarIdentifierChinese")));
extern "C" NSString * const NSHebrewCalendar __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarIdentifierHebrew"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarIdentifierHebrew"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarIdentifierHebrew"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarIdentifierHebrew")));
extern "C" NSString * const NSIslamicCalendar __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarIdentifierIslamic"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarIdentifierIslamic"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarIdentifierIslamic"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarIdentifierIslamic")));
extern "C" NSString * const NSIslamicCivilCalendar __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarIdentifierIslamicCivil"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarIdentifierIslamicCivil"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarIdentifierIslamicCivil"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarIdentifierIslamicCivil")));
extern "C" NSString * const NSJapaneseCalendar __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarIdentifierJapanese"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarIdentifierJapanese"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarIdentifierJapanese"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarIdentifierJapanese")));
extern "C" NSString * const NSRepublicOfChinaCalendar __attribute__((availability(macos,introduced=10.6,deprecated=10.10,replacement="NSCalendarIdentifierRepublicOfChina"))) __attribute__((availability(ios,introduced=4.0,deprecated=8.0,replacement="NSCalendarIdentifierRepublicOfChina"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarIdentifierRepublicOfChina"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarIdentifierRepublicOfChina")));
extern "C" NSString * const NSPersianCalendar __attribute__((availability(macos,introduced=10.6,deprecated=10.10,replacement="NSCalendarIdentifierPersian"))) __attribute__((availability(ios,introduced=4.0,deprecated=8.0,replacement="NSCalendarIdentifierPersian"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarIdentifierPersian"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarIdentifierPersian")));
extern "C" NSString * const NSIndianCalendar __attribute__((availability(macos,introduced=10.6,deprecated=10.10,replacement="NSCalendarIdentifierIndian"))) __attribute__((availability(ios,introduced=4.0,deprecated=8.0,replacement="NSCalendarIdentifierIndian"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarIdentifierIndian"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarIdentifierIndian")));
extern "C" NSString * const NSISO8601Calendar __attribute__((availability(macos,introduced=10.6,deprecated=10.10,replacement="NSCalendarIdentifierISO8601"))) __attribute__((availability(ios,introduced=4.0,deprecated=8.0,replacement="NSCalendarIdentifierISO8601"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarIdentifierISO8601"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarIdentifierISO8601")));
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
typedef NSUInteger NSMeasurementFormatterUnitOptions; enum {
NSMeasurementFormatterUnitOptionsProvidedUnit = (1UL << 0),
NSMeasurementFormatterUnitOptionsNaturalScale = (1UL << 1),
NSMeasurementFormatterUnitOptionsTemperatureWithoutUnit = (1UL << 2),
} __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSMeasurementFormatter
#define _REWRITER_typedef_NSMeasurementFormatter
typedef struct objc_object NSMeasurementFormatter;
typedef struct {} _objc_exc_NSMeasurementFormatter;
#endif
struct NSMeasurementFormatter_IMPL {
struct NSFormatter_IMPL NSFormatter_IVARS;
void *_formatter;
};
// @property NSMeasurementFormatterUnitOptions unitOptions;
// @property NSFormattingUnitStyle unitStyle;
// @property (null_resettable, copy) NSLocale *locale;
// @property (null_resettable, copy) NSNumberFormatter *numberFormatter;
// - (NSString *)stringFromMeasurement:(NSMeasurement *)measurement;
// - (NSString *)stringFromUnit:(NSUnit *)unit;
/* @end */
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
__attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSPersonNameComponents
#define _REWRITER_typedef_NSPersonNameComponents
typedef struct objc_object NSPersonNameComponents;
typedef struct {} _objc_exc_NSPersonNameComponents;
#endif
struct NSPersonNameComponents_IMPL {
struct NSObject_IMPL NSObject_IVARS;
id _private;
};
// @property (copy, nullable) NSString *namePrefix;
// @property (copy, nullable) NSString *givenName;
// @property (copy, nullable) NSString *middleName;
// @property (copy, nullable) NSString *familyName;
// @property (copy, nullable) NSString *nameSuffix;
// @property (copy, nullable) NSString *nickname;
// @property (copy, nullable) NSPersonNameComponents *phoneticRepresentation;
/* @end */
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
typedef NSInteger NSPersonNameComponentsFormatterStyle; enum {
NSPersonNameComponentsFormatterStyleDefault = 0,
NSPersonNameComponentsFormatterStyleShort,
NSPersonNameComponentsFormatterStyleMedium,
NSPersonNameComponentsFormatterStyleLong,
NSPersonNameComponentsFormatterStyleAbbreviated
} __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef NSUInteger NSPersonNameComponentsFormatterOptions; enum {
NSPersonNameComponentsFormatterPhonetic = (1UL << 1)
} __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
__attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSPersonNameComponentsFormatter
#define _REWRITER_typedef_NSPersonNameComponentsFormatter
typedef struct objc_object NSPersonNameComponentsFormatter;
typedef struct {} _objc_exc_NSPersonNameComponentsFormatter;
#endif
struct NSPersonNameComponentsFormatter_IMPL {
struct NSFormatter_IMPL NSFormatter_IVARS;
id _private;
};
// @property NSPersonNameComponentsFormatterStyle style;
// @property (getter=isPhonetic) BOOL phonetic;
#if 0
+ (NSString *)localizedStringFromPersonNameComponents:(NSPersonNameComponents *)components
style:(NSPersonNameComponentsFormatterStyle)nameFormatStyle
options:(NSPersonNameComponentsFormatterOptions)nameOptions;
#endif
// - (NSString *)stringFromPersonNameComponents:(NSPersonNameComponents *)components;
// - (NSAttributedString *)annotatedStringFromPersonNameComponents:(NSPersonNameComponents *)components;
// - (nullable NSPersonNameComponents *)personNameComponentsFromString:(nonnull NSString *)string __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// - (BOOL)getObjectValue:(out id _Nullable * _Nullable)obj forString:(NSString *)string errorDescription:(out NSString * _Nullable * _Nullable)error;
/* @end */
extern "C" NSString * const NSPersonNameComponentKey __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSPersonNameComponentGivenName __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSPersonNameComponentFamilyName __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSPersonNameComponentMiddleName __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSPersonNameComponentPrefix __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSPersonNameComponentSuffix __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSPersonNameComponentNickname __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSPersonNameComponentDelimiter __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
#pragma clang assume_nonnull end
// @class NSCalendar;
#ifndef _REWRITER_typedef_NSCalendar
#define _REWRITER_typedef_NSCalendar
typedef struct objc_object NSCalendar;
typedef struct {} _objc_exc_NSCalendar;
#endif
#ifndef _REWRITER_typedef_NSLocale
#define _REWRITER_typedef_NSLocale
typedef struct objc_object NSLocale;
typedef struct {} _objc_exc_NSLocale;
#endif
#ifndef _REWRITER_typedef_NSDateComponents
#define _REWRITER_typedef_NSDateComponents
typedef struct objc_object NSDateComponents;
typedef struct {} _objc_exc_NSDateComponents;
#endif
#pragma clang assume_nonnull begin
typedef NSInteger NSRelativeDateTimeFormatterStyle; enum {
NSRelativeDateTimeFormatterStyleNumeric = 0,
NSRelativeDateTimeFormatterStyleNamed,
} __attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
typedef NSInteger NSRelativeDateTimeFormatterUnitsStyle; enum {
NSRelativeDateTimeFormatterUnitsStyleFull = 0,
NSRelativeDateTimeFormatterUnitsStyleSpellOut,
NSRelativeDateTimeFormatterUnitsStyleShort,
NSRelativeDateTimeFormatterUnitsStyleAbbreviated,
} __attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
__attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)))
#ifndef _REWRITER_typedef_NSRelativeDateTimeFormatter
#define _REWRITER_typedef_NSRelativeDateTimeFormatter
typedef struct objc_object NSRelativeDateTimeFormatter;
typedef struct {} _objc_exc_NSRelativeDateTimeFormatter;
#endif
struct NSRelativeDateTimeFormatter_IMPL {
struct NSFormatter_IMPL NSFormatter_IVARS;
};
// @property NSRelativeDateTimeFormatterStyle dateTimeStyle;
// @property NSRelativeDateTimeFormatterUnitsStyle unitsStyle;
// @property NSFormattingContext formattingContext;
// @property (null_resettable, copy) NSCalendar *calendar;
// @property (null_resettable, copy) NSLocale *locale;
// - (NSString *)localizedStringFromDateComponents:(NSDateComponents *)dateComponents;
// - (NSString *)localizedStringFromTimeInterval:(NSTimeInterval)timeInterval;
// - (NSString *)localizedStringForDate:(NSDate *)date relativeToDate:(NSDate *)referenceDate;
// - (nullable NSString *)stringForObjectValue:(nullable id)obj;
/* @end */
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)))
#ifndef _REWRITER_typedef_NSListFormatter
#define _REWRITER_typedef_NSListFormatter
typedef struct objc_object NSListFormatter;
typedef struct {} _objc_exc_NSListFormatter;
#endif
struct NSListFormatter_IMPL {
struct NSFormatter_IMPL NSFormatter_IVARS;
};
// @property (null_resettable, copy) NSLocale *locale;
// @property (nullable, copy) NSFormatter *itemFormatter;
// + (NSString *)localizedStringByJoiningStrings:(NSArray<NSString *> *)strings;
// - (nullable NSString *)stringFromItems:(NSArray *)items;
// - (nullable NSString *)stringForObjectValue:(nullable id)obj;
/* @end */
#pragma clang assume_nonnull end
// @class NSDictionary;
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
#pragma clang assume_nonnull begin
typedef NSUInteger NSRoundingMode; enum {
NSRoundPlain,
NSRoundDown,
NSRoundUp,
NSRoundBankers
};
typedef NSUInteger NSCalculationError; enum {
NSCalculationNoError = 0,
NSCalculationLossOfPrecision,
NSCalculationUnderflow,
NSCalculationOverflow,
NSCalculationDivideByZero
};
typedef struct {
signed int _exponent:8;
unsigned int _length:4;
unsigned int _isNegative:1;
unsigned int _isCompact:1;
unsigned int _reserved:18;
unsigned short _mantissa[(8)];
} NSDecimal;
static __inline__ __attribute__((always_inline)) BOOL NSDecimalIsNotANumber(const NSDecimal *dcm)
{ return ((dcm->_length == 0) && dcm->_isNegative); }
extern "C" void NSDecimalCopy(NSDecimal *destination, const NSDecimal *source);
extern "C" void NSDecimalCompact(NSDecimal *number);
extern "C" NSComparisonResult NSDecimalCompare(const NSDecimal *leftOperand, const NSDecimal *rightOperand);
extern "C" void NSDecimalRound(NSDecimal *result, const NSDecimal *number, NSInteger scale, NSRoundingMode roundingMode);
extern "C" NSCalculationError NSDecimalNormalize(NSDecimal *number1, NSDecimal *number2, NSRoundingMode roundingMode);
extern "C" NSCalculationError NSDecimalAdd(NSDecimal *result, const NSDecimal *leftOperand, const NSDecimal *rightOperand, NSRoundingMode roundingMode);
extern "C" NSCalculationError NSDecimalSubtract(NSDecimal *result, const NSDecimal *leftOperand, const NSDecimal *rightOperand, NSRoundingMode roundingMode);
extern "C" NSCalculationError NSDecimalMultiply(NSDecimal *result, const NSDecimal *leftOperand, const NSDecimal *rightOperand, NSRoundingMode roundingMode);
extern "C" NSCalculationError NSDecimalDivide(NSDecimal *result, const NSDecimal *leftOperand, const NSDecimal *rightOperand, NSRoundingMode roundingMode);
extern "C" NSCalculationError NSDecimalPower(NSDecimal *result, const NSDecimal *number, NSUInteger power, NSRoundingMode roundingMode);
extern "C" NSCalculationError NSDecimalMultiplyByPowerOf10(NSDecimal *result, const NSDecimal *number, short power, NSRoundingMode roundingMode);
extern "C" NSString *NSDecimalString(const NSDecimal *dcm, id _Nullable locale);
#pragma clang assume_nonnull end
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#ifndef _REWRITER_typedef_NSCharacterSet
#define _REWRITER_typedef_NSCharacterSet
typedef struct objc_object NSCharacterSet;
typedef struct {} _objc_exc_NSCharacterSet;
#endif
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
#pragma clang assume_nonnull begin
#ifndef _REWRITER_typedef_NSScanner
#define _REWRITER_typedef_NSScanner
typedef struct objc_object NSScanner;
typedef struct {} _objc_exc_NSScanner;
#endif
struct NSScanner_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// @property (readonly, copy) NSString *string;
// @property NSUInteger scanLocation ;
// @property (nullable, copy) NSCharacterSet *charactersToBeSkipped;
// @property BOOL caseSensitive;
// @property (nullable, retain) id locale;
// - (instancetype)initWithString:(NSString *)string __attribute__((objc_designated_initializer));
/* @end */
// @interface NSScanner (NSExtendedScanner)
// - (BOOL)scanInt:(nullable int *)result ;
// - (BOOL)scanInteger:(nullable NSInteger *)result __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) ;
// - (BOOL)scanLongLong:(nullable long long *)result;
// - (BOOL)scanUnsignedLongLong:(nullable unsigned long long *)result __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) ;
// - (BOOL)scanFloat:(nullable float *)result ;
// - (BOOL)scanDouble:(nullable double *)result ;
#if 0
- (BOOL)scanHexInt:(nullable unsigned *)result
;
#endif
#if 0
- (BOOL)scanHexLongLong:(nullable unsigned long long *)result __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
;
#endif
#if 0
- (BOOL)scanHexFloat:(nullable float *)result __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
;
#endif
#if 0
- (BOOL)scanHexDouble:(nullable double *)result __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
;
#endif
// - (BOOL)scanString:(NSString *)string intoString:(NSString * _Nullable * _Nullable)result ;
// - (BOOL)scanCharactersFromSet:(NSCharacterSet *)set intoString:(NSString * _Nullable * _Nullable)result ;
// - (BOOL)scanUpToString:(NSString *)string intoString:(NSString * _Nullable * _Nullable)result ;
// - (BOOL)scanUpToCharactersFromSet:(NSCharacterSet *)set intoString:(NSString * _Nullable * _Nullable)result ;
// @property (getter=isAtEnd, readonly) BOOL atEnd;
// + (instancetype)scannerWithString:(NSString *)string;
// + (id)localizedScannerWithString:(NSString *)string;
/* @end */
#pragma clang assume_nonnull end
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSNumber
#define _REWRITER_typedef_NSNumber
typedef struct objc_object NSNumber;
typedef struct {} _objc_exc_NSNumber;
#endif
#pragma clang assume_nonnull begin
extern "C" NSExceptionName const NSGenericException;
extern "C" NSExceptionName const NSRangeException;
extern "C" NSExceptionName const NSInvalidArgumentException;
extern "C" NSExceptionName const NSInternalInconsistencyException;
extern "C" NSExceptionName const NSMallocException;
extern "C" NSExceptionName const NSObjectInaccessibleException;
extern "C" NSExceptionName const NSObjectNotAvailableException;
extern "C" NSExceptionName const NSDestinationInvalidException;
extern "C" NSExceptionName const NSPortTimeoutException;
extern "C" NSExceptionName const NSInvalidSendPortException;
extern "C" NSExceptionName const NSInvalidReceivePortException;
extern "C" NSExceptionName const NSPortSendException;
extern "C" NSExceptionName const NSPortReceiveException;
extern "C" NSExceptionName const NSOldStyleException;
extern "C" NSExceptionName const NSInconsistentArchiveException;
__attribute__((__objc_exception__))
#ifndef _REWRITER_typedef_NSException
#define _REWRITER_typedef_NSException
typedef struct objc_object NSException;
typedef struct {} _objc_exc_NSException;
#endif
struct NSException_IMPL {
struct NSObject_IMPL NSObject_IVARS;
NSString *name;
NSString *reason;
NSDictionary *userInfo;
id reserved;
};
// + (NSException *)exceptionWithName:(NSExceptionName)name reason:(nullable NSString *)reason userInfo:(nullable NSDictionary *)userInfo;
// - (instancetype)initWithName:(NSExceptionName)aName reason:(nullable NSString *)aReason userInfo:(nullable NSDictionary *)aUserInfo __attribute__((objc_designated_initializer));
// @property (readonly, copy) NSExceptionName name;
// @property (nullable, readonly, copy) NSString *reason;
// @property (nullable, readonly, copy) NSDictionary *userInfo;
// @property (readonly, copy) NSArray<NSNumber *> *callStackReturnAddresses __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSArray<NSString *> *callStackSymbols __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)raise;
/* @end */
// @interface NSException (NSExceptionRaisingConveniences)
// + (void)raise:(NSExceptionName)name format:(NSString *)format, ... __attribute__((format(__NSString__, 2, 3)));
// + (void)raise:(NSExceptionName)name format:(NSString *)format arguments:(va_list)argList __attribute__((format(__NSString__, 2, 0)));
/* @end */
typedef void NSUncaughtExceptionHandler(NSException *exception);
extern "C" NSUncaughtExceptionHandler * _Nullable NSGetUncaughtExceptionHandler(void);
extern "C" void NSSetUncaughtExceptionHandler(NSUncaughtExceptionHandler * _Nullable);
// @class NSAssertionHandler;
#ifndef _REWRITER_typedef_NSAssertionHandler
#define _REWRITER_typedef_NSAssertionHandler
typedef struct objc_object NSAssertionHandler;
typedef struct {} _objc_exc_NSAssertionHandler;
#endif
extern "C" NSString * const NSAssertionHandlerKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
#ifndef _REWRITER_typedef_NSAssertionHandler
#define _REWRITER_typedef_NSAssertionHandler
typedef struct objc_object NSAssertionHandler;
typedef struct {} _objc_exc_NSAssertionHandler;
#endif
struct NSAssertionHandler_IMPL {
struct NSObject_IMPL NSObject_IVARS;
void *_reserved;
};
@property (class, readonly, strong) NSAssertionHandler *currentHandler;
// - (void)handleFailureInMethod:(SEL)selector object:(id)object file:(NSString *)fileName lineNumber:(NSInteger)line description:(nullable NSString *)format,... __attribute__((format(__NSString__, 5, 6)));
// - (void)handleFailureInFunction:(NSString *)functionName file:(NSString *)fileName lineNumber:(NSInteger)line description:(nullable NSString *)format,... __attribute__((format(__NSString__, 4, 5)));
/* @end */
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
extern "C" NSExceptionName const NSDecimalNumberExactnessException;
extern "C" NSExceptionName const NSDecimalNumberOverflowException;
extern "C" NSExceptionName const NSDecimalNumberUnderflowException;
extern "C" NSExceptionName const NSDecimalNumberDivideByZeroException;
// @class NSDecimalNumber;
#ifndef _REWRITER_typedef_NSDecimalNumber
#define _REWRITER_typedef_NSDecimalNumber
typedef struct objc_object NSDecimalNumber;
typedef struct {} _objc_exc_NSDecimalNumber;
#endif
// @protocol NSDecimalNumberBehaviors
// - (NSRoundingMode)roundingMode;
// - (short)scale;
// - (nullable NSDecimalNumber *)exceptionDuringOperation:(SEL)operation error:(NSCalculationError)error leftOperand:(NSDecimalNumber *)leftOperand rightOperand:(nullable NSDecimalNumber *)rightOperand;
/* @end */
#ifndef _REWRITER_typedef_NSDecimalNumber
#define _REWRITER_typedef_NSDecimalNumber
typedef struct objc_object NSDecimalNumber;
typedef struct {} _objc_exc_NSDecimalNumber;
#endif
struct NSDecimalNumber__T_1 {
int _exponent : 8;
unsigned int _length : 4;
unsigned int _isNegative : 1;
unsigned int _isCompact : 1;
unsigned int _reserved : 1;
unsigned int _hasExternalRefCount : 1;
unsigned int _refs : 16;
} ;
struct NSDecimalNumber_IMPL {
struct NSNumber_IMPL NSNumber_IVARS;
struct NSDecimalNumber__T_1 NSDecimalNumber__GRBF_1;
unsigned short _mantissa[0];
};
// - (instancetype)initWithMantissa:(unsigned long long)mantissa exponent:(short)exponent isNegative:(BOOL)flag;
// - (instancetype)initWithDecimal:(NSDecimal)dcm __attribute__((objc_designated_initializer));
// - (instancetype)initWithString:(nullable NSString *)numberValue;
// - (instancetype)initWithString:(nullable NSString *)numberValue locale:(nullable id)locale;
// - (NSString *)descriptionWithLocale:(nullable id)locale;
// @property (readonly) NSDecimal decimalValue;
// + (NSDecimalNumber *)decimalNumberWithMantissa:(unsigned long long)mantissa exponent:(short)exponent isNegative:(BOOL)flag;
// + (NSDecimalNumber *)decimalNumberWithDecimal:(NSDecimal)dcm;
// + (NSDecimalNumber *)decimalNumberWithString:(nullable NSString *)numberValue;
// + (NSDecimalNumber *)decimalNumberWithString:(nullable NSString *)numberValue locale:(nullable id)locale;
@property (class, readonly, copy) NSDecimalNumber *zero;
@property (class, readonly, copy) NSDecimalNumber *one;
@property (class, readonly, copy) NSDecimalNumber *minimumDecimalNumber;
@property (class, readonly, copy) NSDecimalNumber *maximumDecimalNumber;
@property (class, readonly, copy) NSDecimalNumber *notANumber;
// - (NSDecimalNumber *)decimalNumberByAdding:(NSDecimalNumber *)decimalNumber;
// - (NSDecimalNumber *)decimalNumberByAdding:(NSDecimalNumber *)decimalNumber withBehavior:(nullable id <NSDecimalNumberBehaviors>)behavior;
// - (NSDecimalNumber *)decimalNumberBySubtracting:(NSDecimalNumber *)decimalNumber;
// - (NSDecimalNumber *)decimalNumberBySubtracting:(NSDecimalNumber *)decimalNumber withBehavior:(nullable id <NSDecimalNumberBehaviors>)behavior;
// - (NSDecimalNumber *)decimalNumberByMultiplyingBy:(NSDecimalNumber *)decimalNumber;
// - (NSDecimalNumber *)decimalNumberByMultiplyingBy:(NSDecimalNumber *)decimalNumber withBehavior:(nullable id <NSDecimalNumberBehaviors>)behavior;
// - (NSDecimalNumber *)decimalNumberByDividingBy:(NSDecimalNumber *)decimalNumber;
// - (NSDecimalNumber *)decimalNumberByDividingBy:(NSDecimalNumber *)decimalNumber withBehavior:(nullable id <NSDecimalNumberBehaviors>)behavior;
// - (NSDecimalNumber *)decimalNumberByRaisingToPower:(NSUInteger)power;
// - (NSDecimalNumber *)decimalNumberByRaisingToPower:(NSUInteger)power withBehavior:(nullable id <NSDecimalNumberBehaviors>)behavior;
// - (NSDecimalNumber *)decimalNumberByMultiplyingByPowerOf10:(short)power;
// - (NSDecimalNumber *)decimalNumberByMultiplyingByPowerOf10:(short)power withBehavior:(nullable id <NSDecimalNumberBehaviors>)behavior;
// - (NSDecimalNumber *)decimalNumberByRoundingAccordingToBehavior:(nullable id <NSDecimalNumberBehaviors>)behavior;
// - (NSComparisonResult)compare:(NSNumber *)decimalNumber;
@property (class, strong) id <NSDecimalNumberBehaviors> defaultBehavior;
// @property (readonly) const char *objCType __attribute__((objc_returns_inner_pointer));
// @property (readonly) double doubleValue;
/* @end */
#ifndef _REWRITER_typedef_NSDecimalNumberHandler
#define _REWRITER_typedef_NSDecimalNumberHandler
typedef struct objc_object NSDecimalNumberHandler;
typedef struct {} _objc_exc_NSDecimalNumberHandler;
#endif
struct NSDecimalNumberHandler__T_1 {
int _scale : 16;
unsigned int _roundingMode : 3;
unsigned int _raiseOnExactness : 1;
unsigned int _raiseOnOverflow : 1;
unsigned int _raiseOnUnderflow : 1;
unsigned int _raiseOnDivideByZero : 1;
unsigned int _unused : 9;
} ;
struct NSDecimalNumberHandler_IMPL {
struct NSObject_IMPL NSObject_IVARS;
struct NSDecimalNumberHandler__T_1 NSDecimalNumberHandler__GRBF_1;
void *_reserved2;
void *_reserved;
};
@property (class, readonly, strong) NSDecimalNumberHandler *defaultDecimalNumberHandler;
// - (instancetype)initWithRoundingMode:(NSRoundingMode)roundingMode scale:(short)scale raiseOnExactness:(BOOL)exact raiseOnOverflow:(BOOL)overflow raiseOnUnderflow:(BOOL)underflow raiseOnDivideByZero:(BOOL)divideByZero __attribute__((objc_designated_initializer));
// + (instancetype)decimalNumberHandlerWithRoundingMode:(NSRoundingMode)roundingMode scale:(short)scale raiseOnExactness:(BOOL)exact raiseOnOverflow:(BOOL)overflow raiseOnUnderflow:(BOOL)underflow raiseOnDivideByZero:(BOOL)divideByZero;
/* @end */
// @interface NSNumber (NSDecimalNumberExtensions)
// @property (readonly) NSDecimal decimalValue;
/* @end */
// @interface NSScanner (NSDecimalNumberScanning)
#if 0
- (BOOL)scanDecimal:(nullable NSDecimal *)dcm
;
#endif
/* @end */
#pragma clang assume_nonnull end
// @class NSDictionary;
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
typedef NSString *NSErrorDomain;
#pragma clang assume_nonnull begin
extern "C" NSErrorDomain const NSCocoaErrorDomain;
extern "C" NSErrorDomain const NSPOSIXErrorDomain;
extern "C" NSErrorDomain const NSOSStatusErrorDomain;
extern "C" NSErrorDomain const NSMachErrorDomain;
typedef NSString *NSErrorUserInfoKey;
extern "C" NSErrorUserInfoKey const NSUnderlyingErrorKey;
extern "C" NSErrorUserInfoKey const NSLocalizedDescriptionKey;
extern "C" NSErrorUserInfoKey const NSLocalizedFailureReasonErrorKey;
extern "C" NSErrorUserInfoKey const NSLocalizedRecoverySuggestionErrorKey;
extern "C" NSErrorUserInfoKey const NSLocalizedRecoveryOptionsErrorKey;
extern "C" NSErrorUserInfoKey const NSRecoveryAttempterErrorKey;
extern "C" NSErrorUserInfoKey const NSHelpAnchorErrorKey;
extern "C" NSErrorUserInfoKey const NSDebugDescriptionErrorKey __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSErrorUserInfoKey const NSLocalizedFailureErrorKey __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
extern "C" NSErrorUserInfoKey const NSStringEncodingErrorKey ;
extern "C" NSErrorUserInfoKey const NSURLErrorKey;
extern "C" NSErrorUserInfoKey const NSFilePathErrorKey;
#ifndef _REWRITER_typedef_NSError
#define _REWRITER_typedef_NSError
typedef struct objc_object NSError;
typedef struct {} _objc_exc_NSError;
#endif
struct NSError_IMPL {
struct NSObject_IMPL NSObject_IVARS;
void *_reserved;
NSInteger _code;
NSString *_domain;
NSDictionary *_userInfo;
};
// - (instancetype)initWithDomain:(NSErrorDomain)domain code:(NSInteger)code userInfo:(nullable NSDictionary<NSErrorUserInfoKey, id> *)dict __attribute__((objc_designated_initializer));
// + (instancetype)errorWithDomain:(NSErrorDomain)domain code:(NSInteger)code userInfo:(nullable NSDictionary<NSErrorUserInfoKey, id> *)dict;
// @property (readonly, copy) NSErrorDomain domain;
// @property (readonly) NSInteger code;
// @property (readonly, copy) NSDictionary<NSErrorUserInfoKey, id> *userInfo;
// @property (readonly, copy) NSString *localizedDescription;
// @property (nullable, readonly, copy) NSString *localizedFailureReason;
// @property (nullable, readonly, copy) NSString *localizedRecoverySuggestion;
// @property (nullable, readonly, copy) NSArray<NSString *> *localizedRecoveryOptions;
// @property (nullable, readonly, strong) id recoveryAttempter;
// @property (nullable, readonly, copy) NSString *helpAnchor;
// + (void)setUserInfoValueProviderForDomain:(NSErrorDomain)errorDomain provider:(id _Nullable (^ _Nullable)(NSError *err, NSErrorUserInfoKey userInfoKey))provider __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (id _Nullable (^ _Nullable)(NSError *err, NSErrorUserInfoKey userInfoKey))userInfoValueProviderForDomain:(NSErrorDomain)errorDomain __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSObject(NSErrorRecoveryAttempting)
// - (void)attemptRecoveryFromError:(NSError *)error optionIndex:(NSUInteger)recoveryOptionIndex delegate:(nullable id)delegate didRecoverSelector:(nullable SEL)didRecoverSelector contextInfo:(nullable void *)contextInfo;
// - (BOOL)attemptRecoveryFromError:(NSError *)error optionIndex:(NSUInteger)recoveryOptionIndex;
/* @end */
#pragma clang assume_nonnull end
// @class NSTimer;
#ifndef _REWRITER_typedef_NSTimer
#define _REWRITER_typedef_NSTimer
typedef struct objc_object NSTimer;
typedef struct {} _objc_exc_NSTimer;
#endif
#ifndef _REWRITER_typedef_NSPort
#define _REWRITER_typedef_NSPort
typedef struct objc_object NSPort;
typedef struct {} _objc_exc_NSPort;
#endif
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#pragma clang assume_nonnull begin
extern "C" NSRunLoopMode const NSDefaultRunLoopMode;
extern "C" NSRunLoopMode const NSRunLoopCommonModes __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
#ifndef _REWRITER_typedef_NSRunLoop
#define _REWRITER_typedef_NSRunLoop
typedef struct objc_object NSRunLoop;
typedef struct {} _objc_exc_NSRunLoop;
#endif
struct NSRunLoop_IMPL {
struct NSObject_IMPL NSObject_IVARS;
id _rl;
id _dperf;
id _perft;
id _info;
id _ports;
void *_reserved[6];
};
@property (class, readonly, strong) NSRunLoop *currentRunLoop;
@property (class, readonly, strong) NSRunLoop *mainRunLoop __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) NSRunLoopMode currentMode;
// - (CFRunLoopRef)getCFRunLoop __attribute__((cf_returns_not_retained));
// - (void)addTimer:(NSTimer *)timer forMode:(NSRunLoopMode)mode;
// - (void)addPort:(NSPort *)aPort forMode:(NSRunLoopMode)mode;
// - (void)removePort:(NSPort *)aPort forMode:(NSRunLoopMode)mode;
// - (nullable NSDate *)limitDateForMode:(NSRunLoopMode)mode;
// - (void)acceptInputForMode:(NSRunLoopMode)mode beforeDate:(NSDate *)limitDate;
/* @end */
// @interface NSRunLoop (NSRunLoopConveniences)
// - (void)run;
// - (void)runUntilDate:(NSDate *)limitDate;
// - (BOOL)runMode:(NSRunLoopMode)mode beforeDate:(NSDate *)limitDate;
// - (void)performInModes:(NSArray<NSRunLoopMode> *)modes block:(void (^)(void))block __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// - (void)performBlock:(void (^)(void))block __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
/* @end */
// @interface NSObject (NSDelayedPerforming)
// - (void)performSelector:(SEL)aSelector withObject:(nullable id)anArgument afterDelay:(NSTimeInterval)delay inModes:(NSArray<NSRunLoopMode> *)modes;
// - (void)performSelector:(SEL)aSelector withObject:(nullable id)anArgument afterDelay:(NSTimeInterval)delay;
// + (void)cancelPreviousPerformRequestsWithTarget:(id)aTarget selector:(SEL)aSelector object:(nullable id)anArgument;
// + (void)cancelPreviousPerformRequestsWithTarget:(id)aTarget;
/* @end */
// @interface NSRunLoop (NSOrderedPerform)
// - (void)performSelector:(SEL)aSelector target:(id)target argument:(nullable id)arg order:(NSUInteger)order modes:(NSArray<NSRunLoopMode> *)modes;
// - (void)cancelPerformSelector:(SEL)aSelector target:(id)target argument:(nullable id)arg;
// - (void)cancelPerformSelectorsWithTarget:(id)target;
/* @end */
#pragma clang assume_nonnull end
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#ifndef _REWRITER_typedef_NSData
#define _REWRITER_typedef_NSData
typedef struct objc_object NSData;
typedef struct {} _objc_exc_NSData;
#endif
#ifndef _REWRITER_typedef_NSError
#define _REWRITER_typedef_NSError
typedef struct objc_object NSError;
typedef struct {} _objc_exc_NSError;
#endif
#pragma clang assume_nonnull begin
#ifndef _REWRITER_typedef_NSFileHandle
#define _REWRITER_typedef_NSFileHandle
typedef struct objc_object NSFileHandle;
typedef struct {} _objc_exc_NSFileHandle;
#endif
struct NSFileHandle_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// @property (readonly, copy) NSData *availableData;
// - (instancetype)initWithFileDescriptor:(int)fd closeOnDealloc:(BOOL)closeopt __attribute__((objc_designated_initializer));
// - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer));
#if 0
- (nullable NSData *)readDataToEndOfFileAndReturnError:(out NSError **)error
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((swift_private));
#endif
#if 0
- (nullable NSData *)readDataUpToLength:(NSUInteger)length error:(out NSError **)error
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((swift_private));
#endif
#if 0
- (BOOL)writeData:(NSData *)data error:(out NSError **)error
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((swift_private));
#endif
#if 0
- (BOOL)getOffset:(out unsigned long long *)offsetInFile error:(out NSError **)error
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((swift_private));
#endif
#if 0
- (BOOL)seekToEndReturningOffset:(out unsigned long long *_Nullable)offsetInFile error:(out NSError **)error
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((swift_private));
#endif
#if 0
- (BOOL)seekToOffset:(unsigned long long)offset error:(out NSError **)error
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
#endif
#if 0
- (BOOL)truncateAtOffset:(unsigned long long)offset error:(out NSError **)error
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
#endif
#if 0
- (BOOL)synchronizeAndReturnError:(out NSError **)error
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
#endif
#if 0
- (BOOL)closeAndReturnError:(out NSError **)error
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
#endif
/* @end */
// @interface NSFileHandle (NSFileHandleCreation)
@property (class, readonly, strong) NSFileHandle *fileHandleWithStandardInput;
@property (class, readonly, strong) NSFileHandle *fileHandleWithStandardOutput;
@property (class, readonly, strong) NSFileHandle *fileHandleWithStandardError;
@property (class, readonly, strong) NSFileHandle *fileHandleWithNullDevice;
// + (nullable instancetype)fileHandleForReadingAtPath:(NSString *)path;
// + (nullable instancetype)fileHandleForWritingAtPath:(NSString *)path;
// + (nullable instancetype)fileHandleForUpdatingAtPath:(NSString *)path;
// + (nullable instancetype)fileHandleForReadingFromURL:(NSURL *)url error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (nullable instancetype)fileHandleForWritingToURL:(NSURL *)url error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (nullable instancetype)fileHandleForUpdatingURL:(NSURL *)url error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
extern "C" NSExceptionName const NSFileHandleOperationException;
extern "C" NSNotificationName const NSFileHandleReadCompletionNotification;
extern "C" NSNotificationName const NSFileHandleReadToEndOfFileCompletionNotification;
extern "C" NSNotificationName const NSFileHandleConnectionAcceptedNotification;
extern "C" NSNotificationName const NSFileHandleDataAvailableNotification;
extern "C" NSString * const NSFileHandleNotificationDataItem;
extern "C" NSString * const NSFileHandleNotificationFileHandleItem;
extern "C" NSString * const NSFileHandleNotificationMonitorModes __attribute__((availability(macos,introduced=10.0,deprecated=10.7,message="Not supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=5.0,message="Not supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Not supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Not supported")));
// @interface NSFileHandle (NSFileHandleAsynchronousAccess)
// - (void)readInBackgroundAndNotifyForModes:(nullable NSArray<NSRunLoopMode> *)modes;
// - (void)readInBackgroundAndNotify;
// - (void)readToEndOfFileInBackgroundAndNotifyForModes:(nullable NSArray<NSRunLoopMode> *)modes;
// - (void)readToEndOfFileInBackgroundAndNotify;
// - (void)acceptConnectionInBackgroundAndNotifyForModes:(nullable NSArray<NSRunLoopMode> *)modes;
// - (void)acceptConnectionInBackgroundAndNotify;
// - (void)waitForDataInBackgroundAndNotifyForModes:(nullable NSArray<NSRunLoopMode> *)modes;
// - (void)waitForDataInBackgroundAndNotify;
// @property (nullable, copy) void (^readabilityHandler)(NSFileHandle *) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, copy) void (^writeabilityHandler)(NSFileHandle *) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSFileHandle (NSFileHandlePlatformSpecific)
// - (instancetype)initWithFileDescriptor:(int)fd;
// @property (readonly) int fileDescriptor;
/* @end */
// @interface NSFileHandle ( )
#if 0
- (NSData *)readDataToEndOfFile
__attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="readDataToEndOfFileAndReturnError:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="readDataToEndOfFileAndReturnError:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="readDataToEndOfFileAndReturnError:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="readDataToEndOfFileAndReturnError:")));
#endif
#if 0
- (NSData *)readDataOfLength:(NSUInteger)length
__attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="readDataUpToLength:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="readDataUpToLength:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="readDataUpToLength:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="readDataUpToLength:error:")));
#endif
#if 0
- (void)writeData:(NSData *)data
__attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="writeData:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="writeData:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="writeData:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="writeData:error:")));
#endif
// @property (readonly) unsigned long long offsetInFile
__attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="getOffset:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="getOffset:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="getOffset:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="getOffset:error:")));
#if 0
- (unsigned long long)seekToEndOfFile
__attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="seekToEndReturningOffset:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="seekToEndReturningOffset:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="seekToEndReturningOffset:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="seekToEndReturningOffset:error:")));
#endif
#if 0
- (void)seekToFileOffset:(unsigned long long)offset
__attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="seekToOffset:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="seekToOffset:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="seekToOffset:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="seekToOffset:error:")));
#endif
#if 0
- (void)truncateFileAtOffset:(unsigned long long)offset
__attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="truncateAtOffset:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="truncateAtOffset:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="truncateAtOffset:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="truncateAtOffset:error:")));
#endif
#if 0
- (void)synchronizeFile
__attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="synchronizeAndReturnError:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="synchronizeAndReturnError:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="synchronizeAndReturnError:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="synchronizeAndReturnError:")));
#endif
#if 0
- (void)closeFile
__attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="closeAndReturnError:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="closeAndReturnError:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="closeAndReturnError:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="closeAndReturnError:")));
#endif
/* @end */
#ifndef _REWRITER_typedef_NSPipe
#define _REWRITER_typedef_NSPipe
typedef struct objc_object NSPipe;
typedef struct {} _objc_exc_NSPipe;
#endif
struct NSPipe_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// @property (readonly, retain) NSFileHandle *fileHandleForReading;
// @property (readonly, retain) NSFileHandle *fileHandleForWriting;
// + (NSPipe *)pipe;
/* @end */
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
// @interface NSString (NSStringPathExtensions)
// + (NSString *)pathWithComponents:(NSArray<NSString *> *)components;
// @property (readonly, copy) NSArray<NSString *> *pathComponents;
// @property (getter=isAbsolutePath, readonly) BOOL absolutePath;
// @property (readonly, copy) NSString *lastPathComponent;
// @property (readonly, copy) NSString *stringByDeletingLastPathComponent;
// - (NSString *)stringByAppendingPathComponent:(NSString *)str;
// @property (readonly, copy) NSString *pathExtension;
// @property (readonly, copy) NSString *stringByDeletingPathExtension;
// - (nullable NSString *)stringByAppendingPathExtension:(NSString *)str;
// @property (readonly, copy) NSString *stringByAbbreviatingWithTildeInPath;
// @property (readonly, copy) NSString *stringByExpandingTildeInPath;
// @property (readonly, copy) NSString *stringByStandardizingPath;
// @property (readonly, copy) NSString *stringByResolvingSymlinksInPath;
// - (NSArray<NSString *> *)stringsByAppendingPaths:(NSArray<NSString *> *)paths;
// - (NSUInteger)completePathIntoString:(NSString * _Nullable * _Nullable)outputName caseSensitive:(BOOL)flag matchesIntoArray:(NSArray<NSString *> * _Nullable * _Nullable)outputArray filterTypes:(nullable NSArray<NSString *> *)filterTypes;
// @property (readonly) const char *fileSystemRepresentation __attribute__((objc_returns_inner_pointer));
// - (BOOL)getFileSystemRepresentation:(char *)cname maxLength:(NSUInteger)max;
/* @end */
// @interface NSArray<ObjectType> (NSArrayPathExtensions)
// - (NSArray<NSString *> *)pathsMatchingExtensions:(NSArray<NSString *> *)filterTypes;
/* @end */
extern "C" NSString *NSUserName(void);
extern "C" NSString *NSFullUserName(void);
extern "C" NSString *NSHomeDirectory(void);
extern "C" NSString * _Nullable NSHomeDirectoryForUser(NSString * _Nullable userName);
extern "C" NSString *NSTemporaryDirectory(void);
extern "C" NSString *NSOpenStepRootDirectory(void);
typedef NSUInteger NSSearchPathDirectory; enum {
NSApplicationDirectory = 1,
NSDemoApplicationDirectory,
NSDeveloperApplicationDirectory,
NSAdminApplicationDirectory,
NSLibraryDirectory,
NSDeveloperDirectory,
NSUserDirectory,
NSDocumentationDirectory,
NSDocumentDirectory,
NSCoreServiceDirectory,
NSAutosavedInformationDirectory __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 11,
NSDesktopDirectory = 12,
NSCachesDirectory = 13,
NSApplicationSupportDirectory = 14,
NSDownloadsDirectory __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 15,
NSInputMethodsDirectory __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 16,
NSMoviesDirectory __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 17,
NSMusicDirectory __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 18,
NSPicturesDirectory __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 19,
NSPrinterDescriptionDirectory __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 20,
NSSharedPublicDirectory __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 21,
NSPreferencePanesDirectory __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 22,
NSApplicationScriptsDirectory __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 23,
NSItemReplacementDirectory __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 99,
NSAllApplicationsDirectory = 100,
NSAllLibrariesDirectory = 101,
NSTrashDirectory __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 102
};
typedef NSUInteger NSSearchPathDomainMask; enum {
NSUserDomainMask = 1,
NSLocalDomainMask = 2,
NSNetworkDomainMask = 4,
NSSystemDomainMask = 8,
NSAllDomainsMask = 0x0ffff
};
extern "C" NSArray<NSString *> *NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory directory, NSSearchPathDomainMask domainMask, BOOL expandTilde);
#pragma clang assume_nonnull end
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSNumber
#define _REWRITER_typedef_NSNumber
typedef struct objc_object NSNumber;
typedef struct {} _objc_exc_NSNumber;
#endif
#ifndef _REWRITER_typedef_NSData
#define _REWRITER_typedef_NSData
typedef struct objc_object NSData;
typedef struct {} _objc_exc_NSData;
#endif
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
typedef NSString * NSURLResourceKey __attribute__((swift_wrapper(struct)));
#pragma clang assume_nonnull begin
#ifndef _REWRITER_typedef_NSURL
#define _REWRITER_typedef_NSURL
typedef struct objc_object NSURL;
typedef struct {} _objc_exc_NSURL;
#endif
struct NSURL_IMPL {
struct NSObject_IMPL NSObject_IVARS;
NSString *_urlString;
NSURL *_baseURL;
void *_clients;
void *_reserved;
};
// - (nullable instancetype)initWithScheme:(NSString *)scheme host:(nullable NSString *)host path:(NSString *)path __attribute__((availability(macos,introduced=10.0,deprecated=10.11,message="Use NSURLComponents instead, which lets you create a valid URL with any valid combination of URL components and subcomponents (not just scheme, host and path), and lets you set components and subcomponents with either percent-encoded or un-percent-encoded strings."))) __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="Use NSURLComponents instead, which lets you create a valid URL with any valid combination of URL components and subcomponents (not just scheme, host and path), and lets you set components and subcomponents with either percent-encoded or un-percent-encoded strings."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use NSURLComponents instead, which lets you create a valid URL with any valid combination of URL components and subcomponents (not just scheme, host and path), and lets you set components and subcomponents with either percent-encoded or un-percent-encoded strings."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use NSURLComponents instead, which lets you create a valid URL with any valid combination of URL components and subcomponents (not just scheme, host and path), and lets you set components and subcomponents with either percent-encoded or un-percent-encoded strings.")));
// - (instancetype)initFileURLWithPath:(NSString *)path isDirectory:(BOOL)isDir relativeToURL:(nullable NSURL *)baseURL __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((objc_designated_initializer));
// - (instancetype)initFileURLWithPath:(NSString *)path relativeToURL:(nullable NSURL *)baseURL __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((objc_designated_initializer));
// - (instancetype)initFileURLWithPath:(NSString *)path isDirectory:(BOOL)isDir __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((objc_designated_initializer));
// - (instancetype)initFileURLWithPath:(NSString *)path __attribute__((objc_designated_initializer));
// + (NSURL *)fileURLWithPath:(NSString *)path isDirectory:(BOOL) isDir relativeToURL:(nullable NSURL *)baseURL __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSURL *)fileURLWithPath:(NSString *)path relativeToURL:(nullable NSURL *)baseURL __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSURL *)fileURLWithPath:(NSString *)path isDirectory:(BOOL)isDir __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSURL *)fileURLWithPath:(NSString *)path;
// - (instancetype)initFileURLWithFileSystemRepresentation:(const char *)path isDirectory:(BOOL)isDir relativeToURL:(nullable NSURL *)baseURL __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((objc_designated_initializer));
// + (NSURL *)fileURLWithFileSystemRepresentation:(const char *)path isDirectory:(BOOL) isDir relativeToURL:(nullable NSURL *)baseURL __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable instancetype)initWithString:(NSString *)URLString;
// - (nullable instancetype)initWithString:(NSString *)URLString relativeToURL:(nullable NSURL *)baseURL __attribute__((objc_designated_initializer));
// + (nullable instancetype)URLWithString:(NSString *)URLString;
// + (nullable instancetype)URLWithString:(NSString *)URLString relativeToURL:(nullable NSURL *)baseURL;
// - (instancetype)initWithDataRepresentation:(NSData *)data relativeToURL:(nullable NSURL *)baseURL __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((objc_designated_initializer));
// + (NSURL *)URLWithDataRepresentation:(NSData *)data relativeToURL:(nullable NSURL *)baseURL __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (instancetype)initAbsoluteURLWithDataRepresentation:(NSData *)data relativeToURL:(nullable NSURL *)baseURL __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((objc_designated_initializer));
// + (NSURL *)absoluteURLWithDataRepresentation:(NSData *)data relativeToURL:(nullable NSURL *)baseURL __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSData *dataRepresentation __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) NSString *absoluteString;
// @property (readonly, copy) NSString *relativeString;
// @property (nullable, readonly, copy) NSURL *baseURL;
// @property (nullable, readonly, copy) NSURL *absoluteURL;
// @property (nullable, readonly, copy) NSString *scheme;
// @property (nullable, readonly, copy) NSString *resourceSpecifier;
// @property (nullable, readonly, copy) NSString *host;
// @property (nullable, readonly, copy) NSNumber *port;
// @property (nullable, readonly, copy) NSString *user;
// @property (nullable, readonly, copy) NSString *password;
// @property (nullable, readonly, copy) NSString *path;
// @property (nullable, readonly, copy) NSString *fragment;
// @property (nullable, readonly, copy) NSString *parameterString __attribute__((availability(macosx,introduced=10.2,deprecated=10.15,message="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."))) __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="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."))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="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."))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="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.")));
// @property (nullable, readonly, copy) NSString *query;
// @property (nullable, readonly, copy) NSString *relativePath;
// @property (readonly) BOOL hasDirectoryPath __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)getFileSystemRepresentation:(char *)buffer maxLength:(NSUInteger)maxBufferLength __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly) const char *fileSystemRepresentation __attribute__((objc_returns_inner_pointer)) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, getter=isFileURL) BOOL fileURL;
extern "C" NSString *NSURLFileScheme;
// @property (nullable, readonly, copy) NSURL *standardizedURL;
// - (BOOL)checkResourceIsReachableAndReturnError:(NSError **)error __attribute__((swift_error(none))) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)isFileReferenceURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSURL *)fileReferenceURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) NSURL *filePathURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)getResourceValue:(out id _Nullable * _Nonnull)value forKey:(NSURLResourceKey)key error:(out NSError ** _Nullable)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSDictionary<NSURLResourceKey, id> *)resourceValuesForKeys:(NSArray<NSURLResourceKey> *)keys error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)setResourceValue:(nullable id)value forKey:(NSURLResourceKey)key error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)setResourceValues:(NSDictionary<NSURLResourceKey, id> *)keyedValues error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLKeysOfUnsetValuesKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)removeCachedResourceValueForKey:(NSURLResourceKey)key __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)removeAllCachedResourceValues __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)setTemporaryResourceValue:(nullable id)value forKey:(NSURLResourceKey)key __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLNameKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLLocalizedNameKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLIsRegularFileKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLIsDirectoryKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLIsSymbolicLinkKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLIsVolumeKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLIsPackageKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLIsApplicationKey __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLApplicationIsScriptableKey __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSURLResourceKey const NSURLIsSystemImmutableKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLIsUserImmutableKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLIsHiddenKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLHasHiddenExtensionKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLCreationDateKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLContentAccessDateKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLContentModificationDateKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLAttributeModificationDateKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLLinkCountKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLParentDirectoryURLKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeURLKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLTypeIdentifierKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLLocalizedTypeDescriptionKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLLabelNumberKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLLabelColorKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLLocalizedLabelKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLEffectiveIconKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLCustomIconKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLFileResourceIdentifierKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeIdentifierKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLPreferredIOBlockSizeKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLIsReadableKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLIsWritableKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLIsExecutableKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLFileSecurityKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLIsExcludedFromBackupKey __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=5.1))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLTagNamesKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSURLResourceKey const NSURLPathKey __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLCanonicalPathKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
extern "C" NSURLResourceKey const NSURLIsMountTriggerKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLGenerationIdentifierKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLDocumentIdentifierKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLAddedToDirectoryDateKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLQuarantinePropertiesKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSURLResourceKey const NSURLFileResourceTypeKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef NSString * NSURLFileResourceType __attribute__((swift_wrapper(enum)));
extern "C" NSURLFileResourceType const NSURLFileResourceTypeNamedPipe __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLFileResourceType const NSURLFileResourceTypeCharacterSpecial __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLFileResourceType const NSURLFileResourceTypeDirectory __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLFileResourceType const NSURLFileResourceTypeBlockSpecial __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLFileResourceType const NSURLFileResourceTypeRegular __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLFileResourceType const NSURLFileResourceTypeSymbolicLink __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLFileResourceType const NSURLFileResourceTypeSocket __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLFileResourceType const NSURLFileResourceTypeUnknown __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLThumbnailDictionaryKey __attribute__((availability(macos,introduced=10.10,deprecated=100000,message="Use the QuickLookThumbnailing framework and extension point instead"))) __attribute__((availability(ios,introduced=8.0,deprecated=100000,message="Use the QuickLookThumbnailing framework and extension point instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="Use the QuickLookThumbnailing framework and extension point instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="Use the QuickLookThumbnailing framework and extension point instead")));
extern "C" NSURLResourceKey const NSURLThumbnailKey __attribute__((availability(macos,introduced=10.10,deprecated=100000,message="Use the QuickLookThumbnailing framework and extension point instead"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
typedef NSString *NSURLThumbnailDictionaryItem __attribute__((swift_wrapper(struct)));
extern "C" NSURLThumbnailDictionaryItem const NSThumbnail1024x1024SizeKey __attribute__((availability(macos,introduced=10.10,deprecated=100000,message="Use the QuickLookThumbnailing framework and extension point instead"))) __attribute__((availability(ios,introduced=8.0,deprecated=100000,message="Use the QuickLookThumbnailing framework and extension point instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="Use the QuickLookThumbnailing framework and extension point instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="Use the QuickLookThumbnailing framework and extension point instead")));
extern "C" NSURLResourceKey const NSURLFileSizeKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLFileAllocatedSizeKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLTotalFileSizeKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLTotalFileAllocatedSizeKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLIsAliasFileKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLFileProtectionKey __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
typedef NSString * NSURLFileProtectionType __attribute__((swift_wrapper(enum)));
extern "C" NSURLFileProtectionType const NSURLFileProtectionNone __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
extern "C" NSURLFileProtectionType const NSURLFileProtectionComplete __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
extern "C" NSURLFileProtectionType const NSURLFileProtectionCompleteUnlessOpen __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
extern "C" NSURLFileProtectionType const NSURLFileProtectionCompleteUntilFirstUserAuthentication __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
extern "C" NSURLResourceKey const NSURLVolumeLocalizedFormatDescriptionKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeTotalCapacityKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeAvailableCapacityKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeResourceCountKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeSupportsPersistentIDsKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeSupportsSymbolicLinksKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeSupportsHardLinksKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeSupportsJournalingKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeIsJournalingKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeSupportsSparseFilesKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeSupportsZeroRunsKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeSupportsCaseSensitiveNamesKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeSupportsCasePreservedNamesKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeSupportsRootDirectoryDatesKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeSupportsVolumeSizesKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeSupportsRenamingKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeSupportsAdvisoryFileLockingKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeSupportsExtendedSecurityKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeIsBrowsableKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeMaximumFileSizeKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeIsEjectableKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeIsRemovableKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeIsInternalKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeIsAutomountedKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeIsLocalKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeIsReadOnlyKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeCreationDateKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeURLForRemountingKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeUUIDStringKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeNameKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeLocalizedNameKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLVolumeIsEncryptedKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
extern "C" NSURLResourceKey const NSURLVolumeIsRootFileSystemKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
extern "C" NSURLResourceKey const NSURLVolumeSupportsCompressionKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
extern "C" NSURLResourceKey const NSURLVolumeSupportsFileCloningKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
extern "C" NSURLResourceKey const NSURLVolumeSupportsSwapRenamingKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
extern "C" NSURLResourceKey const NSURLVolumeSupportsExclusiveRenamingKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
extern "C" NSURLResourceKey const NSURLVolumeSupportsImmutableFilesKey __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
extern "C" NSURLResourceKey const NSURLVolumeSupportsAccessPermissionsKey __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
extern "C" NSURLResourceKey const NSURLVolumeAvailableCapacityForImportantUsageKey __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSURLResourceKey const NSURLVolumeAvailableCapacityForOpportunisticUsageKey __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSURLResourceKey const NSURLIsUbiquitousItemKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLUbiquitousItemHasUnresolvedConflictsKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLUbiquitousItemIsDownloadedKey __attribute__((availability(macos,introduced=10.7,deprecated=10.9,message="Use NSURLUbiquitousItemDownloadingStatusKey instead"))) __attribute__((availability(ios,introduced=5.0,deprecated=7.0,message="Use NSURLUbiquitousItemDownloadingStatusKey instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use NSURLUbiquitousItemDownloadingStatusKey instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use NSURLUbiquitousItemDownloadingStatusKey instead")));
extern "C" NSURLResourceKey const NSURLUbiquitousItemIsDownloadingKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLUbiquitousItemIsUploadedKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLUbiquitousItemIsUploadingKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLUbiquitousItemPercentDownloadedKey __attribute__((availability(macos,introduced=10.7,deprecated=10.8,message="Use NSMetadataUbiquitousItemPercentDownloadedKey instead"))) __attribute__((availability(ios,introduced=5.0,deprecated=6.0,message="Use NSMetadataUbiquitousItemPercentDownloadedKey instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use NSMetadataUbiquitousItemPercentDownloadedKey instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use NSMetadataUbiquitousItemPercentDownloadedKey instead")));
extern "C" NSURLResourceKey const NSURLUbiquitousItemPercentUploadedKey __attribute__((availability(macos,introduced=10.7,deprecated=10.8,message="Use NSMetadataUbiquitousItemPercentUploadedKey instead"))) __attribute__((availability(ios,introduced=5.0,deprecated=6.0,message="Use NSMetadataUbiquitousItemPercentUploadedKey instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use NSMetadataUbiquitousItemPercentUploadedKey instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use NSMetadataUbiquitousItemPercentUploadedKey instead")));
extern "C" NSURLResourceKey const NSURLUbiquitousItemDownloadingStatusKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLUbiquitousItemDownloadingErrorKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLUbiquitousItemUploadingErrorKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLUbiquitousItemDownloadRequestedKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLUbiquitousItemContainerDisplayNameKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLResourceKey const NSURLUbiquitousItemIsSharedKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSURLResourceKey const NSURLUbiquitousSharedItemCurrentUserRoleKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSURLResourceKey const NSURLUbiquitousSharedItemCurrentUserPermissionsKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSURLResourceKey const NSURLUbiquitousSharedItemOwnerNameComponentsKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSURLResourceKey const NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
typedef NSString * NSURLUbiquitousItemDownloadingStatus __attribute__((swift_wrapper(enum)));
extern "C" NSURLUbiquitousItemDownloadingStatus const NSURLUbiquitousItemDownloadingStatusNotDownloaded __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLUbiquitousItemDownloadingStatus const NSURLUbiquitousItemDownloadingStatusDownloaded __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSURLUbiquitousItemDownloadingStatus const NSURLUbiquitousItemDownloadingStatusCurrent __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef NSString * NSURLUbiquitousSharedItemRole __attribute__((swift_wrapper(enum)));
extern "C" NSURLUbiquitousSharedItemRole const NSURLUbiquitousSharedItemRoleOwner __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSURLUbiquitousSharedItemRole const NSURLUbiquitousSharedItemRoleParticipant __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
typedef NSString * NSURLUbiquitousSharedItemPermissions __attribute__((swift_wrapper(enum)));
extern "C" NSURLUbiquitousSharedItemPermissions const NSURLUbiquitousSharedItemPermissionsReadOnly __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSURLUbiquitousSharedItemPermissions const NSURLUbiquitousSharedItemPermissionsReadWrite __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
typedef NSUInteger NSURLBookmarkCreationOptions; enum {
NSURLBookmarkCreationPreferFileIDResolution __attribute__((availability(macos,introduced=10.6,deprecated=10.9,message="Not supported"))) __attribute__((availability(ios,introduced=4.0,deprecated=7.0,message="Not supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Not supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Not supported"))) = ( 1UL << 8 ),
NSURLBookmarkCreationMinimalBookmark = ( 1UL << 9 ),
NSURLBookmarkCreationSuitableForBookmarkFile = ( 1UL << 10 ),
NSURLBookmarkCreationWithSecurityScope __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(macCatalyst,introduced=13.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = ( 1 << 11 ),
NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(macCatalyst,introduced=13.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = ( 1 << 12 ),
} __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef NSUInteger NSURLBookmarkResolutionOptions; enum {
NSURLBookmarkResolutionWithoutUI = ( 1UL << 8 ),
NSURLBookmarkResolutionWithoutMounting = ( 1UL << 9 ),
NSURLBookmarkResolutionWithSecurityScope __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(macCatalyst,introduced=13.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = ( 1 << 10 )
} __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef NSUInteger NSURLBookmarkFileCreationOptions;
// - (nullable NSData *)bookmarkDataWithOptions:(NSURLBookmarkCreationOptions)options includingResourceValuesForKeys:(nullable NSArray<NSURLResourceKey> *)keys relativeToURL:(nullable NSURL *)relativeURL error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable instancetype)initByResolvingBookmarkData:(NSData *)bookmarkData options:(NSURLBookmarkResolutionOptions)options relativeToURL:(nullable NSURL *)relativeURL bookmarkDataIsStale:(BOOL * _Nullable)isStale error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (nullable instancetype)URLByResolvingBookmarkData:(NSData *)bookmarkData options:(NSURLBookmarkResolutionOptions)options relativeToURL:(nullable NSURL *)relativeURL bookmarkDataIsStale:(BOOL * _Nullable)isStale error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (nullable NSDictionary<NSURLResourceKey, id> *)resourceValuesForKeys:(NSArray<NSURLResourceKey> *)keys fromBookmarkData:(NSData *)bookmarkData __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (BOOL)writeBookmarkData:(NSData *)bookmarkData toURL:(NSURL *)bookmarkFileURL options:(NSURLBookmarkFileCreationOptions)options error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (nullable NSData *)bookmarkDataWithContentsOfURL:(NSURL *)bookmarkFileURL error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (nullable instancetype)URLByResolvingAliasFileAtURL:(NSURL *)url options:(NSURLBookmarkResolutionOptions)options error:(NSError **)error __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)startAccessingSecurityScopedResource __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)stopAccessingSecurityScopedResource __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSURL (NSPromisedItems)
// - (BOOL)getPromisedItemResourceValue:(id _Nullable * _Nonnull)value forKey:(NSURLResourceKey)key error:(NSError **)error __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSDictionary<NSURLResourceKey, id> *)promisedItemResourceValuesForKeys:(NSArray<NSURLResourceKey> *)keys error:(NSError **)error __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)checkPromisedItemIsReachableAndReturnError:(NSError **)error __attribute__((swift_error(none))) __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSURL (NSItemProvider) <NSItemProviderReading, NSItemProviderWriting>
/* @end */
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSURLQueryItem
#define _REWRITER_typedef_NSURLQueryItem
typedef struct objc_object NSURLQueryItem;
typedef struct {} _objc_exc_NSURLQueryItem;
#endif
struct NSURLQueryItem_IMPL {
struct NSObject_IMPL NSObject_IVARS;
NSString *_name;
NSString *_value;
};
// - (instancetype)initWithName:(NSString *)name value:(nullable NSString *)value __attribute__((objc_designated_initializer));
// + (instancetype)queryItemWithName:(NSString *)name value:(nullable NSString *)value;
// @property (readonly) NSString *name;
// @property (nullable, readonly) NSString *value;
/* @end */
__attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSURLComponents
#define _REWRITER_typedef_NSURLComponents
typedef struct objc_object NSURLComponents;
typedef struct {} _objc_exc_NSURLComponents;
#endif
struct NSURLComponents_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// - (instancetype)init;
// - (nullable instancetype)initWithURL:(NSURL *)url resolvingAgainstBaseURL:(BOOL)resolve;
// + (nullable instancetype)componentsWithURL:(NSURL *)url resolvingAgainstBaseURL:(BOOL)resolve;
// - (nullable instancetype)initWithString:(NSString *)URLString;
// + (nullable instancetype)componentsWithString:(NSString *)URLString;
// @property (nullable, readonly, copy) NSURL *URL;
// - (nullable NSURL *)URLRelativeToURL:(nullable NSURL *)baseURL;
// @property (nullable, readonly, copy) NSString *string __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, copy) NSString *scheme;
// @property (nullable, copy) NSString *user;
// @property (nullable, copy) NSString *password;
// @property (nullable, copy) NSString *host;
// @property (nullable, copy) NSNumber *port;
// @property (nullable, copy) NSString *path;
// @property (nullable, copy) NSString *query;
// @property (nullable, copy) NSString *fragment;
// @property (nullable, copy) NSString *percentEncodedUser;
// @property (nullable, copy) NSString *percentEncodedPassword;
// @property (nullable, copy) NSString *percentEncodedHost;
// @property (nullable, copy) NSString *percentEncodedPath;
// @property (nullable, copy) NSString *percentEncodedQuery;
// @property (nullable, copy) NSString *percentEncodedFragment;
// @property (readonly) NSRange rangeOfScheme __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly) NSRange rangeOfUser __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly) NSRange rangeOfPassword __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly) NSRange rangeOfHost __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly) NSRange rangeOfPort __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly) NSRange rangeOfPath __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly) NSRange rangeOfQuery __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly) NSRange rangeOfFragment __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, copy) NSArray<NSURLQueryItem *> *queryItems __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, copy) NSArray<NSURLQueryItem *> *percentEncodedQueryItems __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
/* @end */
// @interface NSCharacterSet (NSURLUtilities)
@property (class, readonly, copy) NSCharacterSet *URLUserAllowedCharacterSet __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
@property (class, readonly, copy) NSCharacterSet *URLPasswordAllowedCharacterSet __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
@property (class, readonly, copy) NSCharacterSet *URLHostAllowedCharacterSet __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
@property (class, readonly, copy) NSCharacterSet *URLPathAllowedCharacterSet __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
@property (class, readonly, copy) NSCharacterSet *URLQueryAllowedCharacterSet __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
@property (class, readonly, copy) NSCharacterSet *URLFragmentAllowedCharacterSet __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSString (NSURLUtilities)
// - (nullable NSString *)stringByAddingPercentEncodingWithAllowedCharacters:(NSCharacterSet *)allowedCharacters __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) NSString *stringByRemovingPercentEncoding __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSString *)stringByAddingPercentEscapesUsingEncoding:(NSStringEncoding)enc __attribute__((availability(macos,introduced=10.0,deprecated=10.11,message="Use -stringByAddingPercentEncodingWithAllowedCharacters: instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent since each URL component or subcomponent has different rules for what characters are valid."))) __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="Use -stringByAddingPercentEncodingWithAllowedCharacters: instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent since each URL component or subcomponent has different rules for what characters are valid."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -stringByAddingPercentEncodingWithAllowedCharacters: instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent since each URL component or subcomponent has different rules for what characters are valid."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -stringByAddingPercentEncodingWithAllowedCharacters: instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent since each URL component or subcomponent has different rules for what characters are valid.")));
// - (nullable NSString *)stringByReplacingPercentEscapesUsingEncoding:(NSStringEncoding)enc __attribute__((availability(macos,introduced=10.0,deprecated=10.11,message="Use -stringByRemovingPercentEncoding instead, which always uses the recommended UTF-8 encoding."))) __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="Use -stringByRemovingPercentEncoding instead, which always uses the recommended UTF-8 encoding."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -stringByRemovingPercentEncoding instead, which always uses the recommended UTF-8 encoding."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -stringByRemovingPercentEncoding instead, which always uses the recommended UTF-8 encoding.")));
/* @end */
// @interface NSURL (NSURLPathUtilities)
// + (nullable NSURL *)fileURLWithPathComponents:(NSArray<NSString *> *)components __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) NSArray<NSString *> *pathComponents __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) NSString *lastPathComponent __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) NSString *pathExtension __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSURL *)URLByAppendingPathComponent:(NSString *)pathComponent __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSURL *)URLByAppendingPathComponent:(NSString *)pathComponent isDirectory:(BOOL)isDirectory __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) NSURL *URLByDeletingLastPathComponent __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSURL *)URLByAppendingPathExtension:(NSString *)pathExtension __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) NSURL *URLByDeletingPathExtension __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) NSURL *URLByStandardizingPath __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) NSURL *URLByResolvingSymlinksInPath __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSFileSecurity
#define _REWRITER_typedef_NSFileSecurity
typedef struct objc_object NSFileSecurity;
typedef struct {} _objc_exc_NSFileSecurity;
#endif
struct NSFileSecurity_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// - (nullable instancetype) initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer));
/* @end */
#pragma clang assume_nonnull end
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSData
#define _REWRITER_typedef_NSData
typedef struct objc_object NSData;
typedef struct {} _objc_exc_NSData;
#endif
#ifndef _REWRITER_typedef_NSDate
#define _REWRITER_typedef_NSDate
typedef struct objc_object NSDate;
typedef struct {} _objc_exc_NSDate;
#endif
#ifndef _REWRITER_typedef_NSDirectoryEnumerator
#define _REWRITER_typedef_NSDirectoryEnumerator
typedef struct objc_object NSDirectoryEnumerator;
typedef struct {} _objc_exc_NSDirectoryEnumerator;
#endif
#ifndef _REWRITER_typedef_NSError
#define _REWRITER_typedef_NSError
typedef struct objc_object NSError;
typedef struct {} _objc_exc_NSError;
#endif
#ifndef _REWRITER_typedef_NSNumber
#define _REWRITER_typedef_NSNumber
typedef struct objc_object NSNumber;
typedef struct {} _objc_exc_NSNumber;
#endif
#ifndef _REWRITER_typedef_NSFileProviderService
#define _REWRITER_typedef_NSFileProviderService
typedef struct objc_object NSFileProviderService;
typedef struct {} _objc_exc_NSFileProviderService;
#endif
#ifndef _REWRITER_typedef_NSXPCConnection
#define _REWRITER_typedef_NSXPCConnection
typedef struct objc_object NSXPCConnection;
typedef struct {} _objc_exc_NSXPCConnection;
#endif
#ifndef _REWRITER_typedef_NSLock
#define _REWRITER_typedef_NSLock
typedef struct objc_object NSLock;
typedef struct {} _objc_exc_NSLock;
#endif
// @protocol NSFileManagerDelegate;
typedef NSString * NSFileAttributeKey __attribute__((swift_wrapper(struct)));
typedef NSString * NSFileAttributeType __attribute__((swift_wrapper(enum)));
typedef NSString * NSFileProtectionType __attribute__((swift_wrapper(enum)));
typedef NSString * NSFileProviderServiceName __attribute__((swift_wrapper(struct)));
#pragma clang assume_nonnull begin
typedef NSUInteger NSVolumeEnumerationOptions; enum {
NSVolumeEnumerationSkipHiddenVolumes = 1UL << 1,
NSVolumeEnumerationProduceFileReferenceURLs = 1UL << 2
} __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef NSUInteger NSDirectoryEnumerationOptions; enum {
NSDirectoryEnumerationSkipsSubdirectoryDescendants = 1UL << 0,
NSDirectoryEnumerationSkipsPackageDescendants = 1UL << 1,
NSDirectoryEnumerationSkipsHiddenFiles = 1UL << 2,
NSDirectoryEnumerationIncludesDirectoriesPostOrder __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) = 1UL << 3,
NSDirectoryEnumerationProducesRelativePathURLs __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) = 1UL << 4,
} __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef NSUInteger NSFileManagerItemReplacementOptions; enum {
NSFileManagerItemReplacementUsingNewMetadataOnly = 1UL << 0,
NSFileManagerItemReplacementWithoutDeletingBackupItem = 1UL << 1
} __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef NSInteger NSURLRelationship; enum {
NSURLRelationshipContains,
NSURLRelationshipSame,
NSURLRelationshipOther
} __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef NSUInteger NSFileManagerUnmountOptions; enum {
NSFileManagerUnmountAllPartitionsAndEjectDisk = 1UL << 0,
NSFileManagerUnmountWithoutUI = 1UL << 1,
} __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString *const NSFileManagerUnmountDissentingProcessIdentifierErrorKey __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern NSNotificationName const NSUbiquityIdentityDidChangeNotification __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
#ifndef _REWRITER_typedef_NSFileManager
#define _REWRITER_typedef_NSFileManager
typedef struct objc_object NSFileManager;
typedef struct {} _objc_exc_NSFileManager;
#endif
struct NSFileManager_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
@property (class, readonly, strong) NSFileManager *defaultManager;
// - (nullable NSArray<NSURL *> *)mountedVolumeURLsIncludingResourceValuesForKeys:(nullable NSArray<NSURLResourceKey> *)propertyKeys options:(NSVolumeEnumerationOptions)options __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)unmountVolumeAtURL:(NSURL *)url options:(NSFileManagerUnmountOptions)mask completionHandler:(void (^)(NSError * _Nullable errorOrNil))completionHandler __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// - (nullable NSArray<NSURL *> *)contentsOfDirectoryAtURL:(NSURL *)url includingPropertiesForKeys:(nullable NSArray<NSURLResourceKey> *)keys options:(NSDirectoryEnumerationOptions)mask error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSArray<NSURL *> *)URLsForDirectory:(NSSearchPathDirectory)directory inDomains:(NSSearchPathDomainMask)domainMask __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSURL *)URLForDirectory:(NSSearchPathDirectory)directory inDomain:(NSSearchPathDomainMask)domain appropriateForURL:(nullable NSURL *)url create:(BOOL)shouldCreate error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)getRelationship:(NSURLRelationship *)outRelationship ofDirectoryAtURL:(NSURL *)directoryURL toItemAtURL:(NSURL *)otherURL error:(NSError **)error __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)getRelationship:(NSURLRelationship *)outRelationship ofDirectory:(NSSearchPathDirectory)directory inDomain:(NSSearchPathDomainMask)domainMask toItemAtURL:(NSURL *)url error:(NSError **)error __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)createDirectoryAtURL:(NSURL *)url withIntermediateDirectories:(BOOL)createIntermediates attributes:(nullable NSDictionary<NSFileAttributeKey, id> *)attributes error:(NSError **)error __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)createSymbolicLinkAtURL:(NSURL *)url withDestinationURL:(NSURL *)destURL error:(NSError **)error __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, assign) id <NSFileManagerDelegate> delegate __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)setAttributes:(NSDictionary<NSFileAttributeKey, id> *)attributes ofItemAtPath:(NSString *)path error:(NSError **)error __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)createDirectoryAtPath:(NSString *)path withIntermediateDirectories:(BOOL)createIntermediates attributes:(nullable NSDictionary<NSFileAttributeKey, id> *)attributes error:(NSError **)error __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSArray<NSString *> *)contentsOfDirectoryAtPath:(NSString *)path error:(NSError **)error __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSArray<NSString *> *)subpathsOfDirectoryAtPath:(NSString *)path error:(NSError **)error __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSDictionary<NSFileAttributeKey, id> *)attributesOfItemAtPath:(NSString *)path error:(NSError **)error __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSDictionary<NSFileAttributeKey, id> *)attributesOfFileSystemForPath:(NSString *)path error:(NSError **)error __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)createSymbolicLinkAtPath:(NSString *)path withDestinationPath:(NSString *)destPath error:(NSError **)error __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSString *)destinationOfSymbolicLinkAtPath:(NSString *)path error:(NSError **)error __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)copyItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPath error:(NSError **)error __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)moveItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPath error:(NSError **)error __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)linkItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPath error:(NSError **)error __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)removeItemAtPath:(NSString *)path error:(NSError **)error __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)copyItemAtURL:(NSURL *)srcURL toURL:(NSURL *)dstURL error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)moveItemAtURL:(NSURL *)srcURL toURL:(NSURL *)dstURL error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)linkItemAtURL:(NSURL *)srcURL toURL:(NSURL *)dstURL error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)removeItemAtURL:(NSURL *)URL error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)trashItemAtURL:(NSURL *)url resultingItemURL:(NSURL * _Nullable * _Nullable)outResultingURL error:(NSError **)error __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// - (nullable NSDictionary *)fileAttributesAtPath:(NSString *)path traverseLink:(BOOL)yorn __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message="Use -attributesOfItemAtPath:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -attributesOfItemAtPath:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -attributesOfItemAtPath:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -attributesOfItemAtPath:error: instead")));
// - (BOOL)changeFileAttributes:(NSDictionary *)attributes atPath:(NSString *)path __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message="Use -setAttributes:ofItemAtPath:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -setAttributes:ofItemAtPath:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -setAttributes:ofItemAtPath:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -setAttributes:ofItemAtPath:error: instead")));
// - (nullable NSArray *)directoryContentsAtPath:(NSString *)path __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message="Use -contentsOfDirectoryAtPath:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -contentsOfDirectoryAtPath:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -contentsOfDirectoryAtPath:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -contentsOfDirectoryAtPath:error: instead")));
// - (nullable NSDictionary *)fileSystemAttributesAtPath:(NSString *)path __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message="Use -attributesOfFileSystemForPath:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -attributesOfFileSystemForPath:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -attributesOfFileSystemForPath:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -attributesOfFileSystemForPath:error: instead")));
// - (nullable NSString *)pathContentOfSymbolicLinkAtPath:(NSString *)path __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message="Use -destinationOfSymbolicLinkAtPath:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -destinationOfSymbolicLinkAtPath:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -destinationOfSymbolicLinkAtPath:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -destinationOfSymbolicLinkAtPath:error:")));
// - (BOOL)createSymbolicLinkAtPath:(NSString *)path pathContent:(NSString *)otherpath __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message="Use -createSymbolicLinkAtPath:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -createSymbolicLinkAtPath:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -createSymbolicLinkAtPath:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -createSymbolicLinkAtPath:error: instead")));
// - (BOOL)createDirectoryAtPath:(NSString *)path attributes:(NSDictionary *)attributes __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message="Use -createDirectoryAtPath:withIntermediateDirectories:attributes:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -createDirectoryAtPath:withIntermediateDirectories:attributes:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -createDirectoryAtPath:withIntermediateDirectories:attributes:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -createDirectoryAtPath:withIntermediateDirectories:attributes:error: instead")));
// @property (readonly, copy) NSString *currentDirectoryPath;
// - (BOOL)changeCurrentDirectoryPath:(NSString *)path;
// - (BOOL)fileExistsAtPath:(NSString *)path;
// - (BOOL)fileExistsAtPath:(NSString *)path isDirectory:(nullable BOOL *)isDirectory;
// - (BOOL)isReadableFileAtPath:(NSString *)path;
// - (BOOL)isWritableFileAtPath:(NSString *)path;
// - (BOOL)isExecutableFileAtPath:(NSString *)path;
// - (BOOL)isDeletableFileAtPath:(NSString *)path;
// - (BOOL)contentsEqualAtPath:(NSString *)path1 andPath:(NSString *)path2;
// - (NSString *)displayNameAtPath:(NSString *)path;
// - (nullable NSArray<NSString *> *)componentsToDisplayForPath:(NSString *)path;
// - (nullable NSDirectoryEnumerator<NSString *> *)enumeratorAtPath:(NSString *)path;
// - (nullable NSDirectoryEnumerator<NSURL *> *)enumeratorAtURL:(NSURL *)url includingPropertiesForKeys:(nullable NSArray<NSURLResourceKey> *)keys options:(NSDirectoryEnumerationOptions)mask errorHandler:(nullable BOOL (^)(NSURL *url, NSError *error))handler __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSArray<NSString *> *)subpathsAtPath:(NSString *)path;
// - (nullable NSData *)contentsAtPath:(NSString *)path;
// - (BOOL)createFileAtPath:(NSString *)path contents:(nullable NSData *)data attributes:(nullable NSDictionary<NSFileAttributeKey, id> *)attr;
// - (const char *)fileSystemRepresentationWithPath:(NSString *)path __attribute__((objc_returns_inner_pointer));
// - (NSString *)stringWithFileSystemRepresentation:(const char *)str length:(NSUInteger)len;
// - (BOOL)replaceItemAtURL:(NSURL *)originalItemURL withItemAtURL:(NSURL *)newItemURL backupItemName:(nullable NSString *)backupItemName options:(NSFileManagerItemReplacementOptions)options resultingItemURL:(NSURL * _Nullable * _Nullable)resultingURL error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)setUbiquitous:(BOOL)flag itemAtURL:(NSURL *)url destinationURL:(NSURL *)destinationURL error:(NSError **)error __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)isUbiquitousItemAtURL:(NSURL *)url __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)startDownloadingUbiquitousItemAtURL:(NSURL *)url error:(NSError **)error __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)evictUbiquitousItemAtURL:(NSURL *)url error:(NSError **)error __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSURL *)URLForUbiquityContainerIdentifier:(nullable NSString *)containerIdentifier __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSURL *)URLForPublishingUbiquitousItemAtURL:(NSURL *)url expirationDate:(NSDate * _Nullable * _Nullable)outDate error:(NSError **)error __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) id<NSObject,NSCopying,NSCoding> ubiquityIdentityToken __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)getFileProviderServicesForItemAtURL:(NSURL *)url completionHandler:(void (^)(NSDictionary <NSFileProviderServiceName, NSFileProviderService *> * _Nullable services, NSError * _Nullable error))completionHandler __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// - (nullable NSURL *)containerURLForSecurityApplicationGroupIdentifier:(NSString *)groupIdentifier __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSFileManager (NSUserInformation)
// @property (readonly, copy) NSURL *homeDirectoryForCurrentUser __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// @property (readonly, copy) NSURL *temporaryDirectory __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// - (nullable NSURL *)homeDirectoryForUser:(NSString *)userName __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
/* @end */
// @interface NSObject (NSCopyLinkMoveHandler)
// - (BOOL)fileManager:(NSFileManager *)fm shouldProceedAfterError:(NSDictionary *)errorInfo __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message=" Handler API no longer supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message=" Handler API no longer supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message=" Handler API no longer supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message=" Handler API no longer supported")));
// - (void)fileManager:(NSFileManager *)fm willProcessPath:(NSString *)path __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message="Handler API no longer supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Handler API no longer supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Handler API no longer supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Handler API no longer supported")));
/* @end */
// @protocol NSFileManagerDelegate <NSObject>
/* @optional */
// - (BOOL)fileManager:(NSFileManager *)fileManager shouldCopyItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPath;
// - (BOOL)fileManager:(NSFileManager *)fileManager shouldCopyItemAtURL:(NSURL *)srcURL toURL:(NSURL *)dstURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)fileManager:(NSFileManager *)fileManager shouldProceedAfterError:(NSError *)error copyingItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPath;
// - (BOOL)fileManager:(NSFileManager *)fileManager shouldProceedAfterError:(NSError *)error copyingItemAtURL:(NSURL *)srcURL toURL:(NSURL *)dstURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)fileManager:(NSFileManager *)fileManager shouldMoveItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPath;
// - (BOOL)fileManager:(NSFileManager *)fileManager shouldMoveItemAtURL:(NSURL *)srcURL toURL:(NSURL *)dstURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)fileManager:(NSFileManager *)fileManager shouldProceedAfterError:(NSError *)error movingItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPath;
// - (BOOL)fileManager:(NSFileManager *)fileManager shouldProceedAfterError:(NSError *)error movingItemAtURL:(NSURL *)srcURL toURL:(NSURL *)dstURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)fileManager:(NSFileManager *)fileManager shouldLinkItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPath;
// - (BOOL)fileManager:(NSFileManager *)fileManager shouldLinkItemAtURL:(NSURL *)srcURL toURL:(NSURL *)dstURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)fileManager:(NSFileManager *)fileManager shouldProceedAfterError:(NSError *)error linkingItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPath;
// - (BOOL)fileManager:(NSFileManager *)fileManager shouldProceedAfterError:(NSError *)error linkingItemAtURL:(NSURL *)srcURL toURL:(NSURL *)dstURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)fileManager:(NSFileManager *)fileManager shouldRemoveItemAtPath:(NSString *)path;
// - (BOOL)fileManager:(NSFileManager *)fileManager shouldRemoveItemAtURL:(NSURL *)URL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)fileManager:(NSFileManager *)fileManager shouldProceedAfterError:(NSError *)error removingItemAtPath:(NSString *)path;
// - (BOOL)fileManager:(NSFileManager *)fileManager shouldProceedAfterError:(NSError *)error removingItemAtURL:(NSURL *)URL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
#ifndef _REWRITER_typedef_NSDirectoryEnumerator
#define _REWRITER_typedef_NSDirectoryEnumerator
typedef struct objc_object NSDirectoryEnumerator;
typedef struct {} _objc_exc_NSDirectoryEnumerator;
#endif
struct NSDirectoryEnumerator_IMPL {
struct NSEnumerator_IMPL NSEnumerator_IVARS;
};
// @property (nullable, readonly, copy) NSDictionary<NSFileAttributeKey, id> *fileAttributes;
// @property (nullable, readonly, copy) NSDictionary<NSFileAttributeKey, id> *directoryAttributes;
// @property (readonly) BOOL isEnumeratingDirectoryPostOrder __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// - (void)skipDescendents;
// @property (readonly) NSUInteger level __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)skipDescendants __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
__attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)))
#ifndef _REWRITER_typedef_NSFileProviderService
#define _REWRITER_typedef_NSFileProviderService
typedef struct objc_object NSFileProviderService;
typedef struct {} _objc_exc_NSFileProviderService;
#endif
struct NSFileProviderService_IMPL {
struct NSObject_IMPL NSObject_IVARS;
NSFileProviderServiceName _name;
id _endpointCreatingProxy;
dispatch_group_t _requestFinishedGroup;
};
// - (void)getFileProviderConnectionWithCompletionHandler:(void (^)(NSXPCConnection * _Nullable connection, NSError * _Nullable error))completionHandler;
// @property (readonly, copy) NSFileProviderServiceName name;
/* @end */
extern "C" NSFileAttributeKey const NSFileType;
extern "C" NSFileAttributeType const NSFileTypeDirectory;
extern "C" NSFileAttributeType const NSFileTypeRegular;
extern "C" NSFileAttributeType const NSFileTypeSymbolicLink;
extern "C" NSFileAttributeType const NSFileTypeSocket;
extern "C" NSFileAttributeType const NSFileTypeCharacterSpecial;
extern "C" NSFileAttributeType const NSFileTypeBlockSpecial;
extern "C" NSFileAttributeType const NSFileTypeUnknown;
extern "C" NSFileAttributeKey const NSFileSize;
extern "C" NSFileAttributeKey const NSFileModificationDate;
extern "C" NSFileAttributeKey const NSFileReferenceCount;
extern "C" NSFileAttributeKey const NSFileDeviceIdentifier;
extern "C" NSFileAttributeKey const NSFileOwnerAccountName;
extern "C" NSFileAttributeKey const NSFileGroupOwnerAccountName;
extern "C" NSFileAttributeKey const NSFilePosixPermissions;
extern "C" NSFileAttributeKey const NSFileSystemNumber;
extern "C" NSFileAttributeKey const NSFileSystemFileNumber;
extern "C" NSFileAttributeKey const NSFileExtensionHidden;
extern "C" NSFileAttributeKey const NSFileHFSCreatorCode;
extern "C" NSFileAttributeKey const NSFileHFSTypeCode;
extern "C" NSFileAttributeKey const NSFileImmutable;
extern "C" NSFileAttributeKey const NSFileAppendOnly;
extern "C" NSFileAttributeKey const NSFileCreationDate;
extern "C" NSFileAttributeKey const NSFileOwnerAccountID;
extern "C" NSFileAttributeKey const NSFileGroupOwnerAccountID;
extern "C" NSFileAttributeKey const NSFileBusy;
extern "C" NSFileAttributeKey const NSFileProtectionKey __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
extern "C" NSFileProtectionType const NSFileProtectionNone __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
extern "C" NSFileProtectionType const NSFileProtectionComplete __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
extern "C" NSFileProtectionType const NSFileProtectionCompleteUnlessOpen __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
extern "C" NSFileProtectionType const NSFileProtectionCompleteUntilFirstUserAuthentication __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
extern "C" NSFileAttributeKey const NSFileSystemSize;
extern "C" NSFileAttributeKey const NSFileSystemFreeSize;
extern "C" NSFileAttributeKey const NSFileSystemNodes;
extern "C" NSFileAttributeKey const NSFileSystemFreeNodes;
// @interface NSDictionary<KeyType, ObjectType> (NSFileAttributes)
// - (unsigned long long)fileSize;
// - (nullable NSDate *)fileModificationDate;
// - (nullable NSString *)fileType;
// - (NSUInteger)filePosixPermissions;
// - (nullable NSString *)fileOwnerAccountName;
// - (nullable NSString *)fileGroupOwnerAccountName;
// - (NSInteger)fileSystemNumber;
// - (NSUInteger)fileSystemFileNumber;
// - (BOOL)fileExtensionHidden;
// - (OSType)fileHFSCreatorCode;
// - (OSType)fileHFSTypeCode;
// - (BOOL)fileIsImmutable;
// - (BOOL)fileIsAppendOnly;
// - (nullable NSDate *)fileCreationDate;
// - (nullable NSNumber *)fileOwnerAccountID;
// - (nullable NSNumber *)fileGroupOwnerAccountID;
/* @end */
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
typedef NSUInteger NSPointerFunctionsOptions; enum {
NSPointerFunctionsStrongMemory __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (0UL << 0),
NSPointerFunctionsZeroingWeakMemory __attribute__((availability(macos,introduced=10.5,deprecated=10.8,message="GC no longer supported"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = (1UL << 0),
NSPointerFunctionsOpaqueMemory __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (2UL << 0),
NSPointerFunctionsMallocMemory __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (3UL << 0),
NSPointerFunctionsMachVirtualMemory __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (4UL << 0),
NSPointerFunctionsWeakMemory __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (5UL << 0),
NSPointerFunctionsObjectPersonality __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (0UL << 8),
NSPointerFunctionsOpaquePersonality __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1UL << 8),
NSPointerFunctionsObjectPointerPersonality __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (2UL << 8),
NSPointerFunctionsCStringPersonality __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (3UL << 8),
NSPointerFunctionsStructPersonality __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (4UL << 8),
NSPointerFunctionsIntegerPersonality __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (5UL << 8),
NSPointerFunctionsCopyIn __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1UL << 16),
};
__attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSPointerFunctions
#define _REWRITER_typedef_NSPointerFunctions
typedef struct objc_object NSPointerFunctions;
typedef struct {} _objc_exc_NSPointerFunctions;
#endif
struct NSPointerFunctions_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// - (instancetype)initWithOptions:(NSPointerFunctionsOptions)options __attribute__((objc_designated_initializer));
// + (NSPointerFunctions *)pointerFunctionsWithOptions:(NSPointerFunctionsOptions)options;
// @property (nullable) NSUInteger (*hashFunction)(const void *item, NSUInteger (* _Nullable size)(const void *item));
// @property (nullable) BOOL (*isEqualFunction)(const void *item1, const void*item2, NSUInteger (* _Nullable size)(const void *item));
// @property (nullable) NSUInteger (*sizeFunction)(const void *item);
// @property (nullable) NSString * _Nullable (*descriptionFunction)(const void *item);
// @property (nullable) void (*relinquishFunction)(const void *item, NSUInteger (* _Nullable size)(const void *item));
// @property (nullable) void * _Nonnull (*acquireFunction)(const void *src, NSUInteger (* _Nullable size)(const void *item), BOOL shouldCopy);
// @property BOOL usesStrongWriteBarrier
__attribute__((availability(macosx,introduced=10.5,deprecated=10.12,message="Garbage collection no longer supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=10.0,message="Garbage collection no longer supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=3.0,message="Garbage collection no longer supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=10.0,message="Garbage collection no longer supported")));
// @property BOOL usesWeakReadAndWriteBarriers
__attribute__((availability(macosx,introduced=10.5,deprecated=10.12,message="Garbage collection no longer supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=10.0,message="Garbage collection no longer supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=3.0,message="Garbage collection no longer supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=10.0,message="Garbage collection no longer supported")));
/* @end */
#pragma clang assume_nonnull end
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSSet
#define _REWRITER_typedef_NSSet
typedef struct objc_object NSSet;
typedef struct {} _objc_exc_NSSet;
#endif
#ifndef _REWRITER_typedef_NSHashTable
#define _REWRITER_typedef_NSHashTable
typedef struct objc_object NSHashTable;
typedef struct {} _objc_exc_NSHashTable;
#endif
#pragma clang assume_nonnull begin
static const NSPointerFunctionsOptions NSHashTableStrongMemory __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = NSPointerFunctionsStrongMemory;
static const NSPointerFunctionsOptions NSHashTableZeroingWeakMemory __attribute__((availability(macos,introduced=10.5,deprecated=10.8,message="GC no longer supported"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = NSPointerFunctionsZeroingWeakMemory;
static const NSPointerFunctionsOptions NSHashTableCopyIn __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = NSPointerFunctionsCopyIn;
static const NSPointerFunctionsOptions NSHashTableObjectPointerPersonality __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = NSPointerFunctionsObjectPointerPersonality;
static const NSPointerFunctionsOptions NSHashTableWeakMemory __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = NSPointerFunctionsWeakMemory;
typedef NSUInteger NSHashTableOptions;
__attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSHashTable
#define _REWRITER_typedef_NSHashTable
typedef struct objc_object NSHashTable;
typedef struct {} _objc_exc_NSHashTable;
#endif
struct NSHashTable_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// - (instancetype)initWithOptions:(NSPointerFunctionsOptions)options capacity:(NSUInteger)initialCapacity __attribute__((objc_designated_initializer));
// - (instancetype)initWithPointerFunctions:(NSPointerFunctions *)functions capacity:(NSUInteger)initialCapacity __attribute__((objc_designated_initializer));
// + (NSHashTable<ObjectType> *)hashTableWithOptions:(NSPointerFunctionsOptions)options;
// + (id)hashTableWithWeakObjects __attribute__((availability(macos,introduced=10.5,deprecated=10.8,message="GC no longer supported"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// + (NSHashTable<ObjectType> *)weakObjectsHashTable __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSPointerFunctions *pointerFunctions;
// @property (readonly) NSUInteger count;
// - (nullable ObjectType)member:(nullable ObjectType)object;
// - (NSEnumerator<ObjectType> *)objectEnumerator;
// - (void)addObject:(nullable ObjectType)object;
// - (void)removeObject:(nullable ObjectType)object;
// - (void)removeAllObjects;
// @property (readonly, copy) NSArray<ObjectType> *allObjects;
// @property (nullable, nonatomic, readonly) ObjectType anyObject;
// - (BOOL)containsObject:(nullable ObjectType)anObject;
// - (BOOL)intersectsHashTable:(NSHashTable<ObjectType> *)other;
// - (BOOL)isEqualToHashTable:(NSHashTable<ObjectType> *)other;
// - (BOOL)isSubsetOfHashTable:(NSHashTable<ObjectType> *)other;
// - (void)intersectHashTable:(NSHashTable<ObjectType> *)other;
// - (void)unionHashTable:(NSHashTable<ObjectType> *)other;
// - (void)minusHashTable:(NSHashTable<ObjectType> *)other;
// @property (readonly, copy) NSSet<ObjectType> *setRepresentation;
/* @end */
typedef struct {NSUInteger _pi; NSUInteger _si; void * _Nullable _bs;} NSHashEnumerator;
extern "C" void NSFreeHashTable(NSHashTable *table);
extern "C" void NSResetHashTable(NSHashTable *table);
extern "C" BOOL NSCompareHashTables(NSHashTable *table1, NSHashTable *table2);
extern "C" NSHashTable *NSCopyHashTableWithZone(NSHashTable *table, NSZone * _Nullable zone);
extern "C" void *NSHashGet(NSHashTable *table, const void * _Nullable pointer);
extern "C" void NSHashInsert(NSHashTable *table, const void * _Nullable pointer);
extern "C" void NSHashInsertKnownAbsent(NSHashTable *table, const void * _Nullable pointer);
extern "C" void * _Nullable NSHashInsertIfAbsent(NSHashTable *table, const void * _Nullable pointer);
extern "C" void NSHashRemove(NSHashTable *table, const void * _Nullable pointer);
extern "C" NSHashEnumerator NSEnumerateHashTable(NSHashTable *table);
extern "C" void * _Nullable NSNextHashEnumeratorItem(NSHashEnumerator *enumerator);
extern "C" void NSEndHashTableEnumeration(NSHashEnumerator *enumerator);
extern "C" NSUInteger NSCountHashTable(NSHashTable *table);
extern "C" NSString *NSStringFromHashTable(NSHashTable *table);
extern "C" NSArray *NSAllHashTableObjects(NSHashTable *table);
typedef struct {
NSUInteger (* _Nullable hash)(NSHashTable *table, const void *);
BOOL (* _Nullable isEqual)(NSHashTable *table, const void *, const void *);
void (* _Nullable retain)(NSHashTable *table, const void *);
void (* _Nullable release)(NSHashTable *table, void *);
NSString * _Nullable (* _Nullable describe)(NSHashTable *table, const void *);
} NSHashTableCallBacks;
extern "C" NSHashTable *NSCreateHashTableWithZone(NSHashTableCallBacks callBacks, NSUInteger capacity, NSZone * _Nullable zone);
extern "C" NSHashTable *NSCreateHashTable(NSHashTableCallBacks callBacks, NSUInteger capacity);
extern "C" const NSHashTableCallBacks NSIntegerHashCallBacks __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" const NSHashTableCallBacks NSNonOwnedPointerHashCallBacks;
extern "C" const NSHashTableCallBacks NSNonRetainedObjectHashCallBacks;
extern "C" const NSHashTableCallBacks NSObjectHashCallBacks;
extern "C" const NSHashTableCallBacks NSOwnedObjectIdentityHashCallBacks;
extern "C" const NSHashTableCallBacks NSOwnedPointerHashCallBacks;
extern "C" const NSHashTableCallBacks NSPointerToStructHashCallBacks;
extern "C" const NSHashTableCallBacks NSIntHashCallBacks __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message="Not supported"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
#pragma clang assume_nonnull end
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
// @class NSDate;
#ifndef _REWRITER_typedef_NSDate
#define _REWRITER_typedef_NSDate
typedef struct objc_object NSDate;
typedef struct {} _objc_exc_NSDate;
#endif
// @class NSDictionary;
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
// @class NSNumber;
#ifndef _REWRITER_typedef_NSNumber
#define _REWRITER_typedef_NSNumber
typedef struct objc_object NSNumber;
typedef struct {} _objc_exc_NSNumber;
#endif
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
// @class NSURL;
#ifndef _REWRITER_typedef_NSURL
#define _REWRITER_typedef_NSURL
typedef struct objc_object NSURL;
typedef struct {} _objc_exc_NSURL;
#endif
typedef NSString * NSHTTPCookiePropertyKey __attribute__((swift_wrapper(struct)));
typedef NSString * NSHTTPCookieStringPolicy __attribute__((swift_wrapper(enum)));
#pragma clang assume_nonnull begin
extern "C" NSHTTPCookiePropertyKey const NSHTTPCookieName;
extern "C" NSHTTPCookiePropertyKey const NSHTTPCookieValue;
extern "C" NSHTTPCookiePropertyKey const NSHTTPCookieOriginURL;
extern "C" NSHTTPCookiePropertyKey const NSHTTPCookieVersion;
extern "C" NSHTTPCookiePropertyKey const NSHTTPCookieDomain;
extern "C" NSHTTPCookiePropertyKey const NSHTTPCookiePath;
extern "C" NSHTTPCookiePropertyKey const NSHTTPCookieSecure;
extern "C" NSHTTPCookiePropertyKey const NSHTTPCookieExpires;
extern "C" NSHTTPCookiePropertyKey const NSHTTPCookieComment;
extern "C" NSHTTPCookiePropertyKey const NSHTTPCookieCommentURL;
extern "C" NSHTTPCookiePropertyKey const NSHTTPCookieDiscard;
extern "C" NSHTTPCookiePropertyKey const NSHTTPCookieMaximumAge;
extern "C" NSHTTPCookiePropertyKey const NSHTTPCookiePort;
extern "C" NSHTTPCookiePropertyKey const NSHTTPCookieSameSitePolicy __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
extern "C" NSHTTPCookieStringPolicy const NSHTTPCookieSameSiteLax __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
extern "C" NSHTTPCookieStringPolicy const NSHTTPCookieSameSiteStrict __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// @class NSHTTPCookieInternal;
#ifndef _REWRITER_typedef_NSHTTPCookieInternal
#define _REWRITER_typedef_NSHTTPCookieInternal
typedef struct objc_object NSHTTPCookieInternal;
typedef struct {} _objc_exc_NSHTTPCookieInternal;
#endif
#ifndef _REWRITER_typedef_NSHTTPCookie
#define _REWRITER_typedef_NSHTTPCookie
typedef struct objc_object NSHTTPCookie;
typedef struct {} _objc_exc_NSHTTPCookie;
#endif
struct NSHTTPCookie_IMPL {
struct NSObject_IMPL NSObject_IVARS;
NSHTTPCookieInternal *_cookiePrivate;
};
// - (nullable instancetype)initWithProperties:(NSDictionary<NSHTTPCookiePropertyKey, id> *)properties;
// + (nullable NSHTTPCookie *)cookieWithProperties:(NSDictionary<NSHTTPCookiePropertyKey, id> *)properties;
// + (NSDictionary<NSString *, NSString *> *)requestHeaderFieldsWithCookies:(NSArray<NSHTTPCookie *> *)cookies;
// + (NSArray<NSHTTPCookie *> *)cookiesWithResponseHeaderFields:(NSDictionary<NSString *, NSString *> *)headerFields forURL:(NSURL *)URL;
// @property (nullable, readonly, copy) NSDictionary<NSHTTPCookiePropertyKey, id> *properties;
// @property (readonly) NSUInteger version;
// @property (readonly, copy) NSString *name;
// @property (readonly, copy) NSString *value;
// @property (nullable, readonly, copy) NSDate *expiresDate;
// @property (readonly, getter=isSessionOnly) BOOL sessionOnly;
// @property (readonly, copy) NSString *domain;
// @property (readonly, copy) NSString *path;
// @property (readonly, getter=isSecure) BOOL secure;
// @property (readonly, getter=isHTTPOnly) BOOL HTTPOnly;
// @property (nullable, readonly, copy) NSString *comment;
// @property (nullable, readonly, copy) NSURL *commentURL;
// @property (nullable, readonly, copy) NSArray<NSNumber *> *portList;
// @property (nullable, readonly, copy) NSHTTPCookieStringPolicy sameSitePolicy __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
/* @end */
#pragma clang assume_nonnull end
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
// @class NSHTTPCookie;
#ifndef _REWRITER_typedef_NSHTTPCookie
#define _REWRITER_typedef_NSHTTPCookie
typedef struct objc_object NSHTTPCookie;
typedef struct {} _objc_exc_NSHTTPCookie;
#endif
// @class NSURL;
#ifndef _REWRITER_typedef_NSURL
#define _REWRITER_typedef_NSURL
typedef struct objc_object NSURL;
typedef struct {} _objc_exc_NSURL;
#endif
// @class NSDate;
#ifndef _REWRITER_typedef_NSDate
#define _REWRITER_typedef_NSDate
typedef struct objc_object NSDate;
typedef struct {} _objc_exc_NSDate;
#endif
// @class NSURLSessionTask;
#ifndef _REWRITER_typedef_NSURLSessionTask
#define _REWRITER_typedef_NSURLSessionTask
typedef struct objc_object NSURLSessionTask;
typedef struct {} _objc_exc_NSURLSessionTask;
#endif
// @class NSSortDescriptor;
#ifndef _REWRITER_typedef_NSSortDescriptor
#define _REWRITER_typedef_NSSortDescriptor
typedef struct objc_object NSSortDescriptor;
typedef struct {} _objc_exc_NSSortDescriptor;
#endif
#pragma clang assume_nonnull begin
typedef NSUInteger NSHTTPCookieAcceptPolicy; enum {
NSHTTPCookieAcceptPolicyAlways,
NSHTTPCookieAcceptPolicyNever,
NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain
};
// @class NSHTTPCookieStorageInternal;
#ifndef _REWRITER_typedef_NSHTTPCookieStorageInternal
#define _REWRITER_typedef_NSHTTPCookieStorageInternal
typedef struct objc_object NSHTTPCookieStorageInternal;
typedef struct {} _objc_exc_NSHTTPCookieStorageInternal;
#endif
#ifndef _REWRITER_typedef_NSHTTPCookieStorage
#define _REWRITER_typedef_NSHTTPCookieStorage
typedef struct objc_object NSHTTPCookieStorage;
typedef struct {} _objc_exc_NSHTTPCookieStorage;
#endif
struct NSHTTPCookieStorage_IMPL {
struct NSObject_IMPL NSObject_IVARS;
NSHTTPCookieStorageInternal *_internal;
};
@property(class, readonly, strong) NSHTTPCookieStorage *sharedHTTPCookieStorage;
// + (NSHTTPCookieStorage *)sharedCookieStorageForGroupContainerIdentifier:(NSString *)identifier __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable , readonly, copy) NSArray<NSHTTPCookie *> *cookies;
// - (void)setCookie:(NSHTTPCookie *)cookie;
// - (void)deleteCookie:(NSHTTPCookie *)cookie;
// - (void)removeCookiesSinceDate:(NSDate *)date __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSArray<NSHTTPCookie *> *)cookiesForURL:(NSURL *)URL;
// - (void)setCookies:(NSArray<NSHTTPCookie *> *)cookies forURL:(nullable NSURL *)URL mainDocumentURL:(nullable NSURL *)mainDocumentURL;
// @property NSHTTPCookieAcceptPolicy cookieAcceptPolicy;
// - (NSArray<NSHTTPCookie *> *)sortedCookiesUsingDescriptors:(NSArray<NSSortDescriptor *> *) sortOrder __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSHTTPCookieStorage (NSURLSessionTaskAdditions)
// - (void)storeCookies:(NSArray<NSHTTPCookie *> *)cookies forTask:(NSURLSessionTask *)task __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)getCookiesForTask:(NSURLSessionTask *)task completionHandler:(void (^) (NSArray<NSHTTPCookie *> * _Nullable cookies))completionHandler __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
extern "C" NSNotificationName const NSHTTPCookieManagerAcceptPolicyChangedNotification;
extern "C" NSNotificationName const NSHTTPCookieManagerCookiesChangedNotification;
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
#ifndef _REWRITER_typedef_NSIndexPath
#define _REWRITER_typedef_NSIndexPath
typedef struct objc_object NSIndexPath;
typedef struct {} _objc_exc_NSIndexPath;
#endif
struct NSIndexPath_IMPL {
struct NSObject_IMPL NSObject_IVARS;
NSUInteger *_indexes;
NSUInteger _length;
void *_reserved;
};
// + (instancetype)indexPathWithIndex:(NSUInteger)index;
// + (instancetype)indexPathWithIndexes:(const NSUInteger [_Nullable])indexes length:(NSUInteger)length;
// - (instancetype)initWithIndexes:(const NSUInteger [_Nullable])indexes length:(NSUInteger)length __attribute__((objc_designated_initializer));
// - (instancetype)initWithIndex:(NSUInteger)index;
// - (NSIndexPath *)indexPathByAddingIndex:(NSUInteger)index;
// - (NSIndexPath *)indexPathByRemovingLastIndex;
// - (NSUInteger)indexAtPosition:(NSUInteger)position;
// @property (readonly) NSUInteger length;
// - (void)getIndexes:(NSUInteger *)indexes range:(NSRange)positionRange __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSComparisonResult)compare:(NSIndexPath *)otherObject;
/* @end */
// @interface NSIndexPath (NSDeprecated)
// - (void)getIndexes:(NSUInteger *)indexes __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="getIndexes:range:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="getIndexes:range:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="getIndexes:range:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="getIndexes:range:")));
/* @end */
#pragma clang assume_nonnull end
// @class NSMethodSignature;
#ifndef _REWRITER_typedef_NSMethodSignature
#define _REWRITER_typedef_NSMethodSignature
typedef struct objc_object NSMethodSignature;
typedef struct {} _objc_exc_NSMethodSignature;
#endif
#pragma clang assume_nonnull begin
__attribute__((availability(swift, unavailable, message="NSInvocation and related APIs not available")))
#ifndef _REWRITER_typedef_NSInvocation
#define _REWRITER_typedef_NSInvocation
typedef struct objc_object NSInvocation;
typedef struct {} _objc_exc_NSInvocation;
#endif
struct NSInvocation_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// + (NSInvocation *)invocationWithMethodSignature:(NSMethodSignature *)sig;
// @property (readonly, retain) NSMethodSignature *methodSignature;
// - (void)retainArguments;
// @property (readonly) BOOL argumentsRetained;
// @property (nullable, assign) id target;
// @property SEL selector;
// - (void)getReturnValue:(void *)retLoc;
// - (void)setReturnValue:(void *)retLoc;
// - (void)getArgument:(void *)argumentLocation atIndex:(NSInteger)idx;
// - (void)setArgument:(void *)argumentLocation atIndex:(NSInteger)idx;
// - (void)invoke;
// - (void)invokeWithTarget:(id)target;
/* @end */
#pragma clang assume_nonnull end
// @class NSError;
#ifndef _REWRITER_typedef_NSError
#define _REWRITER_typedef_NSError
typedef struct objc_object NSError;
typedef struct {} _objc_exc_NSError;
#endif
#ifndef _REWRITER_typedef_NSOutputStream
#define _REWRITER_typedef_NSOutputStream
typedef struct objc_object NSOutputStream;
typedef struct {} _objc_exc_NSOutputStream;
#endif
#ifndef _REWRITER_typedef_NSInputStream
#define _REWRITER_typedef_NSInputStream
typedef struct objc_object NSInputStream;
typedef struct {} _objc_exc_NSInputStream;
#endif
#ifndef _REWRITER_typedef_NSData
#define _REWRITER_typedef_NSData
typedef struct objc_object NSData;
typedef struct {} _objc_exc_NSData;
#endif
#pragma clang assume_nonnull begin
typedef NSUInteger NSJSONReadingOptions; enum {
NSJSONReadingMutableContainers = (1UL << 0),
NSJSONReadingMutableLeaves = (1UL << 1),
NSJSONReadingFragmentsAllowed = (1UL << 2),
NSJSONReadingAllowFragments __attribute__((availability(macos,introduced=10.7,deprecated=100000,replacement="NSJSONReadingFragmentsAllowed"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,replacement="NSJSONReadingFragmentsAllowed"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="NSJSONReadingFragmentsAllowed"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="NSJSONReadingFragmentsAllowed"))) = NSJSONReadingFragmentsAllowed,
} __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef NSUInteger NSJSONWritingOptions; enum {
NSJSONWritingPrettyPrinted = (1UL << 0),
NSJSONWritingSortedKeys __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))) = (1UL << 1),
NSJSONWritingFragmentsAllowed = (1UL << 2),
NSJSONWritingWithoutEscapingSlashes __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) = (1UL << 3),
} __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSJSONSerialization
#define _REWRITER_typedef_NSJSONSerialization
typedef struct objc_object NSJSONSerialization;
typedef struct {} _objc_exc_NSJSONSerialization;
#endif
struct NSJSONSerialization_IMPL {
struct NSObject_IMPL NSObject_IVARS;
void *reserved[6];
};
// + (BOOL)isValidJSONObject:(id)obj;
// + (nullable NSData *)dataWithJSONObject:(id)obj options:(NSJSONWritingOptions)opt error:(NSError **)error;
// + (nullable id)JSONObjectWithData:(NSData *)data options:(NSJSONReadingOptions)opt error:(NSError **)error;
// + (NSInteger)writeJSONObject:(id)obj toStream:(NSOutputStream *)stream options:(NSJSONWritingOptions)opt error:(NSError **)error;
// + (nullable id)JSONObjectWithStream:(NSInputStream *)stream options:(NSJSONReadingOptions)opt error:(NSError **)error;
/* @end */
#pragma clang assume_nonnull end
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSIndexSet
#define _REWRITER_typedef_NSIndexSet
typedef struct objc_object NSIndexSet;
typedef struct {} _objc_exc_NSIndexSet;
#endif
#ifndef _REWRITER_typedef_NSSet
#define _REWRITER_typedef_NSSet
typedef struct objc_object NSSet;
typedef struct {} _objc_exc_NSSet;
#endif
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#pragma clang assume_nonnull begin
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSOrderedSet
#define _REWRITER_typedef_NSOrderedSet
typedef struct objc_object NSOrderedSet;
typedef struct {} _objc_exc_NSOrderedSet;
#endif
struct NSOrderedSet_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// @property (readonly) NSUInteger count;
// - (ObjectType)objectAtIndex:(NSUInteger)idx;
// - (NSUInteger)indexOfObject:(ObjectType)object;
// - (instancetype)init __attribute__((objc_designated_initializer));
// - (instancetype)initWithObjects:(const ObjectType _Nonnull [_Nullable])objects count:(NSUInteger)cnt __attribute__((objc_designated_initializer));
// - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer));
/* @end */
// @interface NSOrderedSet<ObjectType> (NSExtendedOrderedSet)
// - (void)getObjects:(ObjectType _Nonnull __attribute__((objc_ownership(none))) [_Nullable])objects range:(NSRange)range __attribute__((availability(swift, unavailable, message="Use 'array' instead")));
// - (NSArray<ObjectType> *)objectsAtIndexes:(NSIndexSet *)indexes;
// @property (nullable, nonatomic, readonly) ObjectType firstObject;
// @property (nullable, nonatomic, readonly) ObjectType lastObject;
// - (BOOL)isEqualToOrderedSet:(NSOrderedSet<ObjectType> *)other;
// - (BOOL)containsObject:(ObjectType)object;
// - (BOOL)intersectsOrderedSet:(NSOrderedSet<ObjectType> *)other;
// - (BOOL)intersectsSet:(NSSet<ObjectType> *)set;
// - (BOOL)isSubsetOfOrderedSet:(NSOrderedSet<ObjectType> *)other;
// - (BOOL)isSubsetOfSet:(NSSet<ObjectType> *)set;
// - (ObjectType)objectAtIndexedSubscript:(NSUInteger)idx __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSEnumerator<ObjectType> *)objectEnumerator;
// - (NSEnumerator<ObjectType> *)reverseObjectEnumerator;
// @property (readonly, copy) NSOrderedSet<ObjectType> *reversedOrderedSet;
// @property (readonly, strong) NSArray<ObjectType> *array;
// @property (readonly, strong) NSSet<ObjectType> *set;
// - (void)enumerateObjectsUsingBlock:(void (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))block;
// - (void)enumerateObjectsWithOptions:(NSEnumerationOptions)opts usingBlock:(void (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))block;
// - (void)enumerateObjectsAtIndexes:(NSIndexSet *)s options:(NSEnumerationOptions)opts usingBlock:(void (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))block;
// - (NSUInteger)indexOfObjectPassingTest:(BOOL (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))predicate;
// - (NSUInteger)indexOfObjectWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))predicate;
// - (NSUInteger)indexOfObjectAtIndexes:(NSIndexSet *)s options:(NSEnumerationOptions)opts passingTest:(BOOL (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))predicate;
// - (NSIndexSet *)indexesOfObjectsPassingTest:(BOOL (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))predicate;
// - (NSIndexSet *)indexesOfObjectsWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))predicate;
// - (NSIndexSet *)indexesOfObjectsAtIndexes:(NSIndexSet *)s options:(NSEnumerationOptions)opts passingTest:(BOOL (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))predicate;
// - (NSUInteger)indexOfObject:(ObjectType)object inSortedRange:(NSRange)range options:(NSBinarySearchingOptions)opts usingComparator:(NSComparator __attribute__((noescape)))cmp;
// - (NSArray<ObjectType> *)sortedArrayUsingComparator:(NSComparator __attribute__((noescape)))cmptr;
// - (NSArray<ObjectType> *)sortedArrayWithOptions:(NSSortOptions)opts usingComparator:(NSComparator __attribute__((noescape)))cmptr;
// @property (readonly, copy) NSString *description;
// - (NSString *)descriptionWithLocale:(nullable id)locale;
// - (NSString *)descriptionWithLocale:(nullable id)locale indent:(NSUInteger)level;
/* @end */
// @interface NSOrderedSet<ObjectType> (NSOrderedSetCreation)
// + (instancetype)orderedSet;
// + (instancetype)orderedSetWithObject:(ObjectType)object;
// + (instancetype)orderedSetWithObjects:(const ObjectType _Nonnull [_Nonnull])objects count:(NSUInteger)cnt;
// + (instancetype)orderedSetWithObjects:(ObjectType)firstObj, ... __attribute__((sentinel(0,1)));
// + (instancetype)orderedSetWithOrderedSet:(NSOrderedSet<ObjectType> *)set;
// + (instancetype)orderedSetWithOrderedSet:(NSOrderedSet<ObjectType> *)set range:(NSRange)range copyItems:(BOOL)flag;
// + (instancetype)orderedSetWithArray:(NSArray<ObjectType> *)array;
// + (instancetype)orderedSetWithArray:(NSArray<ObjectType> *)array range:(NSRange)range copyItems:(BOOL)flag;
// + (instancetype)orderedSetWithSet:(NSSet<ObjectType> *)set;
// + (instancetype)orderedSetWithSet:(NSSet<ObjectType> *)set copyItems:(BOOL)flag;
// - (instancetype)initWithObject:(ObjectType)object;
// - (instancetype)initWithObjects:(ObjectType)firstObj, ... __attribute__((sentinel(0,1)));
// - (instancetype)initWithOrderedSet:(NSOrderedSet<ObjectType> *)set;
// - (instancetype)initWithOrderedSet:(NSOrderedSet<ObjectType> *)set copyItems:(BOOL)flag;
// - (instancetype)initWithOrderedSet:(NSOrderedSet<ObjectType> *)set range:(NSRange)range copyItems:(BOOL)flag;
// - (instancetype)initWithArray:(NSArray<ObjectType> *)array;
// - (instancetype)initWithArray:(NSArray<ObjectType> *)set copyItems:(BOOL)flag;
// - (instancetype)initWithArray:(NSArray<ObjectType> *)set range:(NSRange)range copyItems:(BOOL)flag;
// - (instancetype)initWithSet:(NSSet<ObjectType> *)set;
// - (instancetype)initWithSet:(NSSet<ObjectType> *)set copyItems:(BOOL)flag;
/* @end */
__attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)))
__attribute__((availability(swift, unavailable, message="NSOrderedSet diffing methods are not available in Swift, use Collection.difference(from:) instead")))
// @interface NSOrderedSet<ObjectType> (NSOrderedSetDiffing)
// - (NSOrderedCollectionDifference<ObjectType> *)differenceFromOrderedSet:(NSOrderedSet<ObjectType> *)other withOptions:(NSOrderedCollectionDifferenceCalculationOptions)options usingEquivalenceTest:(BOOL (__attribute__((noescape)) ^)(ObjectType obj1, ObjectType obj2))block;
// - (NSOrderedCollectionDifference<ObjectType> *)differenceFromOrderedSet:(NSOrderedSet<ObjectType> *)other withOptions:(NSOrderedCollectionDifferenceCalculationOptions)options;
// - (NSOrderedCollectionDifference<ObjectType> *)differenceFromOrderedSet:(NSOrderedSet<ObjectType> *)other;
// - (nullable NSOrderedSet<ObjectType> *)orderedSetByApplyingDifference:(NSOrderedCollectionDifference<ObjectType> *)difference;
/* @end */
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSMutableOrderedSet
#define _REWRITER_typedef_NSMutableOrderedSet
typedef struct objc_object NSMutableOrderedSet;
typedef struct {} _objc_exc_NSMutableOrderedSet;
#endif
struct NSMutableOrderedSet_IMPL {
struct NSOrderedSet_IMPL NSOrderedSet_IVARS;
};
// - (void)insertObject:(ObjectType)object atIndex:(NSUInteger)idx;
// - (void)removeObjectAtIndex:(NSUInteger)idx;
// - (void)replaceObjectAtIndex:(NSUInteger)idx withObject:(ObjectType)object;
// - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer));
// - (instancetype)init __attribute__((objc_designated_initializer));
// - (instancetype)initWithCapacity:(NSUInteger)numItems __attribute__((objc_designated_initializer));
/* @end */
// @interface NSMutableOrderedSet<ObjectType> (NSExtendedMutableOrderedSet)
// - (void)addObject:(ObjectType)object;
// - (void)addObjects:(const ObjectType _Nonnull [_Nullable])objects count:(NSUInteger)count;
// - (void)addObjectsFromArray:(NSArray<ObjectType> *)array;
// - (void)exchangeObjectAtIndex:(NSUInteger)idx1 withObjectAtIndex:(NSUInteger)idx2;
// - (void)moveObjectsAtIndexes:(NSIndexSet *)indexes toIndex:(NSUInteger)idx;
// - (void)insertObjects:(NSArray<ObjectType> *)objects atIndexes:(NSIndexSet *)indexes;
// - (void)setObject:(ObjectType)obj atIndex:(NSUInteger)idx;
// - (void)setObject:(ObjectType)obj atIndexedSubscript:(NSUInteger)idx __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)replaceObjectsInRange:(NSRange)range withObjects:(const ObjectType _Nonnull [_Nullable])objects count:(NSUInteger)count;
// - (void)replaceObjectsAtIndexes:(NSIndexSet *)indexes withObjects:(NSArray<ObjectType> *)objects;
// - (void)removeObjectsInRange:(NSRange)range;
// - (void)removeObjectsAtIndexes:(NSIndexSet *)indexes;
// - (void)removeAllObjects;
// - (void)removeObject:(ObjectType)object;
// - (void)removeObjectsInArray:(NSArray<ObjectType> *)array;
// - (void)intersectOrderedSet:(NSOrderedSet<ObjectType> *)other;
// - (void)minusOrderedSet:(NSOrderedSet<ObjectType> *)other;
// - (void)unionOrderedSet:(NSOrderedSet<ObjectType> *)other;
// - (void)intersectSet:(NSSet<ObjectType> *)other;
// - (void)minusSet:(NSSet<ObjectType> *)other;
// - (void)unionSet:(NSSet<ObjectType> *)other;
// - (void)sortUsingComparator:(NSComparator __attribute__((noescape)))cmptr;
// - (void)sortWithOptions:(NSSortOptions)opts usingComparator:(NSComparator __attribute__((noescape)))cmptr;
// - (void)sortRange:(NSRange)range options:(NSSortOptions)opts usingComparator:(NSComparator __attribute__((noescape)))cmptr;
/* @end */
// @interface NSMutableOrderedSet<ObjectType> (NSMutableOrderedSetCreation)
// + (instancetype)orderedSetWithCapacity:(NSUInteger)numItems;
/* @end */
__attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)))
__attribute__((availability(swift, unavailable, message="NSMutableOrderedSet diffing methods are not available in Swift")))
// @interface NSMutableOrderedSet<ObjectType> (NSMutableOrderedSetDiffing)
// - (void)applyDifference:(NSOrderedCollectionDifference<ObjectType> *)difference;
/* @end */
#pragma clang assume_nonnull end
// @class NSError;
#ifndef _REWRITER_typedef_NSError
#define _REWRITER_typedef_NSError
typedef struct objc_object NSError;
typedef struct {} _objc_exc_NSError;
#endif
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#pragma clang assume_nonnull begin
extern "C" NSExceptionName const NSUndefinedKeyException;
typedef NSString * NSKeyValueOperator __attribute__((swift_wrapper(enum)));
extern "C" NSKeyValueOperator const NSAverageKeyValueOperator;
extern "C" NSKeyValueOperator const NSCountKeyValueOperator;
extern "C" NSKeyValueOperator const NSDistinctUnionOfArraysKeyValueOperator;
extern "C" NSKeyValueOperator const NSDistinctUnionOfObjectsKeyValueOperator;
extern "C" NSKeyValueOperator const NSDistinctUnionOfSetsKeyValueOperator;
extern "C" NSKeyValueOperator const NSMaximumKeyValueOperator;
extern "C" NSKeyValueOperator const NSMinimumKeyValueOperator;
extern "C" NSKeyValueOperator const NSSumKeyValueOperator;
extern "C" NSKeyValueOperator const NSUnionOfArraysKeyValueOperator;
extern "C" NSKeyValueOperator const NSUnionOfObjectsKeyValueOperator;
extern "C" NSKeyValueOperator const NSUnionOfSetsKeyValueOperator;
// @interface NSObject(NSKeyValueCoding)
@property (class, readonly) BOOL accessInstanceVariablesDirectly;
// - (nullable id)valueForKey:(NSString *)key;
// - (void)setValue:(nullable id)value forKey:(NSString *)key;
// - (BOOL)validateValue:(inout id _Nullable * _Nonnull)ioValue forKey:(NSString *)inKey error:(out NSError **)outError;
// - (NSMutableArray *)mutableArrayValueForKey:(NSString *)key;
// - (NSMutableOrderedSet *)mutableOrderedSetValueForKey:(NSString *)key __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSMutableSet *)mutableSetValueForKey:(NSString *)key;
// - (nullable id)valueForKeyPath:(NSString *)keyPath;
// - (void)setValue:(nullable id)value forKeyPath:(NSString *)keyPath;
// - (BOOL)validateValue:(inout id _Nullable * _Nonnull)ioValue forKeyPath:(NSString *)inKeyPath error:(out NSError **)outError;
// - (NSMutableArray *)mutableArrayValueForKeyPath:(NSString *)keyPath;
// - (NSMutableOrderedSet *)mutableOrderedSetValueForKeyPath:(NSString *)keyPath __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSMutableSet *)mutableSetValueForKeyPath:(NSString *)keyPath;
// - (nullable id)valueForUndefinedKey:(NSString *)key;
// - (void)setValue:(nullable id)value forUndefinedKey:(NSString *)key;
// - (void)setNilValueForKey:(NSString *)key;
// - (NSDictionary<NSString *, id> *)dictionaryWithValuesForKeys:(NSArray<NSString *> *)keys;
// - (void)setValuesForKeysWithDictionary:(NSDictionary<NSString *, id> *)keyedValues;
/* @end */
// @interface NSArray<ObjectType>(NSKeyValueCoding)
// - (id)valueForKey:(NSString *)key;
// - (void)setValue:(nullable id)value forKey:(NSString *)key;
/* @end */
// @interface NSDictionary<KeyType, ObjectType>(NSKeyValueCoding)
// - (nullable ObjectType)valueForKey:(NSString *)key;
/* @end */
// @interface NSMutableDictionary<KeyType, ObjectType>(NSKeyValueCoding)
// - (void)setValue:(nullable ObjectType)value forKey:(NSString *)key;
/* @end */
// @interface NSOrderedSet<ObjectType>(NSKeyValueCoding)
// - (id)valueForKey:(NSString *)key __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)setValue:(nullable id)value forKey:(NSString *)key __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSSet<ObjectType>(NSKeyValueCoding)
// - (id)valueForKey:(NSString *)key;
// - (void)setValue:(nullable id)value forKey:(NSString *)key;
/* @end */
#pragma clang assume_nonnull end
// @class NSIndexSet;
#ifndef _REWRITER_typedef_NSIndexSet
#define _REWRITER_typedef_NSIndexSet
typedef struct objc_object NSIndexSet;
typedef struct {} _objc_exc_NSIndexSet;
#endif
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#pragma clang assume_nonnull begin
typedef NSUInteger NSKeyValueObservingOptions; enum {
NSKeyValueObservingOptionNew = 0x01,
NSKeyValueObservingOptionOld = 0x02,
NSKeyValueObservingOptionInitial __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 0x04,
NSKeyValueObservingOptionPrior __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 0x08
};
typedef NSUInteger NSKeyValueChange; enum {
NSKeyValueChangeSetting = 1,
NSKeyValueChangeInsertion = 2,
NSKeyValueChangeRemoval = 3,
NSKeyValueChangeReplacement = 4,
};
typedef NSUInteger NSKeyValueSetMutationKind; enum {
NSKeyValueUnionSetMutation = 1,
NSKeyValueMinusSetMutation = 2,
NSKeyValueIntersectSetMutation = 3,
NSKeyValueSetSetMutation = 4
};
typedef NSString * NSKeyValueChangeKey __attribute__((swift_wrapper(enum)));
extern "C" NSKeyValueChangeKey const NSKeyValueChangeKindKey;
extern "C" NSKeyValueChangeKey const NSKeyValueChangeNewKey;
extern "C" NSKeyValueChangeKey const NSKeyValueChangeOldKey;
extern "C" NSKeyValueChangeKey const NSKeyValueChangeIndexesKey;
extern "C" NSKeyValueChangeKey const NSKeyValueChangeNotificationIsPriorKey __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @interface NSObject(NSKeyValueObserving)
// - (void)observeValueForKeyPath:(nullable NSString *)keyPath ofObject:(nullable id)object change:(nullable NSDictionary<NSKeyValueChangeKey, id> *)change context:(nullable void *)context;
/* @end */
// @interface NSObject(NSKeyValueObserverRegistration)
// - (void)addObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath options:(NSKeyValueObservingOptions)options context:(nullable void *)context;
// - (void)removeObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath context:(nullable void *)context __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)removeObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath;
/* @end */
// @interface NSArray<ObjectType>(NSKeyValueObserverRegistration)
// - (void)addObserver:(NSObject *)observer toObjectsAtIndexes:(NSIndexSet *)indexes forKeyPath:(NSString *)keyPath options:(NSKeyValueObservingOptions)options context:(nullable void *)context;
// - (void)removeObserver:(NSObject *)observer fromObjectsAtIndexes:(NSIndexSet *)indexes forKeyPath:(NSString *)keyPath context:(nullable void *)context __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)removeObserver:(NSObject *)observer fromObjectsAtIndexes:(NSIndexSet *)indexes forKeyPath:(NSString *)keyPath;
// - (void)addObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath options:(NSKeyValueObservingOptions)options context:(nullable void *)context;
// - (void)removeObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath context:(nullable void *)context __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)removeObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath;
/* @end */
// @interface NSOrderedSet<ObjectType>(NSKeyValueObserverRegistration)
// - (void)addObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath options:(NSKeyValueObservingOptions)options context:(nullable void *)context;
// - (void)removeObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath context:(nullable void *)context __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)removeObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath;
/* @end */
// @interface NSSet<ObjectType>(NSKeyValueObserverRegistration)
// - (void)addObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath options:(NSKeyValueObservingOptions)options context:(nullable void *)context;
// - (void)removeObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath context:(nullable void *)context __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)removeObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath;
/* @end */
// @interface NSObject(NSKeyValueObserverNotification)
// - (void)willChangeValueForKey:(NSString *)key;
// - (void)didChangeValueForKey:(NSString *)key;
// - (void)willChange:(NSKeyValueChange)changeKind valuesAtIndexes:(NSIndexSet *)indexes forKey:(NSString *)key;
// - (void)didChange:(NSKeyValueChange)changeKind valuesAtIndexes:(NSIndexSet *)indexes forKey:(NSString *)key;
// - (void)willChangeValueForKey:(NSString *)key withSetMutation:(NSKeyValueSetMutationKind)mutationKind usingObjects:(NSSet *)objects;
// - (void)didChangeValueForKey:(NSString *)key withSetMutation:(NSKeyValueSetMutationKind)mutationKind usingObjects:(NSSet *)objects;
/* @end */
// @interface NSObject(NSKeyValueObservingCustomization)
// + (NSSet<NSString *> *)keyPathsForValuesAffectingValueForKey:(NSString *)key __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (BOOL)automaticallyNotifiesObserversForKey:(NSString *)key;
// @property (nullable) void *observationInfo __attribute__((objc_returns_inner_pointer));
/* @end */
#pragma clang assume_nonnull end
// @class NSData;
#ifndef _REWRITER_typedef_NSData
#define _REWRITER_typedef_NSData
typedef struct objc_object NSData;
typedef struct {} _objc_exc_NSData;
#endif
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#ifndef _REWRITER_typedef_NSError
#define _REWRITER_typedef_NSError
typedef struct objc_object NSError;
typedef struct {} _objc_exc_NSError;
#endif
#ifndef _REWRITER_typedef_NSInputStream
#define _REWRITER_typedef_NSInputStream
typedef struct objc_object NSInputStream;
typedef struct {} _objc_exc_NSInputStream;
#endif
#ifndef _REWRITER_typedef_NSOutputStream
#define _REWRITER_typedef_NSOutputStream
typedef struct objc_object NSOutputStream;
typedef struct {} _objc_exc_NSOutputStream;
#endif
#pragma clang assume_nonnull begin
typedef NSUInteger NSPropertyListMutabilityOptions; enum {
NSPropertyListImmutable = kCFPropertyListImmutable,
NSPropertyListMutableContainers = kCFPropertyListMutableContainers,
NSPropertyListMutableContainersAndLeaves = kCFPropertyListMutableContainersAndLeaves
};
typedef NSUInteger NSPropertyListFormat; enum {
NSPropertyListOpenStepFormat = kCFPropertyListOpenStepFormat,
NSPropertyListXMLFormat_v1_0 = kCFPropertyListXMLFormat_v1_0,
NSPropertyListBinaryFormat_v1_0 = kCFPropertyListBinaryFormat_v1_0
};
typedef NSPropertyListMutabilityOptions NSPropertyListReadOptions;
typedef NSUInteger NSPropertyListWriteOptions;
#ifndef _REWRITER_typedef_NSPropertyListSerialization
#define _REWRITER_typedef_NSPropertyListSerialization
typedef struct objc_object NSPropertyListSerialization;
typedef struct {} _objc_exc_NSPropertyListSerialization;
#endif
struct NSPropertyListSerialization_IMPL {
struct NSObject_IMPL NSObject_IVARS;
void *reserved[6];
};
// + (BOOL)propertyList:(id)plist isValidForFormat:(NSPropertyListFormat)format;
// + (nullable NSData *)dataWithPropertyList:(id)plist format:(NSPropertyListFormat)format options:(NSPropertyListWriteOptions)opt error:(out NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSInteger)writePropertyList:(id)plist toStream:(NSOutputStream *)stream format:(NSPropertyListFormat)format options:(NSPropertyListWriteOptions)opt error:(out NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (nullable id)propertyListWithData:(NSData *)data options:(NSPropertyListReadOptions)opt format:(nullable NSPropertyListFormat *)format error:(out NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (nullable id)propertyListWithStream:(NSInputStream *)stream options:(NSPropertyListReadOptions)opt format:(nullable NSPropertyListFormat *)format error:(out NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (nullable NSData *)dataFromPropertyList:(id)plist format:(NSPropertyListFormat)format errorDescription:(out __attribute__((objc_ownership(strong))) NSString * _Nullable * _Nullable)errorString __attribute__((availability(macos,introduced=10.0,deprecated=10.10,message="Use dataWithPropertyList:format:options:error: instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use dataWithPropertyList:format:options:error: instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use dataWithPropertyList:format:options:error: instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use dataWithPropertyList:format:options:error: instead.")));
// + (nullable id)propertyListFromData:(NSData *)data mutabilityOption:(NSPropertyListMutabilityOptions)opt format:(nullable NSPropertyListFormat *)format errorDescription:(out __attribute__((objc_ownership(strong))) NSString * _Nullable * _Nullable)errorString __attribute__((availability(macos,introduced=10.0,deprecated=10.10,message="Use propertyListWithData:options:format:error: instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use propertyListWithData:options:format:error: instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use propertyListWithData:options:format:error: instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use propertyListWithData:options:format:error: instead.")));
/* @end */
#pragma clang assume_nonnull end
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSMutableData
#define _REWRITER_typedef_NSMutableData
typedef struct objc_object NSMutableData;
typedef struct {} _objc_exc_NSMutableData;
#endif
#ifndef _REWRITER_typedef_NSData
#define _REWRITER_typedef_NSData
typedef struct objc_object NSData;
typedef struct {} _objc_exc_NSData;
#endif
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
// @protocol NSKeyedArchiverDelegate, NSKeyedUnarchiverDelegate;
#pragma clang assume_nonnull begin
extern "C" NSExceptionName const NSInvalidArchiveOperationException;
extern "C" NSExceptionName const NSInvalidUnarchiveOperationException;
extern "C" NSString * const NSKeyedArchiveRootObjectKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
#ifndef _REWRITER_typedef_NSKeyedArchiver
#define _REWRITER_typedef_NSKeyedArchiver
typedef struct objc_object NSKeyedArchiver;
typedef struct {} _objc_exc_NSKeyedArchiver;
#endif
struct NSKeyedArchiver_IMPL {
struct NSCoder_IMPL NSCoder_IVARS;
void *_stream;
NSUInteger _flags;
id _delegate;
id _containers;
id _objects;
id _objRefMap;
id _replacementMap;
id _classNameMap;
id _conditionals;
id _classes;
NSUInteger _genericKey;
void *_cache;
NSUInteger _cacheSize;
NSUInteger _estimatedCount;
void *_reserved2;
id _visited;
void *_reserved0;
};
// - (instancetype)initRequiringSecureCoding:(BOOL)requiresSecureCoding __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// + (nullable NSData *)archivedDataWithRootObject:(id)object requiringSecureCoding:(BOOL)requiresSecureCoding error:(NSError **)error __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// - (instancetype)init __attribute__((availability(macosx,introduced=10.12,deprecated=10.14,message="Use -initRequiringSecureCoding: instead"))) __attribute__((availability(ios,introduced=10.0,deprecated=12.0,message="Use -initRequiringSecureCoding: instead"))) __attribute__((availability(watchos,introduced=3.0,deprecated=5.0,message="Use -initRequiringSecureCoding: instead"))) __attribute__((availability(tvos,introduced=10.0,deprecated=12.0,message="Use -initRequiringSecureCoding: instead")));
// - (instancetype)initForWritingWithMutableData:(NSMutableData *)data __attribute__((availability(macosx,introduced=10.2,deprecated=10.14,message="Use -initRequiringSecureCoding: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="Use -initRequiringSecureCoding: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=5.0,message="Use -initRequiringSecureCoding: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="Use -initRequiringSecureCoding: instead")));
// + (NSData *)archivedDataWithRootObject:(id)rootObject __attribute__((availability(macosx,introduced=10.2,deprecated=10.14,message="Use +archivedDataWithRootObject:requiringSecureCoding:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="Use +archivedDataWithRootObject:requiringSecureCoding:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=5.0,message="Use +archivedDataWithRootObject:requiringSecureCoding:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="Use +archivedDataWithRootObject:requiringSecureCoding:error: instead")));
// + (BOOL)archiveRootObject:(id)rootObject toFile:(NSString *)path __attribute__((availability(macosx,introduced=10.2,deprecated=10.14,message="Use +archivedDataWithRootObject:requiringSecureCoding:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="Use +archivedDataWithRootObject:requiringSecureCoding:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=5.0,message="Use +archivedDataWithRootObject:requiringSecureCoding:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="Use +archivedDataWithRootObject:requiringSecureCoding:error: instead")));
// @property (nullable, assign) id <NSKeyedArchiverDelegate> delegate;
// @property NSPropertyListFormat outputFormat;
// @property (readonly, strong) NSData *encodedData __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// - (void)finishEncoding;
// + (void)setClassName:(nullable NSString *)codedName forClass:(Class)cls;
// - (void)setClassName:(nullable NSString *)codedName forClass:(Class)cls;
// + (nullable NSString *)classNameForClass:(Class)cls;
// - (nullable NSString *)classNameForClass:(Class)cls;
// - (void)encodeObject:(nullable id)object forKey:(NSString *)key;
// - (void)encodeConditionalObject:(nullable id)object forKey:(NSString *)key;
// - (void)encodeBool:(BOOL)value forKey:(NSString *)key;
// - (void)encodeInt:(int)value forKey:(NSString *)key;
// - (void)encodeInt32:(int32_t)value forKey:(NSString *)key;
// - (void)encodeInt64:(int64_t)value forKey:(NSString *)key;
// - (void)encodeFloat:(float)value forKey:(NSString *)key;
// - (void)encodeDouble:(double)value forKey:(NSString *)key;
// - (void)encodeBytes:(nullable const uint8_t *)bytes length:(NSUInteger)length forKey:(NSString *)key;
// @property (readwrite) BOOL requiresSecureCoding __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
#ifndef _REWRITER_typedef_NSKeyedUnarchiver
#define _REWRITER_typedef_NSKeyedUnarchiver
typedef struct objc_object NSKeyedUnarchiver;
typedef struct {} _objc_exc_NSKeyedUnarchiver;
#endif
struct NSKeyedUnarchiver_IMPL {
struct NSCoder_IMPL NSCoder_IVARS;
id _delegate;
uint32_t _flags;
id _objRefMap;
id _replacementMap;
id _nameClassMap;
id _tmpRefObjMap;
id _refObjMap;
int32_t _genericKey;
id _data;
void *_offsetData;
id _containers;
id _objects;
const uint8_t *_bytes;
uint64_t _len;
id _helper;
void *_reserved0;
};
// - (nullable instancetype)initForReadingFromData:(NSData *)data error:(NSError **)error __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// + (nullable id)unarchivedObjectOfClass:(Class)cls fromData:(NSData *)data error:(NSError **)error __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((swift_private));
// + (nullable id)unarchivedObjectOfClasses:(NSSet<Class> *)classes fromData:(NSData *)data error:(NSError **)error __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((swift_private));
// - (instancetype)init __attribute__((availability(macosx,introduced=10.2,deprecated=10.14,message="Use -initForReadingFromData:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="Use -initForReadingFromData:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=5.0,message="Use -initForReadingFromData:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="Use -initForReadingFromData:error: instead")));
// - (instancetype)initForReadingWithData:(NSData *)data __attribute__((availability(macosx,introduced=10.2,deprecated=10.14,message="Use -initForReadingFromData:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="Use -initForReadingFromData:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=5.0,message="Use -initForReadingFromData:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="Use -initForReadingFromData:error: instead")));
// + (nullable id)unarchiveObjectWithData:(NSData *)data __attribute__((availability(macosx,introduced=10.2,deprecated=10.14,message="Use +unarchivedObjectOfClass:fromData:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="Use +unarchivedObjectOfClass:fromData:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=5.0,message="Use +unarchivedObjectOfClass:fromData:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="Use +unarchivedObjectOfClass:fromData:error: instead")));
// + (nullable id)unarchiveTopLevelObjectWithData:(NSData *)data error:(NSError **)error __attribute__((availability(macosx,introduced=10.11,deprecated=10.14,message="Use +unarchivedObjectOfClass:fromData:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="Use +unarchivedObjectOfClass:fromData:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=5.0,message="Use +unarchivedObjectOfClass:fromData:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="Use +unarchivedObjectOfClass:fromData:error: instead"))) __attribute__((availability(swift, unavailable, message="Use 'unarchiveTopLevelObjectWithData(_:) throws' instead")));
// + (nullable id)unarchiveObjectWithFile:(NSString *)path __attribute__((availability(macosx,introduced=10.2,deprecated=10.14,message="Use +unarchivedObjectOfClass:fromData:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="Use +unarchivedObjectOfClass:fromData:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=5.0,message="Use +unarchivedObjectOfClass:fromData:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="Use +unarchivedObjectOfClass:fromData:error: instead")));
// @property (nullable, assign) id <NSKeyedUnarchiverDelegate> delegate;
// - (void)finishDecoding;
// + (void)setClass:(nullable Class)cls forClassName:(NSString *)codedName;
// - (void)setClass:(nullable Class)cls forClassName:(NSString *)codedName;
// + (nullable Class)classForClassName:(NSString *)codedName;
// - (nullable Class)classForClassName:(NSString *)codedName;
// - (BOOL)containsValueForKey:(NSString *)key;
// - (nullable id)decodeObjectForKey:(NSString *)key;
// - (BOOL)decodeBoolForKey:(NSString *)key;
// - (int)decodeIntForKey:(NSString *)key;
// - (int32_t)decodeInt32ForKey:(NSString *)key;
// - (int64_t)decodeInt64ForKey:(NSString *)key;
// - (float)decodeFloatForKey:(NSString *)key;
// - (double)decodeDoubleForKey:(NSString *)key;
// - (nullable const uint8_t *)decodeBytesForKey:(NSString *)key returnedLength:(nullable NSUInteger *)lengthp __attribute__((objc_returns_inner_pointer));
// @property (readwrite) BOOL requiresSecureCoding __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readwrite) NSDecodingFailurePolicy decodingFailurePolicy __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @protocol NSKeyedArchiverDelegate <NSObject>
/* @optional */
// - (nullable id)archiver:(NSKeyedArchiver *)archiver willEncodeObject:(id)object;
// - (void)archiver:(NSKeyedArchiver *)archiver didEncodeObject:(nullable id)object;
// - (void)archiver:(NSKeyedArchiver *)archiver willReplaceObject:(nullable id)object withObject:(nullable id)newObject;
// - (void)archiverWillFinish:(NSKeyedArchiver *)archiver;
// - (void)archiverDidFinish:(NSKeyedArchiver *)archiver;
/* @end */
// @protocol NSKeyedUnarchiverDelegate <NSObject>
/* @optional */
// - (nullable Class)unarchiver:(NSKeyedUnarchiver *)unarchiver cannotDecodeObjectOfClassName:(NSString *)name originalClasses:(NSArray<NSString *> *)classNames;
// - (nullable id)unarchiver:(NSKeyedUnarchiver *)unarchiver didDecodeObject:(nullable id) __attribute__((ns_consumed)) object __attribute__((ns_returns_retained));
// - (void)unarchiver:(NSKeyedUnarchiver *)unarchiver willReplaceObject:(id)object withObject:(id)newObject;
// - (void)unarchiverWillFinish:(NSKeyedUnarchiver *)unarchiver;
// - (void)unarchiverDidFinish:(NSKeyedUnarchiver *)unarchiver;
/* @end */
// @interface NSObject (NSKeyedArchiverObjectSubstitution)
// @property (nullable, readonly) Class classForKeyedArchiver;
// - (nullable id)replacementObjectForKeyedArchiver:(NSKeyedArchiver *)archiver;
// + (NSArray<NSString *> *)classFallbacksForKeyedArchiver;
/* @end */
// @interface NSObject (NSKeyedUnarchiverObjectSubstitution)
// + (Class)classForKeyedUnarchiver;
/* @end */
#pragma clang assume_nonnull end
// @class NSDate;
#ifndef _REWRITER_typedef_NSDate
#define _REWRITER_typedef_NSDate
typedef struct objc_object NSDate;
typedef struct {} _objc_exc_NSDate;
#endif
#pragma clang assume_nonnull begin
// @protocol NSLocking
// - (void)lock;
// - (void)unlock;
/* @end */
#ifndef _REWRITER_typedef_NSLock
#define _REWRITER_typedef_NSLock
typedef struct objc_object NSLock;
typedef struct {} _objc_exc_NSLock;
#endif
struct NSLock_IMPL {
struct NSObject_IMPL NSObject_IVARS;
void *_priv;
};
// - (BOOL)tryLock;
// - (BOOL)lockBeforeDate:(NSDate *)limit;
// @property (nullable, copy) NSString *name __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
#ifndef _REWRITER_typedef_NSConditionLock
#define _REWRITER_typedef_NSConditionLock
typedef struct objc_object NSConditionLock;
typedef struct {} _objc_exc_NSConditionLock;
#endif
struct NSConditionLock_IMPL {
struct NSObject_IMPL NSObject_IVARS;
void *_priv;
};
// - (instancetype)initWithCondition:(NSInteger)condition __attribute__((objc_designated_initializer));
// @property (readonly) NSInteger condition;
// - (void)lockWhenCondition:(NSInteger)condition;
// - (BOOL)tryLock;
// - (BOOL)tryLockWhenCondition:(NSInteger)condition;
// - (void)unlockWithCondition:(NSInteger)condition;
// - (BOOL)lockBeforeDate:(NSDate *)limit;
// - (BOOL)lockWhenCondition:(NSInteger)condition beforeDate:(NSDate *)limit;
// @property (nullable, copy) NSString *name __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
#ifndef _REWRITER_typedef_NSRecursiveLock
#define _REWRITER_typedef_NSRecursiveLock
typedef struct objc_object NSRecursiveLock;
typedef struct {} _objc_exc_NSRecursiveLock;
#endif
struct NSRecursiveLock_IMPL {
struct NSObject_IMPL NSObject_IVARS;
void *_priv;
};
// - (BOOL)tryLock;
// - (BOOL)lockBeforeDate:(NSDate *)limit;
// @property (nullable, copy) NSString *name __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
__attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSCondition
#define _REWRITER_typedef_NSCondition
typedef struct objc_object NSCondition;
typedef struct {} _objc_exc_NSCondition;
#endif
struct NSCondition_IMPL {
struct NSObject_IMPL NSObject_IVARS;
void *_priv;
};
// - (void)wait;
// - (BOOL)waitUntilDate:(NSDate *)limit;
// - (void)signal;
// - (void)broadcast;
// @property (nullable, copy) NSString *name __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
#pragma clang assume_nonnull end
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
#ifndef _REWRITER_typedef_NSMapTable
#define _REWRITER_typedef_NSMapTable
typedef struct objc_object NSMapTable;
typedef struct {} _objc_exc_NSMapTable;
#endif
#pragma clang assume_nonnull begin
static const NSPointerFunctionsOptions NSMapTableStrongMemory __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = NSPointerFunctionsStrongMemory;
static const NSPointerFunctionsOptions NSMapTableZeroingWeakMemory __attribute__((availability(macos,introduced=10.5,deprecated=10.8,message="GC no longer supported"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = NSPointerFunctionsZeroingWeakMemory;
static const NSPointerFunctionsOptions NSMapTableCopyIn __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = NSPointerFunctionsCopyIn;
static const NSPointerFunctionsOptions NSMapTableObjectPointerPersonality __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = NSPointerFunctionsObjectPointerPersonality;
static const NSPointerFunctionsOptions NSMapTableWeakMemory __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = NSPointerFunctionsWeakMemory;
typedef NSUInteger NSMapTableOptions;
__attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSMapTable
#define _REWRITER_typedef_NSMapTable
typedef struct objc_object NSMapTable;
typedef struct {} _objc_exc_NSMapTable;
#endif
struct NSMapTable_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// - (instancetype)initWithKeyOptions:(NSPointerFunctionsOptions)keyOptions valueOptions:(NSPointerFunctionsOptions)valueOptions capacity:(NSUInteger)initialCapacity __attribute__((objc_designated_initializer));
// - (instancetype)initWithKeyPointerFunctions:(NSPointerFunctions *)keyFunctions valuePointerFunctions:(NSPointerFunctions *)valueFunctions capacity:(NSUInteger)initialCapacity __attribute__((objc_designated_initializer));
// + (NSMapTable<KeyType, ObjectType> *)mapTableWithKeyOptions:(NSPointerFunctionsOptions)keyOptions valueOptions:(NSPointerFunctionsOptions)valueOptions;
// + (id)mapTableWithStrongToStrongObjects __attribute__((availability(macos,introduced=10.5,deprecated=10.8,message="GC no longer supported"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// + (id)mapTableWithWeakToStrongObjects __attribute__((availability(macos,introduced=10.5,deprecated=10.8,message="GC no longer supported"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// + (id)mapTableWithStrongToWeakObjects __attribute__((availability(macos,introduced=10.5,deprecated=10.8,message="GC no longer supported"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// + (id)mapTableWithWeakToWeakObjects __attribute__((availability(macos,introduced=10.5,deprecated=10.8,message="GC no longer supported"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// + (NSMapTable<KeyType, ObjectType> *)strongToStrongObjectsMapTable __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSMapTable<KeyType, ObjectType> *)weakToStrongObjectsMapTable __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSMapTable<KeyType, ObjectType> *)strongToWeakObjectsMapTable __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSMapTable<KeyType, ObjectType> *)weakToWeakObjectsMapTable __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSPointerFunctions *keyPointerFunctions;
// @property (readonly, copy) NSPointerFunctions *valuePointerFunctions;
// - (nullable ObjectType)objectForKey:(nullable KeyType)aKey;
// - (void)removeObjectForKey:(nullable KeyType)aKey;
// - (void)setObject:(nullable ObjectType)anObject forKey:(nullable KeyType)aKey;
// @property (readonly) NSUInteger count;
// - (NSEnumerator<KeyType> *)keyEnumerator;
// - (nullable NSEnumerator<ObjectType> *)objectEnumerator;
// - (void)removeAllObjects;
// - (NSDictionary<KeyType, ObjectType> *)dictionaryRepresentation;
/* @end */
typedef struct {NSUInteger _pi; NSUInteger _si; void * _Nullable _bs;} NSMapEnumerator;
extern "C" void NSFreeMapTable(NSMapTable *table);
extern "C" void NSResetMapTable(NSMapTable *table);
extern "C" BOOL NSCompareMapTables(NSMapTable *table1, NSMapTable *table2);
extern "C" NSMapTable *NSCopyMapTableWithZone(NSMapTable *table, NSZone * _Nullable zone);
extern "C" BOOL NSMapMember(NSMapTable *table, const void *key, void * _Nullable * _Nullable originalKey, void * _Nullable * _Nullable value);
extern "C" void * _Nullable NSMapGet(NSMapTable *table, const void * _Nullable key);
extern "C" void NSMapInsert(NSMapTable *table, const void * _Nullable key, const void * _Nullable value);
extern "C" void NSMapInsertKnownAbsent(NSMapTable *table, const void * _Nullable key, const void * _Nullable value);
extern "C" void * _Nullable NSMapInsertIfAbsent(NSMapTable *table, const void * _Nullable key, const void * _Nullable value);
extern "C" void NSMapRemove(NSMapTable *table, const void * _Nullable key);
extern "C" NSMapEnumerator NSEnumerateMapTable(NSMapTable *table);
extern "C" BOOL NSNextMapEnumeratorPair(NSMapEnumerator *enumerator, void * _Nullable * _Nullable key, void * _Nullable * _Nullable value);
extern "C" void NSEndMapTableEnumeration(NSMapEnumerator *enumerator);
extern "C" NSUInteger NSCountMapTable(NSMapTable *table);
extern "C" NSString *NSStringFromMapTable(NSMapTable *table);
extern "C" NSArray *NSAllMapTableKeys(NSMapTable *table);
extern "C" NSArray *NSAllMapTableValues(NSMapTable *table);
typedef struct {
NSUInteger (* _Nullable hash)(NSMapTable *table, const void *);
BOOL (* _Nullable isEqual)(NSMapTable *table, const void *, const void *);
void (* _Nullable retain)(NSMapTable *table, const void *);
void (* _Nullable release)(NSMapTable *table, void *);
NSString * _Nullable (* _Nullable describe)(NSMapTable *table, const void *);
const void * _Nullable notAKeyMarker;
} NSMapTableKeyCallBacks;
typedef struct {
void (* _Nullable retain)(NSMapTable *table, const void *);
void (* _Nullable release)(NSMapTable *table, void *);
NSString * _Nullable(* _Nullable describe)(NSMapTable *table, const void *);
} NSMapTableValueCallBacks;
extern "C" NSMapTable *NSCreateMapTableWithZone(NSMapTableKeyCallBacks keyCallBacks, NSMapTableValueCallBacks valueCallBacks, NSUInteger capacity, NSZone * _Nullable zone);
extern "C" NSMapTable *NSCreateMapTable(NSMapTableKeyCallBacks keyCallBacks, NSMapTableValueCallBacks valueCallBacks, NSUInteger capacity);
extern "C" const NSMapTableKeyCallBacks NSIntegerMapKeyCallBacks __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" const NSMapTableKeyCallBacks NSNonOwnedPointerMapKeyCallBacks;
extern "C" const NSMapTableKeyCallBacks NSNonOwnedPointerOrNullMapKeyCallBacks;
extern "C" const NSMapTableKeyCallBacks NSNonRetainedObjectMapKeyCallBacks;
extern "C" const NSMapTableKeyCallBacks NSObjectMapKeyCallBacks;
extern "C" const NSMapTableKeyCallBacks NSOwnedPointerMapKeyCallBacks;
extern "C" const NSMapTableKeyCallBacks NSIntMapKeyCallBacks __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message="Not supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Not supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Not supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Not supported")));
extern "C" const NSMapTableValueCallBacks NSIntegerMapValueCallBacks __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" const NSMapTableValueCallBacks NSNonOwnedPointerMapValueCallBacks;
extern "C" const NSMapTableValueCallBacks NSObjectMapValueCallBacks;
extern "C" const NSMapTableValueCallBacks NSNonRetainedObjectMapValueCallBacks;
extern "C" const NSMapTableValueCallBacks NSOwnedPointerMapValueCallBacks;
extern "C" const NSMapTableValueCallBacks NSIntMapValueCallBacks __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message="Not supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Not supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Not supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Not supported")));
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
__attribute__((availability(swift, unavailable, message="NSInvocation and related APIs not available")))
#ifndef _REWRITER_typedef_NSMethodSignature
#define _REWRITER_typedef_NSMethodSignature
typedef struct objc_object NSMethodSignature;
typedef struct {} _objc_exc_NSMethodSignature;
#endif
struct NSMethodSignature_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// + (nullable NSMethodSignature *)signatureWithObjCTypes:(const char *)types;
// @property (readonly) NSUInteger numberOfArguments;
// - (const char *)getArgumentTypeAtIndex:(NSUInteger)idx __attribute__((objc_returns_inner_pointer));
// @property (readonly) NSUInteger frameLength;
// - (BOOL)isOneway;
// @property (readonly) const char *methodReturnType __attribute__((objc_returns_inner_pointer));
// @property (readonly) NSUInteger methodReturnLength;
/* @end */
#pragma clang assume_nonnull end
// @class NSNotification;
#ifndef _REWRITER_typedef_NSNotification
#define _REWRITER_typedef_NSNotification
typedef struct objc_object NSNotification;
typedef struct {} _objc_exc_NSNotification;
#endif
#ifndef _REWRITER_typedef_NSNotificationCenter
#define _REWRITER_typedef_NSNotificationCenter
typedef struct objc_object NSNotificationCenter;
typedef struct {} _objc_exc_NSNotificationCenter;
#endif
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#pragma clang assume_nonnull begin
typedef NSUInteger NSPostingStyle; enum {
NSPostWhenIdle = 1,
NSPostASAP = 2,
NSPostNow = 3
};
typedef NSUInteger NSNotificationCoalescing; enum {
NSNotificationNoCoalescing = 0,
NSNotificationCoalescingOnName = 1,
NSNotificationCoalescingOnSender = 2
};
#ifndef _REWRITER_typedef_NSNotificationQueue
#define _REWRITER_typedef_NSNotificationQueue
typedef struct objc_object NSNotificationQueue;
typedef struct {} _objc_exc_NSNotificationQueue;
#endif
struct NSNotificationQueue_IMPL {
struct NSObject_IMPL NSObject_IVARS;
id _notificationCenter;
id _asapQueue;
id _asapObs;
id _idleQueue;
id _idleObs;
};
@property (class, readonly, strong) NSNotificationQueue *defaultQueue;
// - (instancetype)initWithNotificationCenter:(NSNotificationCenter *)notificationCenter __attribute__((objc_designated_initializer));
// - (void)enqueueNotification:(NSNotification *)notification postingStyle:(NSPostingStyle)postingStyle;
// - (void)enqueueNotification:(NSNotification *)notification postingStyle:(NSPostingStyle)postingStyle coalesceMask:(NSNotificationCoalescing)coalesceMask forModes:(nullable NSArray<NSRunLoopMode> *)modes;
// - (void)dequeueNotificationsMatching:(NSNotification *)notification coalesceMask:(NSUInteger)coalesceMask;
/* @end */
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
#ifndef _REWRITER_typedef_NSNull
#define _REWRITER_typedef_NSNull
typedef struct objc_object NSNull;
typedef struct {} _objc_exc_NSNull;
#endif
struct NSNull_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// + (NSNull *)null;
/* @end */
#pragma clang assume_nonnull end
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSSet
#define _REWRITER_typedef_NSSet
typedef struct objc_object NSSet;
typedef struct {} _objc_exc_NSSet;
#endif
#pragma clang assume_nonnull begin
__attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSOperation
#define _REWRITER_typedef_NSOperation
typedef struct objc_object NSOperation;
typedef struct {} _objc_exc_NSOperation;
#endif
struct NSOperation_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// - (void)start;
// - (void)main;
// @property (readonly, getter=isCancelled) BOOL cancelled;
// - (void)cancel;
// @property (readonly, getter=isExecuting) BOOL executing;
// @property (readonly, getter=isFinished) BOOL finished;
// @property (readonly, getter=isConcurrent) BOOL concurrent;
// @property (readonly, getter=isAsynchronous) BOOL asynchronous __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, getter=isReady) BOOL ready;
// - (void)addDependency:(NSOperation *)op;
// - (void)removeDependency:(NSOperation *)op;
// @property (readonly, copy) NSArray<NSOperation *> *dependencies;
typedef NSInteger NSOperationQueuePriority; enum {
NSOperationQueuePriorityVeryLow = -8L,
NSOperationQueuePriorityLow = -4L,
NSOperationQueuePriorityNormal = 0,
NSOperationQueuePriorityHigh = 4,
NSOperationQueuePriorityVeryHigh = 8
};
// @property NSOperationQueuePriority queuePriority;
// @property (nullable, copy) void (^completionBlock)(void) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)waitUntilFinished __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property double threadPriority __attribute__((availability(macos,introduced=10.6,deprecated=10.10,message="Not supported"))) __attribute__((availability(ios,introduced=4.0,deprecated=8.0,message="Not supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Not supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Not supported")));
// @property NSQualityOfService qualityOfService __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, copy) NSString *name __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSBlockOperation
#define _REWRITER_typedef_NSBlockOperation
typedef struct objc_object NSBlockOperation;
typedef struct {} _objc_exc_NSBlockOperation;
#endif
struct NSBlockOperation_IMPL {
struct NSOperation_IMPL NSOperation_IVARS;
};
// + (instancetype)blockOperationWithBlock:(void (^)(void))block;
// - (void)addExecutionBlock:(void (^)(void))block;
// @property (readonly, copy) NSArray<void (^)(void)> *executionBlocks;
/* @end */
__attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
__attribute__((availability(swift, unavailable, message="NSInvocation and related APIs not available")))
#ifndef _REWRITER_typedef_NSInvocationOperation
#define _REWRITER_typedef_NSInvocationOperation
typedef struct objc_object NSInvocationOperation;
typedef struct {} _objc_exc_NSInvocationOperation;
#endif
struct NSInvocationOperation_IMPL {
struct NSOperation_IMPL NSOperation_IVARS;
};
// - (nullable instancetype)initWithTarget:(id)target selector:(SEL)sel object:(nullable id)arg;
// - (instancetype)initWithInvocation:(NSInvocation *)inv __attribute__((objc_designated_initializer));
// @property (readonly, retain) NSInvocation *invocation;
// @property (nullable, readonly, retain) id result;
/* @end */
extern "C" NSExceptionName const NSInvocationOperationVoidResultException __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSExceptionName const NSInvocationOperationCancelledException __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
static const NSInteger NSOperationQueueDefaultMaxConcurrentOperationCount = -1;
__attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSOperationQueue
#define _REWRITER_typedef_NSOperationQueue
typedef struct objc_object NSOperationQueue;
typedef struct {} _objc_exc_NSOperationQueue;
#endif
struct NSOperationQueue_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// @property (readonly, strong) NSProgress *progress __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0)));
// - (void)addOperation:(NSOperation *)op;
// - (void)addOperations:(NSArray<NSOperation *> *)ops waitUntilFinished:(BOOL)wait __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)addOperationWithBlock:(void (^)(void))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)addBarrierBlock:(void (^)(void))barrier __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0)));
// @property NSInteger maxConcurrentOperationCount;
// @property (getter=isSuspended) BOOL suspended;
// @property (nullable, copy) NSString *name __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property NSQualityOfService qualityOfService __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, assign ) dispatch_queue_t underlyingQueue __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)cancelAllOperations;
// - (void)waitUntilAllOperationsAreFinished;
@property (class, readonly, strong, nullable) NSOperationQueue *currentQueue __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
@property (class, readonly, strong) NSOperationQueue *mainQueue __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSOperationQueue (NSDeprecated)
// @property (readonly, copy) NSArray<__kindof NSOperation *> *operations __attribute__((availability(macos,introduced=10.5,deprecated=100000,message="access to operations is inherently a race condition, it should not be used. For barrier style behaviors please use addBarrierBlock: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,message="access to operations is inherently a race condition, it should not be used. For barrier style behaviors please use addBarrierBlock: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="access to operations is inherently a race condition, it should not be used. For barrier style behaviors please use addBarrierBlock: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="access to operations is inherently a race condition, it should not be used. For barrier style behaviors please use addBarrierBlock: instead")));
// @property (readonly) NSUInteger operationCount __attribute__((availability(macos,introduced=10.6,deprecated=100000,replacement="progress.completedUnitCount"))) __attribute__((availability(ios,introduced=4.0,deprecated=100000,replacement="progress.completedUnitCount"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="progress.completedUnitCount"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="progress.completedUnitCount")));
/* @end */
#pragma clang assume_nonnull end
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
#pragma clang assume_nonnull begin
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSOrthography
#define _REWRITER_typedef_NSOrthography
typedef struct objc_object NSOrthography;
typedef struct {} _objc_exc_NSOrthography;
#endif
struct NSOrthography_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// @property (readonly, copy) NSString *dominantScript;
// @property (readonly, copy) NSDictionary<NSString *, NSArray<NSString *> *> *languageMap;
// - (instancetype)initWithDominantScript:(NSString *)script languageMap:(NSDictionary<NSString *, NSArray<NSString *> *> *)map __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((objc_designated_initializer));
// - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer));
/* @end */
// @interface NSOrthography (NSOrthographyExtended)
// - (nullable NSArray<NSString *> *)languagesForScript:(NSString *)script __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSString *)dominantLanguageForScript:(NSString *)script __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSString *dominantLanguage __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSArray<NSString *> *allScripts __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSArray<NSString *> *allLanguages __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (instancetype)defaultOrthographyForLanguage:(NSString *)language __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
/* @end */
// @interface NSOrthography (NSOrthographyCreation)
// + (instancetype)orthographyWithDominantScript:(NSString *)script languageMap:(NSDictionary<NSString *, NSArray<NSString *> *> *)map __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
__attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSPointerArray
#define _REWRITER_typedef_NSPointerArray
typedef struct objc_object NSPointerArray;
typedef struct {} _objc_exc_NSPointerArray;
#endif
struct NSPointerArray_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// - (instancetype)initWithOptions:(NSPointerFunctionsOptions)options __attribute__((objc_designated_initializer));
// - (instancetype)initWithPointerFunctions:(NSPointerFunctions *)functions __attribute__((objc_designated_initializer));
// + (NSPointerArray *)pointerArrayWithOptions:(NSPointerFunctionsOptions)options;
// + (NSPointerArray *)pointerArrayWithPointerFunctions:(NSPointerFunctions *)functions;
// @property (readonly, copy) NSPointerFunctions *pointerFunctions;
// - (nullable void *)pointerAtIndex:(NSUInteger)index;
// - (void)addPointer:(nullable void *)pointer;
// - (void)removePointerAtIndex:(NSUInteger)index;
// - (void)insertPointer:(nullable void *)item atIndex:(NSUInteger)index;
// - (void)replacePointerAtIndex:(NSUInteger)index withPointer:(nullable void *)item;
// - (void)compact;
// @property NSUInteger count;
/* @end */
// @interface NSPointerArray (NSPointerArrayConveniences)
// + (NSPointerArray *)strongObjectsPointerArray __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSPointerArray *)weakObjectsPointerArray __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSArray *allObjects;
/* @end */
#pragma clang assume_nonnull end
typedef int NSSocketNativeHandle;
// @class NSRunLoop;
#ifndef _REWRITER_typedef_NSRunLoop
#define _REWRITER_typedef_NSRunLoop
typedef struct objc_object NSRunLoop;
typedef struct {} _objc_exc_NSRunLoop;
#endif
#ifndef _REWRITER_typedef_NSMutableArray
#define _REWRITER_typedef_NSMutableArray
typedef struct objc_object NSMutableArray;
typedef struct {} _objc_exc_NSMutableArray;
#endif
#ifndef _REWRITER_typedef_NSDate
#define _REWRITER_typedef_NSDate
typedef struct objc_object NSDate;
typedef struct {} _objc_exc_NSDate;
#endif
// @class NSConnection;
#ifndef _REWRITER_typedef_NSConnection
#define _REWRITER_typedef_NSConnection
typedef struct objc_object NSConnection;
typedef struct {} _objc_exc_NSConnection;
#endif
#ifndef _REWRITER_typedef_NSPortMessage
#define _REWRITER_typedef_NSPortMessage
typedef struct objc_object NSPortMessage;
typedef struct {} _objc_exc_NSPortMessage;
#endif
// @class NSData;
#ifndef _REWRITER_typedef_NSData
#define _REWRITER_typedef_NSData
typedef struct objc_object NSData;
typedef struct {} _objc_exc_NSData;
#endif
// @protocol NSPortDelegate, NSMachPortDelegate;
#pragma clang assume_nonnull begin
extern "C" NSNotificationName const NSPortDidBecomeInvalidNotification;
#ifndef _REWRITER_typedef_NSPort
#define _REWRITER_typedef_NSPort
typedef struct objc_object NSPort;
typedef struct {} _objc_exc_NSPort;
#endif
struct NSPort_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// + (NSPort *)port;
// - (void)invalidate;
// @property (readonly, getter=isValid) BOOL valid;
// - (void)setDelegate:(nullable id <NSPortDelegate>)anObject;
// - (nullable id <NSPortDelegate>)delegate;
// - (void)scheduleInRunLoop:(NSRunLoop *)runLoop forMode:(NSRunLoopMode)mode;
// - (void)removeFromRunLoop:(NSRunLoop *)runLoop forMode:(NSRunLoopMode)mode;
// @property (readonly) NSUInteger reservedSpaceLength;
// - (BOOL)sendBeforeDate:(NSDate *)limitDate components:(nullable NSMutableArray *)components from:(nullable NSPort *) receivePort reserved:(NSUInteger)headerSpaceReserved;
// - (BOOL)sendBeforeDate:(NSDate *)limitDate msgid:(NSUInteger)msgID components:(nullable NSMutableArray *)components from:(nullable NSPort *)receivePort reserved:(NSUInteger)headerSpaceReserved;
/* @end */
// @protocol NSPortDelegate <NSObject>
/* @optional */
// - (void)handlePortMessage:(NSPortMessage *)message;
/* @end */
__attribute__((objc_arc_weak_reference_unavailable))
#ifndef _REWRITER_typedef_NSMachPort
#define _REWRITER_typedef_NSMachPort
typedef struct objc_object NSMachPort;
typedef struct {} _objc_exc_NSMachPort;
#endif
struct NSMachPort_IMPL {
struct NSPort_IMPL NSPort_IVARS;
id _delegate;
NSUInteger _flags;
uint32_t _machPort;
NSUInteger _reserved;
};
// + (NSPort *)portWithMachPort:(uint32_t)machPort;
// - (instancetype)initWithMachPort:(uint32_t)machPort __attribute__((objc_designated_initializer));
// - (void)setDelegate:(nullable id <NSMachPortDelegate>)anObject;
// - (nullable id <NSMachPortDelegate>)delegate;
typedef NSUInteger NSMachPortOptions; enum {
NSMachPortDeallocateNone = 0,
NSMachPortDeallocateSendRight = (1UL << 0),
NSMachPortDeallocateReceiveRight = (1UL << 1)
} __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSPort *)portWithMachPort:(uint32_t)machPort options:(NSMachPortOptions)f __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (instancetype)initWithMachPort:(uint32_t)machPort options:(NSMachPortOptions)f __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((objc_designated_initializer));
// @property (readonly) uint32_t machPort;
// - (void)scheduleInRunLoop:(NSRunLoop *)runLoop forMode:(NSRunLoopMode)mode;
// - (void)removeFromRunLoop:(NSRunLoop *)runLoop forMode:(NSRunLoopMode)mode;
/* @end */
// @protocol NSMachPortDelegate <NSPortDelegate>
/* @optional */
// - (void)handleMachMessage:(void *)msg;
/* @end */
__attribute__((objc_arc_weak_reference_unavailable))
#ifndef _REWRITER_typedef_NSMessagePort
#define _REWRITER_typedef_NSMessagePort
typedef struct objc_object NSMessagePort;
typedef struct {} _objc_exc_NSMessagePort;
#endif
struct NSMessagePort_IMPL {
struct NSPort_IMPL NSPort_IVARS;
void *_port;
id _delegate;
};
/* @end */
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
enum {
NSWindowsNTOperatingSystem = 1,
NSWindows95OperatingSystem,
NSSolarisOperatingSystem,
NSHPUXOperatingSystem,
NSMACHOperatingSystem,
NSSunOSOperatingSystem,
NSOSF1OperatingSystem
} __attribute__((availability(macos,introduced=10.0,deprecated=10.10,message="Not supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Not supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Not supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Not supported")));
typedef struct {
NSInteger majorVersion;
NSInteger minorVersion;
NSInteger patchVersion;
} NSOperatingSystemVersion;
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
#ifndef _REWRITER_typedef_NSProcessInfo
#define _REWRITER_typedef_NSProcessInfo
typedef struct objc_object NSProcessInfo;
typedef struct {} _objc_exc_NSProcessInfo;
#endif
struct NSProcessInfo_IMPL {
struct NSObject_IMPL NSObject_IVARS;
NSDictionary *environment;
NSArray *arguments;
NSString *hostName;
NSString *name;
NSInteger automaticTerminationOptOutCounter;
};
@property (class, readonly, strong) NSProcessInfo *processInfo;
// @property (readonly, copy) NSDictionary<NSString *, NSString *> *environment;
// @property (readonly, copy) NSArray<NSString *> *arguments;
// @property (readonly, copy) NSString *hostName;
// @property (copy) NSString *processName;
// @property (readonly) int processIdentifier;
// @property (readonly, copy) NSString *globallyUniqueString;
// - (NSUInteger)operatingSystem __attribute__((availability(macos,introduced=10.0,deprecated=10.10,message="-operatingSystem always returns NSMACHOperatingSystem, use -operatingSystemVersion or -isOperatingSystemAtLeastVersion: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="-operatingSystem always returns NSMACHOperatingSystem, use -operatingSystemVersion or -isOperatingSystemAtLeastVersion: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="-operatingSystem always returns NSMACHOperatingSystem, use -operatingSystemVersion or -isOperatingSystemAtLeastVersion: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="-operatingSystem always returns NSMACHOperatingSystem, use -operatingSystemVersion or -isOperatingSystemAtLeastVersion: instead")));
// - (NSString *)operatingSystemName __attribute__((availability(macos,introduced=10.0,deprecated=10.10,message="-operatingSystemName always returns NSMACHOperatingSystem, use -operatingSystemVersionString instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="-operatingSystemName always returns NSMACHOperatingSystem, use -operatingSystemVersionString instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="-operatingSystemName always returns NSMACHOperatingSystem, use -operatingSystemVersionString instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="-operatingSystemName always returns NSMACHOperatingSystem, use -operatingSystemVersionString instead")));
// @property (readonly, copy) NSString *operatingSystemVersionString;
// @property (readonly) NSOperatingSystemVersion operatingSystemVersion __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly) NSUInteger processorCount __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly) NSUInteger activeProcessorCount __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly) unsigned long long physicalMemory __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL) isOperatingSystemAtLeastVersion:(NSOperatingSystemVersion)version __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly) NSTimeInterval systemUptime __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)disableSuddenTermination __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// - (void)enableSuddenTermination __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// - (void)disableAutomaticTermination:(NSString *)reason __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// - (void)enableAutomaticTermination:(NSString *)reason __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// @property BOOL automaticTerminationSupportEnabled __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
/* @end */
typedef uint64_t NSActivityOptions; enum {
NSActivityIdleDisplaySleepDisabled = (1ULL << 40),
NSActivityIdleSystemSleepDisabled = (1ULL << 20),
NSActivitySuddenTerminationDisabled = (1ULL << 14),
NSActivityAutomaticTerminationDisabled = (1ULL << 15),
NSActivityUserInitiated = (0x00FFFFFFULL | NSActivityIdleSystemSleepDisabled),
NSActivityUserInitiatedAllowingIdleSystemSleep = (NSActivityUserInitiated & ~NSActivityIdleSystemSleepDisabled),
NSActivityBackground = 0x000000FFULL,
NSActivityLatencyCritical = 0xFF00000000ULL,
} __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @interface NSProcessInfo (NSProcessInfoActivity)
// - (id <NSObject>)beginActivityWithOptions:(NSActivityOptions)options reason:(NSString *)reason __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)endActivity:(id <NSObject>)activity __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)performActivityWithOptions:(NSActivityOptions)options reason:(NSString *)reason usingBlock:(void (^)(void))block __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)performExpiringActivityWithReason:(NSString *)reason usingBlock:(void(^)(BOOL expired))block __attribute__((availability(ios,introduced=8.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
/* @end */
// @interface NSProcessInfo (NSUserInformation)
// @property (readonly, copy) NSString *userName __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// @property (readonly, copy) NSString *fullUserName __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
/* @end */
typedef NSInteger NSProcessInfoThermalState; enum {
NSProcessInfoThermalStateNominal,
NSProcessInfoThermalStateFair,
NSProcessInfoThermalStateSerious,
NSProcessInfoThermalStateCritical
} __attribute__((availability(macosx,introduced=10.10.3))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// @interface NSProcessInfo (NSProcessInfoThermalState)
// @property (readonly) NSProcessInfoThermalState thermalState __attribute__((availability(macosx,introduced=10.10.3))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
/* @end */
// @interface NSProcessInfo (NSProcessInfoPowerState)
// @property (readonly, getter=isLowPowerModeEnabled) BOOL lowPowerModeEnabled __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
/* @end */
extern "C" NSNotificationName const NSProcessInfoThermalStateDidChangeNotification __attribute__((availability(macosx,introduced=10.10.3))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
extern "C" NSNotificationName const NSProcessInfoPowerStateDidChangeNotification __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
// @interface NSProcessInfo (NSProcessInfoPlatform)
// @property (readonly, getter=isMacCatalystApp) BOOL macCatalystApp __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
/* @end */
#pragma clang assume_nonnull end
// @class NSMethodSignature;
#ifndef _REWRITER_typedef_NSMethodSignature
#define _REWRITER_typedef_NSMethodSignature
typedef struct objc_object NSMethodSignature;
typedef struct {} _objc_exc_NSMethodSignature;
#endif
#ifndef _REWRITER_typedef_NSInvocation
#define _REWRITER_typedef_NSInvocation
typedef struct objc_object NSInvocation;
typedef struct {} _objc_exc_NSInvocation;
#endif
#pragma clang assume_nonnull begin
__attribute__((objc_root_class))
#ifndef _REWRITER_typedef_NSProxy
#define _REWRITER_typedef_NSProxy
typedef struct objc_object NSProxy;
typedef struct {} _objc_exc_NSProxy;
#endif
struct NSProxy_IMPL {
Class isa;
};
// + (id)alloc;
// + (id)allocWithZone:(nullable NSZone *)zone ;
// + (Class)class;
// - (void)forwardInvocation:(NSInvocation *)invocation;
// - (nullable NSMethodSignature *)methodSignatureForSelector:(SEL)sel __attribute__((availability(swift, unavailable, message="NSInvocation and related APIs not available")));
// - (void)dealloc;
// - (void)finalize;
// @property (readonly, copy) NSString *description;
// @property (readonly, copy) NSString *debugDescription;
// + (BOOL)respondsToSelector:(SEL)aSelector;
// - (BOOL)allowsWeakReference __attribute__((availability(macos,unavailable))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// - (BOOL)retainWeakReference __attribute__((availability(macos,unavailable))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
/* @end */
#pragma clang assume_nonnull end
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
#ifndef _REWRITER_typedef_NSDate
#define _REWRITER_typedef_NSDate
typedef struct objc_object NSDate;
typedef struct {} _objc_exc_NSDate;
#endif
#ifndef _REWRITER_typedef_NSTimeZone
#define _REWRITER_typedef_NSTimeZone
typedef struct objc_object NSTimeZone;
typedef struct {} _objc_exc_NSTimeZone;
#endif
#ifndef _REWRITER_typedef_NSOrthography
#define _REWRITER_typedef_NSOrthography
typedef struct objc_object NSOrthography;
typedef struct {} _objc_exc_NSOrthography;
#endif
#ifndef _REWRITER_typedef_NSURL
#define _REWRITER_typedef_NSURL
typedef struct objc_object NSURL;
typedef struct {} _objc_exc_NSURL;
#endif
#ifndef _REWRITER_typedef_NSRegularExpression
#define _REWRITER_typedef_NSRegularExpression
typedef struct objc_object NSRegularExpression;
typedef struct {} _objc_exc_NSRegularExpression;
#endif
#pragma clang assume_nonnull begin
typedef uint64_t NSTextCheckingType; enum {
NSTextCheckingTypeOrthography = 1ULL << 0,
NSTextCheckingTypeSpelling = 1ULL << 1,
NSTextCheckingTypeGrammar = 1ULL << 2,
NSTextCheckingTypeDate = 1ULL << 3,
NSTextCheckingTypeAddress = 1ULL << 4,
NSTextCheckingTypeLink = 1ULL << 5,
NSTextCheckingTypeQuote = 1ULL << 6,
NSTextCheckingTypeDash = 1ULL << 7,
NSTextCheckingTypeReplacement = 1ULL << 8,
NSTextCheckingTypeCorrection = 1ULL << 9,
NSTextCheckingTypeRegularExpression __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 1ULL << 10,
NSTextCheckingTypePhoneNumber __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 1ULL << 11,
NSTextCheckingTypeTransitInformation __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 1ULL << 12
};
typedef uint64_t NSTextCheckingTypes;
enum {
NSTextCheckingAllSystemTypes = 0xffffffffULL,
NSTextCheckingAllCustomTypes = 0xffffffffULL << 32,
NSTextCheckingAllTypes = (NSTextCheckingAllSystemTypes | NSTextCheckingAllCustomTypes)
};
typedef NSString *NSTextCheckingKey __attribute__((swift_wrapper(struct)));
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSTextCheckingResult
#define _REWRITER_typedef_NSTextCheckingResult
typedef struct objc_object NSTextCheckingResult;
typedef struct {} _objc_exc_NSTextCheckingResult;
#endif
struct NSTextCheckingResult_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// @property (readonly) NSTextCheckingType resultType;
// @property (readonly) NSRange range;
/* @end */
// @interface NSTextCheckingResult (NSTextCheckingResultOptional)
// @property (nullable, readonly, copy) NSOrthography *orthography;
// @property (nullable, readonly, copy) NSArray<NSDictionary<NSString *, id> *> *grammarDetails;
// @property (nullable, readonly, copy) NSDate *date;
// @property (nullable, readonly, copy) NSTimeZone *timeZone;
// @property (readonly) NSTimeInterval duration;
// @property (nullable, readonly, copy) NSDictionary<NSTextCheckingKey, NSString *> *components __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) NSURL *URL;
// @property (nullable, readonly, copy) NSString *replacementString;
// @property (nullable, readonly, copy) NSArray<NSString *> *alternativeStrings __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) NSRegularExpression *regularExpression __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) NSString *phoneNumber __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly) NSUInteger numberOfRanges __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSRange)rangeAtIndex:(NSUInteger)idx __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSRange)rangeWithName:(NSString *)name __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// - (NSTextCheckingResult *)resultByAdjustingRangesWithOffset:(NSInteger)offset __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) NSDictionary<NSTextCheckingKey, NSString *> *addressComponents;
/* @end */
extern "C" NSTextCheckingKey const NSTextCheckingNameKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSTextCheckingKey const NSTextCheckingJobTitleKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSTextCheckingKey const NSTextCheckingOrganizationKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSTextCheckingKey const NSTextCheckingStreetKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSTextCheckingKey const NSTextCheckingCityKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSTextCheckingKey const NSTextCheckingStateKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSTextCheckingKey const NSTextCheckingZIPKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSTextCheckingKey const NSTextCheckingCountryKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSTextCheckingKey const NSTextCheckingPhoneKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSTextCheckingKey const NSTextCheckingAirlineKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSTextCheckingKey const NSTextCheckingFlightKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @interface NSTextCheckingResult (NSTextCheckingResultCreation)
// + (NSTextCheckingResult *)orthographyCheckingResultWithRange:(NSRange)range orthography:(NSOrthography *)orthography;
// + (NSTextCheckingResult *)spellCheckingResultWithRange:(NSRange)range;
// + (NSTextCheckingResult *)grammarCheckingResultWithRange:(NSRange)range details:(NSArray<NSDictionary<NSString *, id> *> *)details;
// + (NSTextCheckingResult *)dateCheckingResultWithRange:(NSRange)range date:(NSDate *)date;
// + (NSTextCheckingResult *)dateCheckingResultWithRange:(NSRange)range date:(NSDate *)date timeZone:(NSTimeZone *)timeZone duration:(NSTimeInterval)duration;
// + (NSTextCheckingResult *)addressCheckingResultWithRange:(NSRange)range components:(NSDictionary<NSTextCheckingKey, NSString *> *)components;
// + (NSTextCheckingResult *)linkCheckingResultWithRange:(NSRange)range URL:(NSURL *)url;
// + (NSTextCheckingResult *)quoteCheckingResultWithRange:(NSRange)range replacementString:(NSString *)replacementString;
// + (NSTextCheckingResult *)dashCheckingResultWithRange:(NSRange)range replacementString:(NSString *)replacementString;
// + (NSTextCheckingResult *)replacementCheckingResultWithRange:(NSRange)range replacementString:(NSString *)replacementString;
// + (NSTextCheckingResult *)correctionCheckingResultWithRange:(NSRange)range replacementString:(NSString *)replacementString;
// + (NSTextCheckingResult *)correctionCheckingResultWithRange:(NSRange)range replacementString:(NSString *)replacementString alternativeStrings:(NSArray<NSString *> *)alternativeStrings __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSTextCheckingResult *)regularExpressionCheckingResultWithRanges:(NSRangePointer)ranges count:(NSUInteger)count regularExpression:(NSRegularExpression *)regularExpression __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSTextCheckingResult *)phoneNumberCheckingResultWithRange:(NSRange)range phoneNumber:(NSString *)phoneNumber __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSTextCheckingResult *)transitInformationCheckingResultWithRange:(NSRange)range components:(NSDictionary<NSTextCheckingKey, NSString *> *)components __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
#pragma clang assume_nonnull end
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#pragma clang assume_nonnull begin
typedef NSUInteger NSRegularExpressionOptions; enum {
NSRegularExpressionCaseInsensitive = 1 << 0,
NSRegularExpressionAllowCommentsAndWhitespace = 1 << 1,
NSRegularExpressionIgnoreMetacharacters = 1 << 2,
NSRegularExpressionDotMatchesLineSeparators = 1 << 3,
NSRegularExpressionAnchorsMatchLines = 1 << 4,
NSRegularExpressionUseUnixLineSeparators = 1 << 5,
NSRegularExpressionUseUnicodeWordBoundaries = 1 << 6
};
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSRegularExpression
#define _REWRITER_typedef_NSRegularExpression
typedef struct objc_object NSRegularExpression;
typedef struct {} _objc_exc_NSRegularExpression;
#endif
struct NSRegularExpression_IMPL {
struct NSObject_IMPL NSObject_IVARS;
NSString *_pattern;
NSUInteger _options;
void *_internal;
id _reserved1;
int32_t _checkout;
int32_t _reserved2;
};
// + (nullable NSRegularExpression *)regularExpressionWithPattern:(NSString *)pattern options:(NSRegularExpressionOptions)options error:(NSError **)error;
// - (nullable instancetype)initWithPattern:(NSString *)pattern options:(NSRegularExpressionOptions)options error:(NSError **)error __attribute__((objc_designated_initializer));
// @property (readonly, copy) NSString *pattern;
// @property (readonly) NSRegularExpressionOptions options;
// @property (readonly) NSUInteger numberOfCaptureGroups;
// + (NSString *)escapedPatternForString:(NSString *)string;
/* @end */
typedef NSUInteger NSMatchingOptions; enum {
NSMatchingReportProgress = 1 << 0,
NSMatchingReportCompletion = 1 << 1,
NSMatchingAnchored = 1 << 2,
NSMatchingWithTransparentBounds = 1 << 3,
NSMatchingWithoutAnchoringBounds = 1 << 4
};
typedef NSUInteger NSMatchingFlags; enum {
NSMatchingProgress = 1 << 0,
NSMatchingCompleted = 1 << 1,
NSMatchingHitEnd = 1 << 2,
NSMatchingRequiredEnd = 1 << 3,
NSMatchingInternalError = 1 << 4
};
// @interface NSRegularExpression (NSMatching)
// - (void)enumerateMatchesInString:(NSString *)string options:(NSMatchingOptions)options range:(NSRange)range usingBlock:(void (__attribute__((noescape)) ^)(NSTextCheckingResult * _Nullable result, NSMatchingFlags flags, BOOL *stop))block;
// - (NSArray<NSTextCheckingResult *> *)matchesInString:(NSString *)string options:(NSMatchingOptions)options range:(NSRange)range;
// - (NSUInteger)numberOfMatchesInString:(NSString *)string options:(NSMatchingOptions)options range:(NSRange)range;
// - (nullable NSTextCheckingResult *)firstMatchInString:(NSString *)string options:(NSMatchingOptions)options range:(NSRange)range;
// - (NSRange)rangeOfFirstMatchInString:(NSString *)string options:(NSMatchingOptions)options range:(NSRange)range;
/* @end */
// @interface NSRegularExpression (NSReplacement)
// - (NSString *)stringByReplacingMatchesInString:(NSString *)string options:(NSMatchingOptions)options range:(NSRange)range withTemplate:(NSString *)templ;
// - (NSUInteger)replaceMatchesInString:(NSMutableString *)string options:(NSMatchingOptions)options range:(NSRange)range withTemplate:(NSString *)templ;
// - (NSString *)replacementStringForResult:(NSTextCheckingResult *)result inString:(NSString *)string offset:(NSInteger)offset template:(NSString *)templ;
// + (NSString *)escapedTemplateForString:(NSString *)string;
/* @end */
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSDataDetector
#define _REWRITER_typedef_NSDataDetector
typedef struct objc_object NSDataDetector;
typedef struct {} _objc_exc_NSDataDetector;
#endif
struct NSDataDetector_IMPL {
struct NSRegularExpression_IMPL NSRegularExpression_IVARS;
NSTextCheckingTypes _types;
};
// + (nullable NSDataDetector *)dataDetectorWithTypes:(NSTextCheckingTypes)checkingTypes error:(NSError **)error;
// - (nullable instancetype)initWithTypes:(NSTextCheckingTypes)checkingTypes error:(NSError **)error __attribute__((objc_designated_initializer));
// @property (readonly) NSTextCheckingTypes checkingTypes;
/* @end */
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
#ifndef _REWRITER_typedef_NSSortDescriptor
#define _REWRITER_typedef_NSSortDescriptor
typedef struct objc_object NSSortDescriptor;
typedef struct {} _objc_exc_NSSortDescriptor;
#endif
struct NSSortDescriptor_IMPL {
struct NSObject_IMPL NSObject_IVARS;
NSUInteger _sortDescriptorFlags;
NSString *_key;
SEL _selector;
id _selectorOrBlock;
};
// + (instancetype)sortDescriptorWithKey:(nullable NSString *)key ascending:(BOOL)ascending __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (instancetype)sortDescriptorWithKey:(nullable NSString *)key ascending:(BOOL)ascending selector:(nullable SEL)selector __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (instancetype)initWithKey:(nullable NSString *)key ascending:(BOOL)ascending;
// - (instancetype)initWithKey:(nullable NSString *)key ascending:(BOOL)ascending selector:(nullable SEL)selector;
// - (nullable instancetype)initWithCoder:(NSCoder *)coder;
// @property (nullable, readonly, copy) NSString *key;
// @property (readonly) BOOL ascending;
// @property (nullable, readonly) SEL selector;
// - (void)allowEvaluation __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (instancetype)sortDescriptorWithKey:(nullable NSString *)key ascending:(BOOL)ascending comparator:(NSComparator)cmptr __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (instancetype)initWithKey:(nullable NSString *)key ascending:(BOOL)ascending comparator:(NSComparator)cmptr __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly) NSComparator comparator __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSComparisonResult)compareObject:(id)object1 toObject:(id)object2;
// @property (readonly, retain) id reversedSortDescriptor;
/* @end */
// @interface NSSet<ObjectType> (NSSortDescriptorSorting)
// - (NSArray<ObjectType> *)sortedArrayUsingDescriptors:(NSArray<NSSortDescriptor *> *)sortDescriptors __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSArray<ObjectType> (NSSortDescriptorSorting)
// - (NSArray<ObjectType> *)sortedArrayUsingDescriptors:(NSArray<NSSortDescriptor *> *)sortDescriptors;
/* @end */
// @interface NSMutableArray<ObjectType> (NSSortDescriptorSorting)
// - (void)sortUsingDescriptors:(NSArray<NSSortDescriptor *> *)sortDescriptors;
/* @end */
// @interface NSOrderedSet<ObjectType> (NSKeyValueSorting)
// - (NSArray<ObjectType> *)sortedArrayUsingDescriptors:(NSArray<NSSortDescriptor *> *)sortDescriptors __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSMutableOrderedSet<ObjectType> (NSKeyValueSorting)
// - (void)sortUsingDescriptors:(NSArray<NSSortDescriptor *> *)sortDescriptors __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
#pragma clang assume_nonnull end
// @class NSData;
#ifndef _REWRITER_typedef_NSData
#define _REWRITER_typedef_NSData
typedef struct objc_object NSData;
typedef struct {} _objc_exc_NSData;
#endif
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
#ifndef _REWRITER_typedef_NSError
#define _REWRITER_typedef_NSError
typedef struct objc_object NSError;
typedef struct {} _objc_exc_NSError;
#endif
#ifndef _REWRITER_typedef_NSHost
#define _REWRITER_typedef_NSHost
typedef struct objc_object NSHost;
typedef struct {} _objc_exc_NSHost;
#endif
#ifndef _REWRITER_typedef_NSInputStream
#define _REWRITER_typedef_NSInputStream
typedef struct objc_object NSInputStream;
typedef struct {} _objc_exc_NSInputStream;
#endif
#ifndef _REWRITER_typedef_NSOutputStream
#define _REWRITER_typedef_NSOutputStream
typedef struct objc_object NSOutputStream;
typedef struct {} _objc_exc_NSOutputStream;
#endif
#ifndef _REWRITER_typedef_NSRunLoop
#define _REWRITER_typedef_NSRunLoop
typedef struct objc_object NSRunLoop;
typedef struct {} _objc_exc_NSRunLoop;
#endif
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#ifndef _REWRITER_typedef_NSURL
#define _REWRITER_typedef_NSURL
typedef struct objc_object NSURL;
typedef struct {} _objc_exc_NSURL;
#endif
// @protocol NSStreamDelegate;
typedef NSString * NSStreamPropertyKey __attribute__((swift_wrapper(struct)));
#pragma clang assume_nonnull begin
typedef NSUInteger NSStreamStatus; enum {
NSStreamStatusNotOpen = 0,
NSStreamStatusOpening = 1,
NSStreamStatusOpen = 2,
NSStreamStatusReading = 3,
NSStreamStatusWriting = 4,
NSStreamStatusAtEnd = 5,
NSStreamStatusClosed = 6,
NSStreamStatusError = 7
};
typedef NSUInteger NSStreamEvent; enum {
NSStreamEventNone = 0,
NSStreamEventOpenCompleted = 1UL << 0,
NSStreamEventHasBytesAvailable = 1UL << 1,
NSStreamEventHasSpaceAvailable = 1UL << 2,
NSStreamEventErrorOccurred = 1UL << 3,
NSStreamEventEndEncountered = 1UL << 4
};
#ifndef _REWRITER_typedef_NSStream
#define _REWRITER_typedef_NSStream
typedef struct objc_object NSStream;
typedef struct {} _objc_exc_NSStream;
#endif
struct NSStream_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// - (void)open;
// - (void)close;
// @property (nullable, assign) id <NSStreamDelegate> delegate;
// - (nullable id)propertyForKey:(NSStreamPropertyKey)key;
// - (BOOL)setProperty:(nullable id)property forKey:(NSStreamPropertyKey)key;
// - (void)scheduleInRunLoop:(NSRunLoop *)aRunLoop forMode:(NSRunLoopMode)mode;
// - (void)removeFromRunLoop:(NSRunLoop *)aRunLoop forMode:(NSRunLoopMode)mode;
// @property (readonly) NSStreamStatus streamStatus;
// @property (nullable, readonly, copy) NSError *streamError;
/* @end */
#ifndef _REWRITER_typedef_NSInputStream
#define _REWRITER_typedef_NSInputStream
typedef struct objc_object NSInputStream;
typedef struct {} _objc_exc_NSInputStream;
#endif
struct NSInputStream_IMPL {
struct NSStream_IMPL NSStream_IVARS;
};
// - (NSInteger)read:(uint8_t *)buffer maxLength:(NSUInteger)len;
// - (BOOL)getBuffer:(uint8_t * _Nullable * _Nonnull)buffer length:(NSUInteger *)len;
// @property (readonly) BOOL hasBytesAvailable;
// - (instancetype)initWithData:(NSData *)data __attribute__((objc_designated_initializer));
// - (nullable instancetype)initWithURL:(NSURL *)url __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((objc_designated_initializer));
/* @end */
#ifndef _REWRITER_typedef_NSOutputStream
#define _REWRITER_typedef_NSOutputStream
typedef struct objc_object NSOutputStream;
typedef struct {} _objc_exc_NSOutputStream;
#endif
struct NSOutputStream_IMPL {
struct NSStream_IMPL NSStream_IVARS;
};
// - (NSInteger)write:(const uint8_t *)buffer maxLength:(NSUInteger)len;
// @property (readonly) BOOL hasSpaceAvailable;
// - (instancetype)initToMemory __attribute__((objc_designated_initializer));
// - (instancetype)initToBuffer:(uint8_t *)buffer capacity:(NSUInteger)capacity __attribute__((objc_designated_initializer));
// - (nullable instancetype)initWithURL:(NSURL *)url append:(BOOL)shouldAppend __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((objc_designated_initializer));
/* @end */
// @interface NSStream (NSSocketStreamCreationExtensions)
// + (void)getStreamsToHostWithName:(NSString *)hostname port:(NSInteger)port inputStream:(NSInputStream * _Nullable * _Nullable)inputStream outputStream:(NSOutputStream * _Nullable * _Nullable)outputStream __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,unavailable)));
/* @end */
// @interface NSStream (NSStreamBoundPairCreationExtensions)
// + (void)getBoundStreamsWithBufferSize:(NSUInteger)bufferSize inputStream:(NSInputStream * _Nullable * _Nullable)inputStream outputStream:(NSOutputStream * _Nullable * _Nullable)outputStream __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSInputStream (NSInputStreamExtensions)
// - (nullable instancetype)initWithFileAtPath:(NSString *)path;
// + (nullable instancetype)inputStreamWithData:(NSData *)data;
// + (nullable instancetype)inputStreamWithFileAtPath:(NSString *)path;
// + (nullable instancetype)inputStreamWithURL:(NSURL *)url __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSOutputStream (NSOutputStreamExtensions)
// - (nullable instancetype)initToFileAtPath:(NSString *)path append:(BOOL)shouldAppend;
// + (instancetype)outputStreamToMemory;
// + (instancetype)outputStreamToBuffer:(uint8_t *)buffer capacity:(NSUInteger)capacity;
// + (instancetype)outputStreamToFileAtPath:(NSString *)path append:(BOOL)shouldAppend;
// + (nullable instancetype)outputStreamWithURL:(NSURL *)url append:(BOOL)shouldAppend __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @protocol NSStreamDelegate <NSObject>
/* @optional */
// - (void)stream:(NSStream *)aStream handleEvent:(NSStreamEvent)eventCode;
/* @end */
extern "C" NSStreamPropertyKey const NSStreamSocketSecurityLevelKey __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef NSString * NSStreamSocketSecurityLevel __attribute__((swift_wrapper(enum)));
extern "C" NSStreamSocketSecurityLevel const NSStreamSocketSecurityLevelNone __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStreamSocketSecurityLevel const NSStreamSocketSecurityLevelSSLv2 __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStreamSocketSecurityLevel const NSStreamSocketSecurityLevelSSLv3 __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStreamSocketSecurityLevel const NSStreamSocketSecurityLevelTLSv1 __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStreamSocketSecurityLevel const NSStreamSocketSecurityLevelNegotiatedSSL __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStreamPropertyKey const NSStreamSOCKSProxyConfigurationKey __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef NSString * NSStreamSOCKSProxyConfiguration __attribute__((swift_wrapper(enum)));
extern "C" NSStreamSOCKSProxyConfiguration const NSStreamSOCKSProxyHostKey __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStreamSOCKSProxyConfiguration const NSStreamSOCKSProxyPortKey __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStreamSOCKSProxyConfiguration const NSStreamSOCKSProxyVersionKey __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStreamSOCKSProxyConfiguration const NSStreamSOCKSProxyUserKey __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStreamSOCKSProxyConfiguration const NSStreamSOCKSProxyPasswordKey __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef NSString * NSStreamSOCKSProxyVersion __attribute__((swift_wrapper(enum)));
extern "C" NSStreamSOCKSProxyVersion const NSStreamSOCKSProxyVersion4 __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStreamSOCKSProxyVersion const NSStreamSOCKSProxyVersion5 __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStreamPropertyKey const NSStreamDataWrittenToMemoryStreamKey __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStreamPropertyKey const NSStreamFileCurrentOffsetKey __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSErrorDomain const NSStreamSocketSSLErrorDomain __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSErrorDomain const NSStreamSOCKSErrorDomain __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStreamPropertyKey const NSStreamNetworkServiceType __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef NSString * NSStreamNetworkServiceTypeValue __attribute__((swift_wrapper(enum)));
extern "C" NSStreamNetworkServiceTypeValue const NSStreamNetworkServiceTypeVoIP __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStreamNetworkServiceTypeValue const NSStreamNetworkServiceTypeVideo __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStreamNetworkServiceTypeValue const NSStreamNetworkServiceTypeBackground __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStreamNetworkServiceTypeValue const NSStreamNetworkServiceTypeVoice __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSStreamNetworkServiceTypeValue const NSStreamNetworkServiceTypeCallSignaling __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
#pragma clang assume_nonnull end
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSMutableDictionary
#define _REWRITER_typedef_NSMutableDictionary
typedef struct objc_object NSMutableDictionary;
typedef struct {} _objc_exc_NSMutableDictionary;
#endif
#ifndef _REWRITER_typedef_NSDate
#define _REWRITER_typedef_NSDate
typedef struct objc_object NSDate;
typedef struct {} _objc_exc_NSDate;
#endif
#ifndef _REWRITER_typedef_NSNumber
#define _REWRITER_typedef_NSNumber
typedef struct objc_object NSNumber;
typedef struct {} _objc_exc_NSNumber;
#endif
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#pragma clang assume_nonnull begin
#ifndef _REWRITER_typedef_NSThread
#define _REWRITER_typedef_NSThread
typedef struct objc_object NSThread;
typedef struct {} _objc_exc_NSThread;
#endif
struct NSThread_IMPL {
struct NSObject_IMPL NSObject_IVARS;
id _private;
uint8_t _bytes[44];
};
@property (class, readonly, strong) NSThread *currentThread;
// + (void)detachNewThreadWithBlock:(void (^)(void))block __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// + (void)detachNewThreadSelector:(SEL)selector toTarget:(id)target withObject:(nullable id)argument;
// + (BOOL)isMultiThreaded;
// @property (readonly, retain) NSMutableDictionary *threadDictionary;
// + (void)sleepUntilDate:(NSDate *)date;
// + (void)sleepForTimeInterval:(NSTimeInterval)ti;
// + (void)exit;
// + (double)threadPriority;
// + (BOOL)setThreadPriority:(double)p;
// @property double threadPriority __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property NSQualityOfService qualityOfService __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
@property (class, readonly, copy) NSArray<NSNumber *> *callStackReturnAddresses __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
@property (class, readonly, copy) NSArray<NSString *> *callStackSymbols __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, copy) NSString *name __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property NSUInteger stackSize __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly) BOOL isMainThread __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
@property (class, readonly) BOOL isMainThread __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
@property (class, readonly, strong) NSThread *mainThread __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (instancetype)init __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((objc_designated_initializer));
// - (instancetype)initWithTarget:(id)target selector:(SEL)selector object:(nullable id)argument __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (instancetype)initWithBlock:(void (^)(void))block __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// @property (readonly, getter=isExecuting) BOOL executing __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, getter=isFinished) BOOL finished __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, getter=isCancelled) BOOL cancelled __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)cancel __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)start __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)main __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
extern "C" NSNotificationName const NSWillBecomeMultiThreadedNotification;
extern "C" NSNotificationName const NSDidBecomeSingleThreadedNotification;
extern "C" NSNotificationName const NSThreadWillExitNotification;
// @interface NSObject (NSThreadPerformAdditions)
// - (void)performSelectorOnMainThread:(SEL)aSelector withObject:(nullable id)arg waitUntilDone:(BOOL)wait modes:(nullable NSArray<NSString *> *)array;
// - (void)performSelectorOnMainThread:(SEL)aSelector withObject:(nullable id)arg waitUntilDone:(BOOL)wait;
// - (void)performSelector:(SEL)aSelector onThread:(NSThread *)thr withObject:(nullable id)arg waitUntilDone:(BOOL)wait modes:(nullable NSArray<NSString *> *)array __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)performSelector:(SEL)aSelector onThread:(NSThread *)thr withObject:(nullable id)arg waitUntilDone:(BOOL)wait __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)performSelectorInBackground:(SEL)aSelector withObject:(nullable id)arg __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
#pragma clang assume_nonnull end
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
#ifndef _REWRITER_typedef_NSDate
#define _REWRITER_typedef_NSDate
typedef struct objc_object NSDate;
typedef struct {} _objc_exc_NSDate;
#endif
#ifndef _REWRITER_typedef_NSData
#define _REWRITER_typedef_NSData
typedef struct objc_object NSData;
typedef struct {} _objc_exc_NSData;
#endif
#ifndef _REWRITER_typedef_NSLocale
#define _REWRITER_typedef_NSLocale
typedef struct objc_object NSLocale;
typedef struct {} _objc_exc_NSLocale;
#endif
#pragma clang assume_nonnull begin
#ifndef _REWRITER_typedef_NSTimeZone
#define _REWRITER_typedef_NSTimeZone
typedef struct objc_object NSTimeZone;
typedef struct {} _objc_exc_NSTimeZone;
#endif
struct NSTimeZone_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// @property (readonly, copy) NSString *name;
// @property (readonly, copy) NSData *data;
// - (NSInteger)secondsFromGMTForDate:(NSDate *)aDate;
// - (nullable NSString *)abbreviationForDate:(NSDate *)aDate;
// - (BOOL)isDaylightSavingTimeForDate:(NSDate *)aDate;
// - (NSTimeInterval)daylightSavingTimeOffsetForDate:(NSDate *)aDate __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSDate *)nextDaylightSavingTimeTransitionAfterDate:(NSDate *)aDate __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSTimeZone (NSExtendedTimeZone)
@property (class, readonly, copy) NSTimeZone *systemTimeZone;
// + (void)resetSystemTimeZone;
@property (class, copy) NSTimeZone *defaultTimeZone;
@property (class, readonly, copy) NSTimeZone *localTimeZone;
@property (class, readonly, copy) NSArray<NSString *> *knownTimeZoneNames;
@property (class, copy) NSDictionary<NSString *, NSString *> *abbreviationDictionary __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSDictionary<NSString *, NSString *> *)abbreviationDictionary;
@property (class, readonly, copy) NSString *timeZoneDataVersion __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly) NSInteger secondsFromGMT;
// @property (nullable, readonly, copy) NSString *abbreviation;
// @property (readonly, getter=isDaylightSavingTime) BOOL daylightSavingTime;
// @property (readonly) NSTimeInterval daylightSavingTimeOffset __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) NSDate *nextDaylightSavingTimeTransition __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSString *description;
// - (BOOL)isEqualToTimeZone:(NSTimeZone *)aTimeZone;
typedef NSInteger NSTimeZoneNameStyle; enum {
NSTimeZoneNameStyleStandard,
NSTimeZoneNameStyleShortStandard,
NSTimeZoneNameStyleDaylightSaving,
NSTimeZoneNameStyleShortDaylightSaving,
NSTimeZoneNameStyleGeneric,
NSTimeZoneNameStyleShortGeneric
};
// - (nullable NSString *)localizedName:(NSTimeZoneNameStyle)style locale:(nullable NSLocale *)locale __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSTimeZone (NSTimeZoneCreation)
// + (nullable instancetype)timeZoneWithName:(NSString *)tzName;
// + (nullable instancetype)timeZoneWithName:(NSString *)tzName data:(nullable NSData *)aData;
// - (nullable instancetype)initWithName:(NSString *)tzName;
// - (nullable instancetype)initWithName:(NSString *)tzName data:(nullable NSData *)aData;
// + (instancetype)timeZoneForSecondsFromGMT:(NSInteger)seconds;
// + (nullable instancetype)timeZoneWithAbbreviation:(NSString *)abbreviation;
/* @end */
extern "C" NSNotificationName const NSSystemTimeZoneDidChangeNotification __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
#ifndef _REWRITER_typedef_NSTimer
#define _REWRITER_typedef_NSTimer
typedef struct objc_object NSTimer;
typedef struct {} _objc_exc_NSTimer;
#endif
struct NSTimer_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// + (NSTimer *)timerWithTimeInterval:(NSTimeInterval)ti invocation:(NSInvocation *)invocation repeats:(BOOL)yesOrNo;
// + (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)ti invocation:(NSInvocation *)invocation repeats:(BOOL)yesOrNo;
// + (NSTimer *)timerWithTimeInterval:(NSTimeInterval)ti target:(id)aTarget selector:(SEL)aSelector userInfo:(nullable id)userInfo repeats:(BOOL)yesOrNo;
// + (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)ti target:(id)aTarget selector:(SEL)aSelector userInfo:(nullable id)userInfo repeats:(BOOL)yesOrNo;
// + (NSTimer *)timerWithTimeInterval:(NSTimeInterval)interval repeats:(BOOL)repeats block:(void (^)(NSTimer *timer))block __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// + (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)interval repeats:(BOOL)repeats block:(void (^)(NSTimer *timer))block __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// - (instancetype)initWithFireDate:(NSDate *)date interval:(NSTimeInterval)interval repeats:(BOOL)repeats block:(void (^)(NSTimer *timer))block __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// - (instancetype)initWithFireDate:(NSDate *)date interval:(NSTimeInterval)ti target:(id)t selector:(SEL)s userInfo:(nullable id)ui repeats:(BOOL)rep __attribute__((objc_designated_initializer));
// - (void)fire;
// @property (copy) NSDate *fireDate;
// @property (readonly) NSTimeInterval timeInterval;
// @property NSTimeInterval tolerance __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)invalidate;
// @property (readonly, getter=isValid) BOOL valid;
// @property (nullable, readonly, retain) id userInfo;
/* @end */
#pragma clang assume_nonnull end
// @class NSURLAuthenticationChallenge;
#ifndef _REWRITER_typedef_NSURLAuthenticationChallenge
#define _REWRITER_typedef_NSURLAuthenticationChallenge
typedef struct objc_object NSURLAuthenticationChallenge;
typedef struct {} _objc_exc_NSURLAuthenticationChallenge;
#endif
// @class NSURLCredential;
#ifndef _REWRITER_typedef_NSURLCredential
#define _REWRITER_typedef_NSURLCredential
typedef struct objc_object NSURLCredential;
typedef struct {} _objc_exc_NSURLCredential;
#endif
// @class NSURLProtectionSpace;
#ifndef _REWRITER_typedef_NSURLProtectionSpace
#define _REWRITER_typedef_NSURLProtectionSpace
typedef struct objc_object NSURLProtectionSpace;
typedef struct {} _objc_exc_NSURLProtectionSpace;
#endif
// @class NSURLResponse;
#ifndef _REWRITER_typedef_NSURLResponse
#define _REWRITER_typedef_NSURLResponse
typedef struct objc_object NSURLResponse;
typedef struct {} _objc_exc_NSURLResponse;
#endif
// @class NSError;
#ifndef _REWRITER_typedef_NSError
#define _REWRITER_typedef_NSError
typedef struct objc_object NSError;
typedef struct {} _objc_exc_NSError;
#endif
#pragma clang assume_nonnull begin
// @protocol NSURLAuthenticationChallengeSender <NSObject>
// - (void)useCredential:(NSURLCredential *)credential forAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge;
// - (void)continueWithoutCredentialForAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge;
// - (void)cancelAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge;
/* @optional */
// - (void)performDefaultHandlingForAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge;
// - (void)rejectProtectionSpaceAndContinueWithChallenge:(NSURLAuthenticationChallenge *)challenge;
/* @end */
// @class NSURLAuthenticationChallengeInternal;
#ifndef _REWRITER_typedef_NSURLAuthenticationChallengeInternal
#define _REWRITER_typedef_NSURLAuthenticationChallengeInternal
typedef struct objc_object NSURLAuthenticationChallengeInternal;
typedef struct {} _objc_exc_NSURLAuthenticationChallengeInternal;
#endif
#ifndef _REWRITER_typedef_NSURLAuthenticationChallenge
#define _REWRITER_typedef_NSURLAuthenticationChallenge
typedef struct objc_object NSURLAuthenticationChallenge;
typedef struct {} _objc_exc_NSURLAuthenticationChallenge;
#endif
struct NSURLAuthenticationChallenge_IMPL {
struct NSObject_IMPL NSObject_IVARS;
NSURLAuthenticationChallengeInternal *_internal;
};
// - (instancetype)initWithProtectionSpace:(NSURLProtectionSpace *)space proposedCredential:(nullable NSURLCredential *)credential previousFailureCount:(NSInteger)previousFailureCount failureResponse:(nullable NSURLResponse *)response error:(nullable NSError *)error sender:(id<NSURLAuthenticationChallengeSender>)sender;
// - (instancetype)initWithAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge sender:(id<NSURLAuthenticationChallengeSender>)sender;
// @property (readonly, copy) NSURLProtectionSpace *protectionSpace;
// @property (nullable, readonly, copy) NSURLCredential *proposedCredential;
// @property (readonly) NSInteger previousFailureCount;
// @property (nullable, readonly, copy) NSURLResponse *failureResponse;
// @property (nullable, readonly, copy) NSError *error;
// @property (nullable, readonly, retain) id<NSURLAuthenticationChallengeSender> sender;
/* @end */
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
typedef NSUInteger NSURLCacheStoragePolicy; enum
{
NSURLCacheStorageAllowed,
NSURLCacheStorageAllowedInMemoryOnly,
NSURLCacheStorageNotAllowed,
};
// @class NSCachedURLResponseInternal;
#ifndef _REWRITER_typedef_NSCachedURLResponseInternal
#define _REWRITER_typedef_NSCachedURLResponseInternal
typedef struct objc_object NSCachedURLResponseInternal;
typedef struct {} _objc_exc_NSCachedURLResponseInternal;
#endif
// @class NSData;
#ifndef _REWRITER_typedef_NSData
#define _REWRITER_typedef_NSData
typedef struct objc_object NSData;
typedef struct {} _objc_exc_NSData;
#endif
// @class NSDictionary;
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
// @class NSURLRequest;
#ifndef _REWRITER_typedef_NSURLRequest
#define _REWRITER_typedef_NSURLRequest
typedef struct objc_object NSURLRequest;
typedef struct {} _objc_exc_NSURLRequest;
#endif
// @class NSURLResponse;
#ifndef _REWRITER_typedef_NSURLResponse
#define _REWRITER_typedef_NSURLResponse
typedef struct objc_object NSURLResponse;
typedef struct {} _objc_exc_NSURLResponse;
#endif
// @class NSDate;
#ifndef _REWRITER_typedef_NSDate
#define _REWRITER_typedef_NSDate
typedef struct objc_object NSDate;
typedef struct {} _objc_exc_NSDate;
#endif
// @class NSURLSessionDataTask;
#ifndef _REWRITER_typedef_NSURLSessionDataTask
#define _REWRITER_typedef_NSURLSessionDataTask
typedef struct objc_object NSURLSessionDataTask;
typedef struct {} _objc_exc_NSURLSessionDataTask;
#endif
#ifndef _REWRITER_typedef_NSCachedURLResponse
#define _REWRITER_typedef_NSCachedURLResponse
typedef struct objc_object NSCachedURLResponse;
typedef struct {} _objc_exc_NSCachedURLResponse;
#endif
struct NSCachedURLResponse_IMPL {
struct NSObject_IMPL NSObject_IVARS;
NSCachedURLResponseInternal *_internal;
};
// - (instancetype)initWithResponse:(NSURLResponse *)response data:(NSData *)data;
// - (instancetype)initWithResponse:(NSURLResponse *)response data:(NSData *)data userInfo:(nullable NSDictionary *)userInfo storagePolicy:(NSURLCacheStoragePolicy)storagePolicy;
// @property (readonly, copy) NSURLResponse *response;
// @property (readonly, copy) NSData *data;
// @property (nullable, readonly, copy) NSDictionary *userInfo;
// @property (readonly) NSURLCacheStoragePolicy storagePolicy;
/* @end */
// @class NSURLRequest;
#ifndef _REWRITER_typedef_NSURLRequest
#define _REWRITER_typedef_NSURLRequest
typedef struct objc_object NSURLRequest;
typedef struct {} _objc_exc_NSURLRequest;
#endif
// @class NSURLCacheInternal;
#ifndef _REWRITER_typedef_NSURLCacheInternal
#define _REWRITER_typedef_NSURLCacheInternal
typedef struct objc_object NSURLCacheInternal;
typedef struct {} _objc_exc_NSURLCacheInternal;
#endif
#ifndef _REWRITER_typedef_NSURLCache
#define _REWRITER_typedef_NSURLCache
typedef struct objc_object NSURLCache;
typedef struct {} _objc_exc_NSURLCache;
#endif
struct NSURLCache_IMPL {
struct NSObject_IMPL NSObject_IVARS;
NSURLCacheInternal *_internal;
};
@property (class, strong) NSURLCache *sharedURLCache;
// - (instancetype)initWithMemoryCapacity:(NSUInteger)memoryCapacity diskCapacity:(NSUInteger)diskCapacity diskPath:(nullable NSString *)path __attribute__((availability(macos,introduced=10.2,deprecated=100000,replacement="initWithMemoryCapacity:diskCapacity:directoryURL:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="initWithMemoryCapacity:diskCapacity:directoryURL:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="initWithMemoryCapacity:diskCapacity:directoryURL:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="initWithMemoryCapacity:diskCapacity:directoryURL:"))) __attribute__((availability(macCatalyst,unavailable)));
// - (instancetype)initWithMemoryCapacity:(NSUInteger)memoryCapacity diskCapacity:(NSUInteger)diskCapacity directoryURL:(nullable NSURL *)directoryURL __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// - (nullable NSCachedURLResponse *)cachedResponseForRequest:(NSURLRequest *)request;
// - (void)storeCachedResponse:(NSCachedURLResponse *)cachedResponse forRequest:(NSURLRequest *)request;
// - (void)removeCachedResponseForRequest:(NSURLRequest *)request;
// - (void)removeAllCachedResponses;
// - (void)removeCachedResponsesSinceDate:(NSDate *)date __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property NSUInteger memoryCapacity;
// @property NSUInteger diskCapacity;
// @property (readonly) NSUInteger currentMemoryUsage;
// @property (readonly) NSUInteger currentDiskUsage;
/* @end */
// @interface NSURLCache (NSURLSessionTaskAdditions)
// - (void)storeCachedResponse:(NSCachedURLResponse *)cachedResponse forDataTask:(NSURLSessionDataTask *)dataTask __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)getCachedResponseForDataTask:(NSURLSessionDataTask *)dataTask completionHandler:(void (^) (NSCachedURLResponse * _Nullable cachedResponse))completionHandler __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)removeCachedResponseForDataTask:(NSURLSessionDataTask *)dataTask __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
#pragma clang assume_nonnull end
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
// @class NSURL;
#ifndef _REWRITER_typedef_NSURL
#define _REWRITER_typedef_NSURL
typedef struct objc_object NSURL;
typedef struct {} _objc_exc_NSURL;
#endif
// @class NSCachedURLResponse;
#ifndef _REWRITER_typedef_NSCachedURLResponse
#define _REWRITER_typedef_NSCachedURLResponse
typedef struct objc_object NSCachedURLResponse;
typedef struct {} _objc_exc_NSCachedURLResponse;
#endif
// @class NSData;
#ifndef _REWRITER_typedef_NSData
#define _REWRITER_typedef_NSData
typedef struct objc_object NSData;
typedef struct {} _objc_exc_NSData;
#endif
// @class NSError;
#ifndef _REWRITER_typedef_NSError
#define _REWRITER_typedef_NSError
typedef struct objc_object NSError;
typedef struct {} _objc_exc_NSError;
#endif
// @class NSURLAuthenticationChallenge;
#ifndef _REWRITER_typedef_NSURLAuthenticationChallenge
#define _REWRITER_typedef_NSURLAuthenticationChallenge
typedef struct objc_object NSURLAuthenticationChallenge;
typedef struct {} _objc_exc_NSURLAuthenticationChallenge;
#endif
// @class NSURLConnectionInternal;
#ifndef _REWRITER_typedef_NSURLConnectionInternal
#define _REWRITER_typedef_NSURLConnectionInternal
typedef struct objc_object NSURLConnectionInternal;
typedef struct {} _objc_exc_NSURLConnectionInternal;
#endif
// @class NSURLRequest;
#ifndef _REWRITER_typedef_NSURLRequest
#define _REWRITER_typedef_NSURLRequest
typedef struct objc_object NSURLRequest;
typedef struct {} _objc_exc_NSURLRequest;
#endif
// @class NSURLResponse;
#ifndef _REWRITER_typedef_NSURLResponse
#define _REWRITER_typedef_NSURLResponse
typedef struct objc_object NSURLResponse;
typedef struct {} _objc_exc_NSURLResponse;
#endif
// @class NSRunLoop;
#ifndef _REWRITER_typedef_NSRunLoop
#define _REWRITER_typedef_NSRunLoop
typedef struct objc_object NSRunLoop;
typedef struct {} _objc_exc_NSRunLoop;
#endif
// @class NSInputStream;
#ifndef _REWRITER_typedef_NSInputStream
#define _REWRITER_typedef_NSInputStream
typedef struct objc_object NSInputStream;
typedef struct {} _objc_exc_NSInputStream;
#endif
// @class NSURLProtectionSpace;
#ifndef _REWRITER_typedef_NSURLProtectionSpace
#define _REWRITER_typedef_NSURLProtectionSpace
typedef struct objc_object NSURLProtectionSpace;
typedef struct {} _objc_exc_NSURLProtectionSpace;
#endif
// @class NSOperationQueue;
#ifndef _REWRITER_typedef_NSOperationQueue
#define _REWRITER_typedef_NSOperationQueue
typedef struct objc_object NSOperationQueue;
typedef struct {} _objc_exc_NSOperationQueue;
#endif
// @protocol NSURLConnectionDelegate;
#pragma clang assume_nonnull begin
#ifndef _REWRITER_typedef_NSURLConnection
#define _REWRITER_typedef_NSURLConnection
typedef struct objc_object NSURLConnection;
typedef struct {} _objc_exc_NSURLConnection;
#endif
struct NSURLConnection_IMPL {
struct NSObject_IMPL NSObject_IVARS;
NSURLConnectionInternal *_internal;
};
// - (nullable instancetype)initWithRequest:(NSURLRequest *)request delegate:(nullable id)delegate startImmediately:(BOOL)startImmediately __attribute__((availability(macos,introduced=10.5,deprecated=10.11,message="Use NSURLSession (see NSURLSession.h)"))) __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="Use NSURLSession (see NSURLSession.h)"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use NSURLSession (see NSURLSession.h)"))) __attribute__((availability(watchos,unavailable)));
// - (nullable instancetype)initWithRequest:(NSURLRequest *)request delegate:(nullable id)delegate __attribute__((availability(macos,introduced=10.3,deprecated=10.11,message="Use NSURLSession (see NSURLSession.h)"))) __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="Use NSURLSession (see NSURLSession.h)"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use NSURLSession (see NSURLSession.h)"))) __attribute__((availability(watchos,unavailable)));
// + (nullable NSURLConnection*)connectionWithRequest:(NSURLRequest *)request delegate:(nullable id)delegate __attribute__((availability(macos,introduced=10.3,deprecated=10.11,message="Use NSURLSession (see NSURLSession.h)"))) __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="Use NSURLSession (see NSURLSession.h)"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use NSURLSession (see NSURLSession.h)"))) __attribute__((availability(watchos,unavailable)));
// @property (readonly, copy) NSURLRequest *originalRequest __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSURLRequest *currentRequest __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)start __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)cancel;
// - (void)scheduleInRunLoop:(NSRunLoop *)aRunLoop forMode:(NSRunLoopMode)mode __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)unscheduleFromRunLoop:(NSRunLoop *)aRunLoop forMode:(NSRunLoopMode)mode __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)setDelegateQueue:(nullable NSOperationQueue*) queue __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (BOOL)canHandleRequest:(NSURLRequest *)request;
/* @end */
// @protocol NSURLConnectionDelegate <NSObject>
/* @optional */
// - (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error;
// - (BOOL)connectionShouldUseCredentialStorage:(NSURLConnection *)connection;
// - (void)connection:(NSURLConnection *)connection willSendRequestForAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge;
// - (BOOL)connection:(NSURLConnection *)connection canAuthenticateAgainstProtectionSpace:(NSURLProtectionSpace *)protectionSpace __attribute__((availability(macos,introduced=10.6,deprecated=10.10,message="Use -connection:willSendRequestForAuthenticationChallenge: instead."))) __attribute__((availability(ios,introduced=3.0,deprecated=8.0,message="Use -connection:willSendRequestForAuthenticationChallenge: instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -connection:willSendRequestForAuthenticationChallenge: instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -connection:willSendRequestForAuthenticationChallenge: instead.")));
// - (void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge __attribute__((availability(macos,introduced=10.2,deprecated=10.10,message="Use -connection:willSendRequestForAuthenticationChallenge: instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use -connection:willSendRequestForAuthenticationChallenge: instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -connection:willSendRequestForAuthenticationChallenge: instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -connection:willSendRequestForAuthenticationChallenge: instead.")));
// - (void)connection:(NSURLConnection *)connection didCancelAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge __attribute__((availability(macos,introduced=10.2,deprecated=10.10,message="Use -connection:willSendRequestForAuthenticationChallenge: instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use -connection:willSendRequestForAuthenticationChallenge: instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -connection:willSendRequestForAuthenticationChallenge: instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -connection:willSendRequestForAuthenticationChallenge: instead.")));
/* @end */
// @protocol NSURLConnectionDataDelegate <NSURLConnectionDelegate>
/* @optional */
// - (nullable NSURLRequest *)connection:(NSURLConnection *)connection willSendRequest:(NSURLRequest *)request redirectResponse:(nullable NSURLResponse *)response;
// - (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response;
// - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data;
// - (nullable NSInputStream *)connection:(NSURLConnection *)connection needNewBodyStream:(NSURLRequest *)request;
#if 0
- (void)connection:(NSURLConnection *)connection didSendBodyData:(NSInteger)bytesWritten
totalBytesWritten:(NSInteger)totalBytesWritten
totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite;
#endif
// - (nullable NSCachedURLResponse *)connection:(NSURLConnection *)connection willCacheResponse:(NSCachedURLResponse *)cachedResponse;
// - (void)connectionDidFinishLoading:(NSURLConnection *)connection;
/* @end */
// @protocol NSURLConnectionDownloadDelegate <NSURLConnectionDelegate>
/* @optional */
// - (void)connection:(NSURLConnection *)connection didWriteData:(long long)bytesWritten totalBytesWritten:(long long)totalBytesWritten expectedTotalBytes:(long long) expectedTotalBytes;
// - (void)connectionDidResumeDownloading:(NSURLConnection *)connection totalBytesWritten:(long long)totalBytesWritten expectedTotalBytes:(long long) expectedTotalBytes;
/* @required */
// - (void)connectionDidFinishDownloading:(NSURLConnection *)connection destinationURL:(NSURL *) destinationURL;
/* @end */
// @interface NSURLConnection (NSURLConnectionSynchronousLoading)
// + (nullable NSData *)sendSynchronousRequest:(NSURLRequest *)request returningResponse:(NSURLResponse * _Nullable * _Nullable)response error:(NSError **)error __attribute__((availability(macos,introduced=10.3,deprecated=10.11,message="Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h"))) __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h"))) __attribute__((availability(watchos,unavailable)));
/* @end */
// @interface NSURLConnection (NSURLConnectionQueuedLoading)
#if 0
+ (void)sendAsynchronousRequest:(NSURLRequest*) request
queue:(NSOperationQueue*) queue
completionHandler:(void (^)(NSURLResponse* _Nullable response, NSData* _Nullable data, NSError* _Nullable connectionError)) handler __attribute__((availability(macos,introduced=10.7,deprecated=10.11,message="Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h"))) __attribute__((availability(ios,introduced=5.0,deprecated=9.0,message="Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h"))) __attribute__((availability(watchos,unavailable)));
#endif
/* @end */
#pragma clang assume_nonnull end
extern "C" {
#pragma clang assume_nonnull begin
typedef struct __attribute__((objc_bridge(id))) __SecCertificate *SecCertificateRef;
typedef struct __attribute__((objc_bridge(id))) __SecIdentity *SecIdentityRef;
typedef struct __attribute__((objc_bridge(id))) __SecKey *SecKeyRef;
typedef struct __attribute__((objc_bridge(id))) __SecPolicy *SecPolicyRef;
typedef struct __attribute__((objc_bridge(id))) __SecAccessControl *SecAccessControlRef;
typedef struct __attribute__((objc_bridge(id))) __SecKeychain *SecKeychainRef
__attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable)));
typedef struct __attribute__((objc_bridge(id))) __SecKeychainItem *SecKeychainItemRef __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable)));
typedef struct __attribute__((objc_bridge(id))) __SecKeychainSearch *SecKeychainSearchRef __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable)));
typedef OSType SecKeychainAttrType __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable)));
struct __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable))) SecKeychainAttribute
{
SecKeychainAttrType tag;
UInt32 length;
void * _Nullable data;
};
typedef struct SecKeychainAttribute SecKeychainAttribute __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable)));
typedef SecKeychainAttribute *SecKeychainAttributePtr __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable)));
struct __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable))) SecKeychainAttributeList
{
UInt32 count;
SecKeychainAttribute * _Nullable attr;
};
typedef struct SecKeychainAttributeList SecKeychainAttributeList __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable)));
typedef UInt32 SecKeychainStatus __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable)));
typedef struct __attribute__((objc_bridge(id))) __SecTrustedApplication *SecTrustedApplicationRef __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable)));
typedef struct __attribute__((objc_bridge(id))) __SecAccess *SecAccessRef __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable)));
typedef struct __attribute__((objc_bridge(id))) __SecACL *SecACLRef __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable)));
typedef struct __attribute__((objc_bridge(id))) __SecPassword *SecPasswordRef __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable)));
struct __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable))) SecKeychainAttributeInfo
{
UInt32 count;
UInt32 *tag;
UInt32 * _Nullable format;
};
typedef struct SecKeychainAttributeInfo SecKeychainAttributeInfo __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable)));
_Nullable
CFStringRef SecCopyErrorMessageString(OSStatus status, void * _Nullable reserved)
__attribute__((availability(ios,introduced=11.3)));
enum
{
errSecSuccess = 0,
errSecUnimplemented = -4,
errSecDiskFull = -34,
errSecDskFull __attribute__((deprecated("use errSecDiskFull"))) = errSecDiskFull,
errSecIO = -36,
errSecOpWr = -49,
errSecParam = -50,
errSecWrPerm = -61,
errSecAllocate = -108,
errSecUserCanceled = -128,
errSecBadReq = -909,
errSecInternalComponent = -2070,
errSecCoreFoundationUnknown = -4960,
errSecMissingEntitlement = -34018,
errSecNotAvailable = -25291,
errSecReadOnly = -25292,
errSecAuthFailed = -25293,
errSecNoSuchKeychain = -25294,
errSecInvalidKeychain = -25295,
errSecDuplicateKeychain = -25296,
errSecDuplicateCallback = -25297,
errSecInvalidCallback = -25298,
errSecDuplicateItem = -25299,
errSecItemNotFound = -25300,
errSecBufferTooSmall = -25301,
errSecDataTooLarge = -25302,
errSecNoSuchAttr = -25303,
errSecInvalidItemRef = -25304,
errSecInvalidSearchRef = -25305,
errSecNoSuchClass = -25306,
errSecNoDefaultKeychain = -25307,
errSecInteractionNotAllowed = -25308,
errSecReadOnlyAttr = -25309,
errSecWrongSecVersion = -25310,
errSecKeySizeNotAllowed = -25311,
errSecNoStorageModule = -25312,
errSecNoCertificateModule = -25313,
errSecNoPolicyModule = -25314,
errSecInteractionRequired = -25315,
errSecDataNotAvailable = -25316,
errSecDataNotModifiable = -25317,
errSecCreateChainFailed = -25318,
errSecInvalidPrefsDomain = -25319,
errSecInDarkWake = -25320,
errSecACLNotSimple = -25240,
errSecPolicyNotFound = -25241,
errSecInvalidTrustSetting = -25242,
errSecNoAccessForItem = -25243,
errSecInvalidOwnerEdit = -25244,
errSecTrustNotAvailable = -25245,
errSecUnsupportedFormat = -25256,
errSecUnknownFormat = -25257,
errSecKeyIsSensitive = -25258,
errSecMultiplePrivKeys = -25259,
errSecPassphraseRequired = -25260,
errSecInvalidPasswordRef = -25261,
errSecInvalidTrustSettings = -25262,
errSecNoTrustSettings = -25263,
errSecPkcs12VerifyFailure = -25264,
errSecNotSigner = -26267,
errSecDecode = -26275,
errSecServiceNotAvailable = -67585,
errSecInsufficientClientID = -67586,
errSecDeviceReset = -67587,
errSecDeviceFailed = -67588,
errSecAppleAddAppACLSubject = -67589,
errSecApplePublicKeyIncomplete = -67590,
errSecAppleSignatureMismatch = -67591,
errSecAppleInvalidKeyStartDate = -67592,
errSecAppleInvalidKeyEndDate = -67593,
errSecConversionError = -67594,
errSecAppleSSLv2Rollback = -67595,
errSecQuotaExceeded = -67596,
errSecFileTooBig = -67597,
errSecInvalidDatabaseBlob = -67598,
errSecInvalidKeyBlob = -67599,
errSecIncompatibleDatabaseBlob = -67600,
errSecIncompatibleKeyBlob = -67601,
errSecHostNameMismatch = -67602,
errSecUnknownCriticalExtensionFlag = -67603,
errSecNoBasicConstraints = -67604,
errSecNoBasicConstraintsCA = -67605,
errSecInvalidAuthorityKeyID = -67606,
errSecInvalidSubjectKeyID = -67607,
errSecInvalidKeyUsageForPolicy = -67608,
errSecInvalidExtendedKeyUsage = -67609,
errSecInvalidIDLinkage = -67610,
errSecPathLengthConstraintExceeded = -67611,
errSecInvalidRoot = -67612,
errSecCRLExpired = -67613,
errSecCRLNotValidYet = -67614,
errSecCRLNotFound = -67615,
errSecCRLServerDown = -67616,
errSecCRLBadURI = -67617,
errSecUnknownCertExtension = -67618,
errSecUnknownCRLExtension = -67619,
errSecCRLNotTrusted = -67620,
errSecCRLPolicyFailed = -67621,
errSecIDPFailure = -67622,
errSecSMIMEEmailAddressesNotFound = -67623,
errSecSMIMEBadExtendedKeyUsage = -67624,
errSecSMIMEBadKeyUsage = -67625,
errSecSMIMEKeyUsageNotCritical = -67626,
errSecSMIMENoEmailAddress = -67627,
errSecSMIMESubjAltNameNotCritical = -67628,
errSecSSLBadExtendedKeyUsage = -67629,
errSecOCSPBadResponse = -67630,
errSecOCSPBadRequest = -67631,
errSecOCSPUnavailable = -67632,
errSecOCSPStatusUnrecognized = -67633,
errSecEndOfData = -67634,
errSecIncompleteCertRevocationCheck = -67635,
errSecNetworkFailure = -67636,
errSecOCSPNotTrustedToAnchor = -67637,
errSecRecordModified = -67638,
errSecOCSPSignatureError = -67639,
errSecOCSPNoSigner = -67640,
errSecOCSPResponderMalformedReq = -67641,
errSecOCSPResponderInternalError = -67642,
errSecOCSPResponderTryLater = -67643,
errSecOCSPResponderSignatureRequired = -67644,
errSecOCSPResponderUnauthorized = -67645,
errSecOCSPResponseNonceMismatch = -67646,
errSecCodeSigningBadCertChainLength = -67647,
errSecCodeSigningNoBasicConstraints = -67648,
errSecCodeSigningBadPathLengthConstraint = -67649,
errSecCodeSigningNoExtendedKeyUsage = -67650,
errSecCodeSigningDevelopment = -67651,
errSecResourceSignBadCertChainLength = -67652,
errSecResourceSignBadExtKeyUsage = -67653,
errSecTrustSettingDeny = -67654,
errSecInvalidSubjectName = -67655,
errSecUnknownQualifiedCertStatement = -67656,
errSecMobileMeRequestQueued = -67657,
errSecMobileMeRequestRedirected = -67658,
errSecMobileMeServerError = -67659,
errSecMobileMeServerNotAvailable = -67660,
errSecMobileMeServerAlreadyExists = -67661,
errSecMobileMeServerServiceErr = -67662,
errSecMobileMeRequestAlreadyPending = -67663,
errSecMobileMeNoRequestPending = -67664,
errSecMobileMeCSRVerifyFailure = -67665,
errSecMobileMeFailedConsistencyCheck = -67666,
errSecNotInitialized = -67667,
errSecInvalidHandleUsage = -67668,
errSecPVCReferentNotFound = -67669,
errSecFunctionIntegrityFail = -67670,
errSecInternalError = -67671,
errSecMemoryError = -67672,
errSecInvalidData = -67673,
errSecMDSError = -67674,
errSecInvalidPointer = -67675,
errSecSelfCheckFailed = -67676,
errSecFunctionFailed = -67677,
errSecModuleManifestVerifyFailed = -67678,
errSecInvalidGUID = -67679,
errSecInvalidHandle = -67680,
errSecInvalidDBList = -67681,
errSecInvalidPassthroughID = -67682,
errSecInvalidNetworkAddress = -67683,
errSecCRLAlreadySigned = -67684,
errSecInvalidNumberOfFields = -67685,
errSecVerificationFailure = -67686,
errSecUnknownTag = -67687,
errSecInvalidSignature = -67688,
errSecInvalidName = -67689,
errSecInvalidCertificateRef = -67690,
errSecInvalidCertificateGroup = -67691,
errSecTagNotFound = -67692,
errSecInvalidQuery = -67693,
errSecInvalidValue = -67694,
errSecCallbackFailed = -67695,
errSecACLDeleteFailed = -67696,
errSecACLReplaceFailed = -67697,
errSecACLAddFailed = -67698,
errSecACLChangeFailed = -67699,
errSecInvalidAccessCredentials = -67700,
errSecInvalidRecord = -67701,
errSecInvalidACL = -67702,
errSecInvalidSampleValue = -67703,
errSecIncompatibleVersion = -67704,
errSecPrivilegeNotGranted = -67705,
errSecInvalidScope = -67706,
errSecPVCAlreadyConfigured = -67707,
errSecInvalidPVC = -67708,
errSecEMMLoadFailed = -67709,
errSecEMMUnloadFailed = -67710,
errSecAddinLoadFailed = -67711,
errSecInvalidKeyRef = -67712,
errSecInvalidKeyHierarchy = -67713,
errSecAddinUnloadFailed = -67714,
errSecLibraryReferenceNotFound = -67715,
errSecInvalidAddinFunctionTable = -67716,
errSecInvalidServiceMask = -67717,
errSecModuleNotLoaded = -67718,
errSecInvalidSubServiceID = -67719,
errSecAttributeNotInContext = -67720,
errSecModuleManagerInitializeFailed = -67721,
errSecModuleManagerNotFound = -67722,
errSecEventNotificationCallbackNotFound = -67723,
errSecInputLengthError = -67724,
errSecOutputLengthError = -67725,
errSecPrivilegeNotSupported = -67726,
errSecDeviceError = -67727,
errSecAttachHandleBusy = -67728,
errSecNotLoggedIn = -67729,
errSecAlgorithmMismatch = -67730,
errSecKeyUsageIncorrect = -67731,
errSecKeyBlobTypeIncorrect = -67732,
errSecKeyHeaderInconsistent = -67733,
errSecUnsupportedKeyFormat = -67734,
errSecUnsupportedKeySize = -67735,
errSecInvalidKeyUsageMask = -67736,
errSecUnsupportedKeyUsageMask = -67737,
errSecInvalidKeyAttributeMask = -67738,
errSecUnsupportedKeyAttributeMask = -67739,
errSecInvalidKeyLabel = -67740,
errSecUnsupportedKeyLabel = -67741,
errSecInvalidKeyFormat = -67742,
errSecUnsupportedVectorOfBuffers = -67743,
errSecInvalidInputVector = -67744,
errSecInvalidOutputVector = -67745,
errSecInvalidContext = -67746,
errSecInvalidAlgorithm = -67747,
errSecInvalidAttributeKey = -67748,
errSecMissingAttributeKey = -67749,
errSecInvalidAttributeInitVector = -67750,
errSecMissingAttributeInitVector = -67751,
errSecInvalidAttributeSalt = -67752,
errSecMissingAttributeSalt = -67753,
errSecInvalidAttributePadding = -67754,
errSecMissingAttributePadding = -67755,
errSecInvalidAttributeRandom = -67756,
errSecMissingAttributeRandom = -67757,
errSecInvalidAttributeSeed = -67758,
errSecMissingAttributeSeed = -67759,
errSecInvalidAttributePassphrase = -67760,
errSecMissingAttributePassphrase = -67761,
errSecInvalidAttributeKeyLength = -67762,
errSecMissingAttributeKeyLength = -67763,
errSecInvalidAttributeBlockSize = -67764,
errSecMissingAttributeBlockSize = -67765,
errSecInvalidAttributeOutputSize = -67766,
errSecMissingAttributeOutputSize = -67767,
errSecInvalidAttributeRounds = -67768,
errSecMissingAttributeRounds = -67769,
errSecInvalidAlgorithmParms = -67770,
errSecMissingAlgorithmParms = -67771,
errSecInvalidAttributeLabel = -67772,
errSecMissingAttributeLabel = -67773,
errSecInvalidAttributeKeyType = -67774,
errSecMissingAttributeKeyType = -67775,
errSecInvalidAttributeMode = -67776,
errSecMissingAttributeMode = -67777,
errSecInvalidAttributeEffectiveBits = -67778,
errSecMissingAttributeEffectiveBits = -67779,
errSecInvalidAttributeStartDate = -67780,
errSecMissingAttributeStartDate = -67781,
errSecInvalidAttributeEndDate = -67782,
errSecMissingAttributeEndDate = -67783,
errSecInvalidAttributeVersion = -67784,
errSecMissingAttributeVersion = -67785,
errSecInvalidAttributePrime = -67786,
errSecMissingAttributePrime = -67787,
errSecInvalidAttributeBase = -67788,
errSecMissingAttributeBase = -67789,
errSecInvalidAttributeSubprime = -67790,
errSecMissingAttributeSubprime = -67791,
errSecInvalidAttributeIterationCount = -67792,
errSecMissingAttributeIterationCount = -67793,
errSecInvalidAttributeDLDBHandle = -67794,
errSecMissingAttributeDLDBHandle = -67795,
errSecInvalidAttributeAccessCredentials = -67796,
errSecMissingAttributeAccessCredentials = -67797,
errSecInvalidAttributePublicKeyFormat = -67798,
errSecMissingAttributePublicKeyFormat = -67799,
errSecInvalidAttributePrivateKeyFormat = -67800,
errSecMissingAttributePrivateKeyFormat = -67801,
errSecInvalidAttributeSymmetricKeyFormat = -67802,
errSecMissingAttributeSymmetricKeyFormat = -67803,
errSecInvalidAttributeWrappedKeyFormat = -67804,
errSecMissingAttributeWrappedKeyFormat = -67805,
errSecStagedOperationInProgress = -67806,
errSecStagedOperationNotStarted = -67807,
errSecVerifyFailed = -67808,
errSecQuerySizeUnknown = -67809,
errSecBlockSizeMismatch = -67810,
errSecPublicKeyInconsistent = -67811,
errSecDeviceVerifyFailed = -67812,
errSecInvalidLoginName = -67813,
errSecAlreadyLoggedIn = -67814,
errSecInvalidDigestAlgorithm = -67815,
errSecInvalidCRLGroup = -67816,
errSecCertificateCannotOperate = -67817,
errSecCertificateExpired = -67818,
errSecCertificateNotValidYet = -67819,
errSecCertificateRevoked = -67820,
errSecCertificateSuspended = -67821,
errSecInsufficientCredentials = -67822,
errSecInvalidAction = -67823,
errSecInvalidAuthority = -67824,
errSecVerifyActionFailed = -67825,
errSecInvalidCertAuthority = -67826,
errSecInvaldCRLAuthority = -67827,
errSecInvalidCRLEncoding = -67828,
errSecInvalidCRLType = -67829,
errSecInvalidCRL = -67830,
errSecInvalidFormType = -67831,
errSecInvalidID = -67832,
errSecInvalidIdentifier = -67833,
errSecInvalidIndex = -67834,
errSecInvalidPolicyIdentifiers = -67835,
errSecInvalidTimeString = -67836,
errSecInvalidReason = -67837,
errSecInvalidRequestInputs = -67838,
errSecInvalidResponseVector = -67839,
errSecInvalidStopOnPolicy = -67840,
errSecInvalidTuple = -67841,
errSecMultipleValuesUnsupported = -67842,
errSecNotTrusted = -67843,
errSecNoDefaultAuthority = -67844,
errSecRejectedForm = -67845,
errSecRequestLost = -67846,
errSecRequestRejected = -67847,
errSecUnsupportedAddressType = -67848,
errSecUnsupportedService = -67849,
errSecInvalidTupleGroup = -67850,
errSecInvalidBaseACLs = -67851,
errSecInvalidTupleCredendtials = -67852,
errSecInvalidEncoding = -67853,
errSecInvalidValidityPeriod = -67854,
errSecInvalidRequestor = -67855,
errSecRequestDescriptor = -67856,
errSecInvalidBundleInfo = -67857,
errSecInvalidCRLIndex = -67858,
errSecNoFieldValues = -67859,
errSecUnsupportedFieldFormat = -67860,
errSecUnsupportedIndexInfo = -67861,
errSecUnsupportedLocality = -67862,
errSecUnsupportedNumAttributes = -67863,
errSecUnsupportedNumIndexes = -67864,
errSecUnsupportedNumRecordTypes = -67865,
errSecFieldSpecifiedMultiple = -67866,
errSecIncompatibleFieldFormat = -67867,
errSecInvalidParsingModule = -67868,
errSecDatabaseLocked = -67869,
errSecDatastoreIsOpen = -67870,
errSecMissingValue = -67871,
errSecUnsupportedQueryLimits = -67872,
errSecUnsupportedNumSelectionPreds = -67873,
errSecUnsupportedOperator = -67874,
errSecInvalidDBLocation = -67875,
errSecInvalidAccessRequest = -67876,
errSecInvalidIndexInfo = -67877,
errSecInvalidNewOwner = -67878,
errSecInvalidModifyMode = -67879,
errSecMissingRequiredExtension = -67880,
errSecExtendedKeyUsageNotCritical = -67881,
errSecTimestampMissing = -67882,
errSecTimestampInvalid = -67883,
errSecTimestampNotTrusted = -67884,
errSecTimestampServiceNotAvailable = -67885,
errSecTimestampBadAlg = -67886,
errSecTimestampBadRequest = -67887,
errSecTimestampBadDataFormat = -67888,
errSecTimestampTimeNotAvailable = -67889,
errSecTimestampUnacceptedPolicy = -67890,
errSecTimestampUnacceptedExtension = -67891,
errSecTimestampAddInfoNotAvailable = -67892,
errSecTimestampSystemFailure = -67893,
errSecSigningTimeMissing = -67894,
errSecTimestampRejection = -67895,
errSecTimestampWaiting = -67896,
errSecTimestampRevocationWarning = -67897,
errSecTimestampRevocationNotification = -67898,
errSecCertificatePolicyNotAllowed = -67899,
errSecCertificateNameNotAllowed = -67900,
errSecCertificateValidityPeriodTooLong = -67901,
};
enum {
errSSLProtocol = -9800,
errSSLNegotiation = -9801,
errSSLFatalAlert = -9802,
errSSLWouldBlock = -9803,
errSSLSessionNotFound = -9804,
errSSLClosedGraceful = -9805,
errSSLClosedAbort = -9806,
errSSLXCertChainInvalid = -9807,
errSSLBadCert = -9808,
errSSLCrypto = -9809,
errSSLInternal = -9810,
errSSLModuleAttach = -9811,
errSSLUnknownRootCert = -9812,
errSSLNoRootCert = -9813,
errSSLCertExpired = -9814,
errSSLCertNotYetValid = -9815,
errSSLClosedNoNotify = -9816,
errSSLBufferOverflow = -9817,
errSSLBadCipherSuite = -9818,
errSSLPeerUnexpectedMsg = -9819,
errSSLPeerBadRecordMac = -9820,
errSSLPeerDecryptionFail = -9821,
errSSLPeerRecordOverflow = -9822,
errSSLPeerDecompressFail = -9823,
errSSLPeerHandshakeFail = -9824,
errSSLPeerBadCert = -9825,
errSSLPeerUnsupportedCert = -9826,
errSSLPeerCertRevoked = -9827,
errSSLPeerCertExpired = -9828,
errSSLPeerCertUnknown = -9829,
errSSLIllegalParam = -9830,
errSSLPeerUnknownCA = -9831,
errSSLPeerAccessDenied = -9832,
errSSLPeerDecodeError = -9833,
errSSLPeerDecryptError = -9834,
errSSLPeerExportRestriction = -9835,
errSSLPeerProtocolVersion = -9836,
errSSLPeerInsufficientSecurity = -9837,
errSSLPeerInternalError = -9838,
errSSLPeerUserCancelled = -9839,
errSSLPeerNoRenegotiation = -9840,
errSSLPeerAuthCompleted = -9841,
errSSLClientCertRequested = -9842,
errSSLHostNameMismatch = -9843,
errSSLConnectionRefused = -9844,
errSSLDecryptionFail = -9845,
errSSLBadRecordMac = -9846,
errSSLRecordOverflow = -9847,
errSSLBadConfiguration = -9848,
errSSLUnexpectedRecord = -9849,
errSSLWeakPeerEphemeralDHKey = -9850,
errSSLClientHelloReceived = -9851,
errSSLTransportReset = -9852,
errSSLNetworkTimeout = -9853,
errSSLConfigurationFailed = -9854,
errSSLUnsupportedExtension = -9855,
errSSLUnexpectedMessage = -9856,
errSSLDecompressFail = -9857,
errSSLHandshakeFail = -9858,
errSSLDecodeError = -9859,
errSSLInappropriateFallback = -9860,
errSSLMissingExtension = -9861,
errSSLBadCertificateStatusResponse = -9862,
errSSLCertificateRequired = -9863,
errSSLUnknownPSKIdentity = -9864,
errSSLUnrecognizedName = -9865,
errSSLATSViolation = -9880,
errSSLATSMinimumVersionViolation = -9881,
errSSLATSCiphersuiteViolation = -9882,
errSSLATSMinimumKeySizeViolation = -9883,
errSSLATSLeafCertificateHashAlgorithmViolation = -9884,
errSSLATSCertificateHashAlgorithmViolation = -9885,
errSSLATSCertificateTrustViolation = -9886,
};
#pragma clang assume_nonnull end
}
extern "C" {
#pragma clang assume_nonnull begin
CFTypeID SecCertificateGetTypeID(void)
__attribute__((availability(ios,introduced=2.0)));
_Nullable
SecCertificateRef SecCertificateCreateWithData(CFAllocatorRef _Nullable allocator, CFDataRef data)
__attribute__((availability(ios,introduced=2.0)));
CFDataRef SecCertificateCopyData(SecCertificateRef certificate)
__attribute__((availability(ios,introduced=2.0)));
_Nullable
CFStringRef SecCertificateCopySubjectSummary(SecCertificateRef certificate)
__attribute__((availability(ios,introduced=2.0)));
OSStatus SecCertificateCopyCommonName(SecCertificateRef certificate, CFStringRef * _Nonnull __attribute__((cf_returns_retained)) commonName)
__attribute__((availability(ios,introduced=10.3)));
OSStatus SecCertificateCopyEmailAddresses(SecCertificateRef certificate, CFArrayRef * _Nonnull __attribute__((cf_returns_retained)) emailAddresses)
__attribute__((availability(ios,introduced=10.3)));
_Nullable
CFDataRef SecCertificateCopyNormalizedIssuerSequence(SecCertificateRef certificate)
__attribute__((availability(ios,introduced=10.3)));
_Nullable
CFDataRef SecCertificateCopyNormalizedSubjectSequence(SecCertificateRef certificate)
__attribute__((availability(ios,introduced=10.3)));
_Nullable __attribute__((cf_returns_retained))
SecKeyRef SecCertificateCopyKey(SecCertificateRef certificate)
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)));
_Nullable
SecKeyRef SecCertificateCopyPublicKey(SecCertificateRef certificate)
__attribute__((availability(ios,introduced=10.3,deprecated=12.0,replacement="SecCertificateCopyKey"))) __attribute__((availability(macos,unavailable))) __attribute__((availability(macCatalyst,unavailable)));
_Nullable
CFDataRef SecCertificateCopySerialNumberData(SecCertificateRef certificate, CFErrorRef *error)
__attribute__((availability(ios,introduced=11.0)));
_Nullable
CFDataRef SecCertificateCopySerialNumber(SecCertificateRef certificate)
__attribute__((availability(ios,introduced=10.3,deprecated=11.0,replacement="SecCertificateCopySerialNumberData"))) __attribute__((availability(macos,unavailable))) __attribute__((availability(macCatalyst,unavailable)));
#pragma clang assume_nonnull end
}
extern "C" {
#pragma clang assume_nonnull begin
CFTypeID SecIdentityGetTypeID(void)
__attribute__((availability(ios,introduced=2.0)));
OSStatus SecIdentityCopyCertificate(
SecIdentityRef identityRef,
SecCertificateRef * _Nonnull __attribute__((cf_returns_retained)) certificateRef)
__attribute__((availability(ios,introduced=2.0)));
OSStatus SecIdentityCopyPrivateKey(
SecIdentityRef identityRef,
SecKeyRef * _Nonnull __attribute__((cf_returns_retained)) privateKeyRef)
__attribute__((availability(ios,introduced=2.0)));
#pragma clang assume_nonnull end
}
extern "C" {
#pragma clang assume_nonnull begin
CFTypeID SecAccessControlGetTypeID(void)
__attribute__((availability(ios,introduced=8.0)));
typedef CFOptionFlags SecAccessControlCreateFlags; enum {
kSecAccessControlUserPresence = 1u << 0,
kSecAccessControlBiometryAny __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))) = 1u << 1,
kSecAccessControlTouchIDAny __attribute__((availability(macos,introduced=10.12.1,deprecated=10.13.4,replacement="kSecAccessControlBiometryAny"))) __attribute__((availability(ios,introduced=9.0,deprecated=11.3,replacement="kSecAccessControlBiometryAny"))) = 1u << 1,
kSecAccessControlBiometryCurrentSet __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))) = 1u << 3,
kSecAccessControlTouchIDCurrentSet __attribute__((availability(macos,introduced=10.12.1,deprecated=10.13.4,replacement="kSecAccessControlBiometryCurrentSet"))) __attribute__((availability(ios,introduced=9.0,deprecated=11.3,replacement="kSecAccessControlBiometryCurrentSet"))) = 1u << 3,
kSecAccessControlDevicePasscode __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) = 1u << 4,
kSecAccessControlWatch __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=NA))) __attribute__((availability(macCatalyst,introduced=13.0))) = 1u << 5,
kSecAccessControlOr __attribute__((availability(macos,introduced=10.12.1))) __attribute__((availability(ios,introduced=9.0))) = 1u << 14,
kSecAccessControlAnd __attribute__((availability(macos,introduced=10.12.1))) __attribute__((availability(ios,introduced=9.0))) = 1u << 15,
kSecAccessControlPrivateKeyUsage __attribute__((availability(macos,introduced=10.12.1))) __attribute__((availability(ios,introduced=9.0))) = 1u << 30,
kSecAccessControlApplicationPassword __attribute__((availability(macos,introduced=10.12.1))) __attribute__((availability(ios,introduced=9.0))) = 1u << 31,
} __attribute__((availability(ios,introduced=8.0)));
_Nullable
SecAccessControlRef SecAccessControlCreateWithFlags(CFAllocatorRef _Nullable allocator, CFTypeRef protection,
SecAccessControlCreateFlags flags, CFErrorRef *error)
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0)));
#pragma clang assume_nonnull end
}
extern "C" {
#pragma clang assume_nonnull begin
extern const CFStringRef kSecClass
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecClassInternetPassword
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecClassGenericPassword
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecClassCertificate
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecClassKey
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecClassIdentity
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrAccessible
__attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=4.0)));
extern const CFStringRef kSecAttrAccess
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kSecAttrAccessControl
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0)));
extern const CFStringRef kSecAttrAccessGroup
__attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=3.0)));
extern const CFStringRef kSecAttrSynchronizable
__attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0)));
extern const CFStringRef kSecAttrSynchronizableAny
__attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0)));
extern const CFStringRef kSecAttrCreationDate
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrModificationDate
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrDescription
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrComment
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrCreator
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrType
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrLabel
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrIsInvisible
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrIsNegative
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrAccount
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrService
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrGeneric
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrSecurityDomain
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrServer
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocol
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrAuthenticationType
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrPort
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrPath
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrSubject
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrIssuer
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrSerialNumber
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrSubjectKeyID
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrPublicKeyHash
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrCertificateType
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrCertificateEncoding
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrKeyClass
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrApplicationLabel
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrIsPermanent
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrIsSensitive
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrIsExtractable
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrApplicationTag
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrKeyType
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrPRF
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kSecAttrSalt
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kSecAttrRounds
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kSecAttrKeySizeInBits
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrEffectiveKeySize
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrCanEncrypt
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrCanDecrypt
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrCanDerive
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrCanSign
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrCanVerify
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrCanWrap
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrCanUnwrap
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrSyncViewHint
__attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0)));
extern const CFStringRef kSecAttrTokenID
__attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=9.0)));
extern const CFStringRef kSecAttrPersistantReference
__attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
extern const CFStringRef kSecAttrPersistentReference
__attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
extern const CFStringRef kSecAttrAccessibleWhenUnlocked
__attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=4.0)));
extern const CFStringRef kSecAttrAccessibleAfterFirstUnlock
__attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=4.0)));
extern const CFStringRef kSecAttrAccessibleAlways
__attribute__((availability(macos,introduced=10.9,deprecated=10.14,message="Use an accessibility level that provides some user protection, such as kSecAttrAccessibleAfterFirstUnlock"))) __attribute__((availability(ios,introduced=4.0,deprecated=12.0,message="Use an accessibility level that provides some user protection, such as kSecAttrAccessibleAfterFirstUnlock")));
extern const CFStringRef kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0)));
extern const CFStringRef kSecAttrAccessibleWhenUnlockedThisDeviceOnly
__attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=4.0)));
extern const CFStringRef kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly
__attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=4.0)));
extern const CFStringRef kSecAttrAccessibleAlwaysThisDeviceOnly
__attribute__((availability(macos,introduced=10.9,deprecated=10.14,message="Use an accessibility level that provides some user protection, such as kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly"))) __attribute__((availability(ios,introduced=4.0,deprecated=12.0,message="Use an accessibility level that provides some user protection, such as kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly")));
extern const CFStringRef kSecAttrProtocolFTP
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocolFTPAccount
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocolHTTP
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocolIRC
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocolNNTP
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocolPOP3
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocolSMTP
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocolSOCKS
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocolIMAP
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocolLDAP
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocolAppleTalk
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocolAFP
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocolTelnet
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocolSSH
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocolFTPS
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocolHTTPS
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocolHTTPProxy
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocolHTTPSProxy
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocolFTPProxy
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocolSMB
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocolRTSP
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocolRTSPProxy
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocolDAAP
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocolEPPC
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocolIPP
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocolNNTPS
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocolLDAPS
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocolTelnetS
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocolIMAPS
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocolIRCS
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrProtocolPOP3S
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrAuthenticationTypeNTLM
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrAuthenticationTypeMSN
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrAuthenticationTypeDPA
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrAuthenticationTypeRPA
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrAuthenticationTypeHTTPBasic
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrAuthenticationTypeHTTPDigest
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrAuthenticationTypeHTMLForm
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrAuthenticationTypeDefault
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrKeyClassPublic
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrKeyClassPrivate
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrKeyClassSymmetric
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrKeyTypeRSA
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecAttrKeyTypeDSA
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kSecAttrKeyTypeAES
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kSecAttrKeyTypeDES
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kSecAttrKeyType3DES
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kSecAttrKeyTypeRC4
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kSecAttrKeyTypeRC2
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kSecAttrKeyTypeCAST
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kSecAttrKeyTypeECDSA
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kSecAttrKeyTypeEC
__attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=4.0)));
extern const CFStringRef kSecAttrKeyTypeECSECPrimeRandom
__attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0)));
extern const CFStringRef kSecAttrPRFHmacAlgSHA1
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kSecAttrPRFHmacAlgSHA224
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kSecAttrPRFHmacAlgSHA256
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kSecAttrPRFHmacAlgSHA384
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kSecAttrPRFHmacAlgSHA512
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kSecMatchPolicy
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecMatchItemList
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecMatchSearchList
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecMatchIssuers
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecMatchEmailAddressIfPresent
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecMatchSubjectContains
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecMatchSubjectStartsWith
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kSecMatchSubjectEndsWith
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kSecMatchSubjectWholeString
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kSecMatchCaseInsensitive
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecMatchDiacriticInsensitive
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kSecMatchWidthInsensitive
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kSecMatchTrustedOnly
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecMatchValidOnDate
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecMatchLimit
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecMatchLimitOne
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecMatchLimitAll
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecReturnData
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecReturnAttributes
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecReturnRef
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecReturnPersistentRef
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecValueData
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecValueRef
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecValuePersistentRef
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecUseItemList
__attribute__((availability(macos,introduced=10.6)))
__attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="Not implemented on this platform"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="Not implemented on this platform"))) __attribute__((availability(watchos,introduced=1.0,deprecated=5.0,message="Not implemented on this platform")))
__attribute__((availability(macCatalyst,unavailable)));
extern const CFStringRef kSecUseKeychain
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kSecUseOperationPrompt
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0)));
extern const CFStringRef kSecUseNoAuthenticationUI
__attribute__((availability(macos,introduced=10.10,deprecated=10.11,message="Use kSecUseAuthenticationUI instead."))) __attribute__((availability(ios,introduced=8.0,deprecated=9.0,message="Use kSecUseAuthenticationUI instead.")));
extern const CFStringRef kSecUseAuthenticationUI
__attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0)));
extern const CFStringRef kSecUseAuthenticationContext
__attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0)));
extern const CFStringRef kSecUseDataProtectionKeychain
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0)));
extern const CFStringRef kSecUseAuthenticationUIAllow
__attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0)));
extern const CFStringRef kSecUseAuthenticationUIFail
__attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0)));
extern const CFStringRef kSecUseAuthenticationUISkip
__attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0)));
extern const CFStringRef kSecAttrTokenIDSecureEnclave
__attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=9.0)));
extern const CFStringRef kSecAttrAccessGroupToken
__attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0)));
OSStatus SecItemCopyMatching(CFDictionaryRef query, CFTypeRef * _Nullable __attribute__((cf_returns_retained)) result)
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
OSStatus SecItemAdd(CFDictionaryRef attributes, CFTypeRef * _Nullable __attribute__((cf_returns_retained)) result)
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
OSStatus SecItemUpdate(CFDictionaryRef query, CFDictionaryRef attributesToUpdate)
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
OSStatus SecItemDelete(CFDictionaryRef query)
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
#pragma clang assume_nonnull end
}
extern "C" {
#pragma clang assume_nonnull begin
typedef uint32_t SecPadding; enum
{
kSecPaddingNone = 0,
kSecPaddingPKCS1 = 1,
kSecPaddingOAEP = 2,
kSecPaddingSigRaw = 0x4000,
kSecPaddingPKCS1MD2 = 0x8000,
kSecPaddingPKCS1MD5 = 0x8001,
kSecPaddingPKCS1SHA1 = 0x8002,
kSecPaddingPKCS1SHA224 = 0x8003,
kSecPaddingPKCS1SHA256 = 0x8004,
kSecPaddingPKCS1SHA384 = 0x8005,
kSecPaddingPKCS1SHA512 = 0x8006,
};
extern const CFStringRef kSecPrivateKeyAttrs
__attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecPublicKeyAttrs
__attribute__((availability(ios,introduced=2.0)));
CFTypeID SecKeyGetTypeID(void)
__attribute__((availability(ios,introduced=2.0)));
OSStatus SecKeyGeneratePair(CFDictionaryRef parameters,
SecKeyRef * _Nullable __attribute__((cf_returns_retained)) publicKey, SecKeyRef * _Nullable __attribute__((cf_returns_retained)) privateKey)
__attribute__((availability(ios,introduced=2.0)));
OSStatus SecKeyRawSign(
SecKeyRef key,
SecPadding padding,
const uint8_t *dataToSign,
size_t dataToSignLen,
uint8_t *sig,
size_t *sigLen)
__attribute__((availability(ios,introduced=2.0)));
OSStatus SecKeyRawVerify(
SecKeyRef key,
SecPadding padding,
const uint8_t *signedData,
size_t signedDataLen,
const uint8_t *sig,
size_t sigLen)
__attribute__((availability(ios,introduced=2.0)));
OSStatus SecKeyEncrypt(
SecKeyRef key,
SecPadding padding,
const uint8_t *plainText,
size_t plainTextLen,
uint8_t *cipherText,
size_t *cipherTextLen)
__attribute__((availability(ios,introduced=2.0)));
OSStatus SecKeyDecrypt(
SecKeyRef key,
SecPadding padding,
const uint8_t *cipherText,
size_t cipherTextLen,
uint8_t *plainText,
size_t *plainTextLen)
__attribute__((availability(ios,introduced=2.0)));
SecKeyRef _Nullable SecKeyCreateRandomKey(CFDictionaryRef parameters, CFErrorRef *error)
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
SecKeyRef _Nullable SecKeyCreateWithData(CFDataRef keyData, CFDictionaryRef attributes, CFErrorRef *error)
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
size_t SecKeyGetBlockSize(SecKeyRef key)
__attribute__((availability(ios,introduced=2.0)));
CFDataRef _Nullable SecKeyCopyExternalRepresentation(SecKeyRef key, CFErrorRef *error)
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
CFDictionaryRef _Nullable SecKeyCopyAttributes(SecKeyRef key)
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
SecKeyRef _Nullable SecKeyCopyPublicKey(SecKeyRef key)
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
typedef CFStringRef SecKeyAlgorithm __attribute__((swift_wrapper(enum)))
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureRaw
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15Raw
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA1
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA224
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA256
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA384
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA512
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA1
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA224
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA256
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA384
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA512
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPSSSHA1
__attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPSSSHA224
__attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPSSSHA256
__attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPSSSHA384
__attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPSSSHA512
__attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePSSSHA1
__attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePSSSHA224
__attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePSSSHA256
__attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePSSSHA384
__attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePSSSHA512
__attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureRFC4754
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962SHA1
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962SHA224
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962SHA256
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962SHA384
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962SHA512
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageX962SHA1
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageX962SHA224
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageX962SHA256
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageX962SHA384
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageX962SHA512
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionRaw
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionPKCS1
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA1
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA224
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA256
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA384
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA512
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA1AESGCM
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA224AESGCM
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA256AESGCM
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA384AESGCM
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA512AESGCM
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionStandardX963SHA1AESGCM
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionStandardX963SHA224AESGCM
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionStandardX963SHA256AESGCM
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionStandardX963SHA384AESGCM
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionStandardX963SHA512AESGCM
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionCofactorX963SHA1AESGCM
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionCofactorX963SHA224AESGCM
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionCofactorX963SHA256AESGCM
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionCofactorX963SHA384AESGCM
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionCofactorX963SHA512AESGCM
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA224AESGCM
__attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA256AESGCM
__attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA384AESGCM
__attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA512AESGCM
__attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionCofactorVariableIVX963SHA224AESGCM
__attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionCofactorVariableIVX963SHA256AESGCM
__attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionCofactorVariableIVX963SHA384AESGCM
__attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionCofactorVariableIVX963SHA512AESGCM
__attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandard
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA1
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA224
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA256
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA384
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA512
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactor
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA1
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA224
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA256
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA384
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA512
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
CFDataRef _Nullable SecKeyCreateSignature(SecKeyRef key, SecKeyAlgorithm algorithm, CFDataRef dataToSign, CFErrorRef *error)
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
Boolean SecKeyVerifySignature(SecKeyRef key, SecKeyAlgorithm algorithm, CFDataRef signedData, CFDataRef signature, CFErrorRef *error)
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
CFDataRef _Nullable SecKeyCreateEncryptedData(SecKeyRef key, SecKeyAlgorithm algorithm, CFDataRef plaintext,
CFErrorRef *error)
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
CFDataRef _Nullable SecKeyCreateDecryptedData(SecKeyRef key, SecKeyAlgorithm algorithm, CFDataRef ciphertext,
CFErrorRef *error)
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
typedef CFStringRef SecKeyKeyExchangeParameter __attribute__((swift_wrapper(enum)))
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyKeyExchangeParameter kSecKeyKeyExchangeParameterRequestedSize
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern const SecKeyKeyExchangeParameter kSecKeyKeyExchangeParameterSharedInfo
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
CFDataRef _Nullable SecKeyCopyKeyExchangeResult(SecKeyRef privateKey, SecKeyAlgorithm algorithm, SecKeyRef publicKey, CFDictionaryRef parameters, CFErrorRef *error)
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
typedef CFIndex SecKeyOperationType; enum {
kSecKeyOperationTypeSign = 0,
kSecKeyOperationTypeVerify = 1,
kSecKeyOperationTypeEncrypt = 2,
kSecKeyOperationTypeDecrypt = 3,
kSecKeyOperationTypeKeyExchange = 4,
} __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
Boolean SecKeyIsAlgorithmSupported(SecKeyRef key, SecKeyOperationType operation, SecKeyAlgorithm algorithm)
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
#pragma clang assume_nonnull end
}
extern "C" {
#pragma clang assume_nonnull begin
extern const CFStringRef kSecPolicyAppleX509Basic
__attribute__((availability(ios,introduced=7.0)));
extern const CFStringRef kSecPolicyAppleSSL
__attribute__((availability(ios,introduced=7.0)));
extern const CFStringRef kSecPolicyAppleSMIME
__attribute__((availability(ios,introduced=7.0)));
extern const CFStringRef kSecPolicyAppleEAP
__attribute__((availability(ios,introduced=7.0)));
extern const CFStringRef kSecPolicyAppleIPsec
__attribute__((availability(ios,introduced=7.0)));
extern const CFStringRef kSecPolicyApplePKINITClient
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable)));
extern const CFStringRef kSecPolicyApplePKINITServer
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable)));
extern const CFStringRef kSecPolicyAppleCodeSigning
__attribute__((availability(ios,introduced=7.0)));
extern const CFStringRef kSecPolicyMacAppStoreReceipt
__attribute__((availability(ios,introduced=9.0)));
extern const CFStringRef kSecPolicyAppleIDValidation
__attribute__((availability(ios,introduced=7.0)));
extern const CFStringRef kSecPolicyAppleTimeStamping
__attribute__((availability(ios,introduced=7.0)));
extern const CFStringRef kSecPolicyAppleRevocation
__attribute__((availability(ios,introduced=7.0)));
extern const CFStringRef kSecPolicyApplePassbookSigning
__attribute__((availability(ios,introduced=7.0)));
extern const CFStringRef kSecPolicyApplePayIssuerEncryption
__attribute__((availability(ios,introduced=9.0)));
extern const CFStringRef kSecPolicyOid
__attribute__((availability(ios,introduced=7.0)));
extern const CFStringRef kSecPolicyName
__attribute__((availability(ios,introduced=7.0)));
extern const CFStringRef kSecPolicyClient
__attribute__((availability(ios,introduced=7.0)));
extern const CFStringRef kSecPolicyRevocationFlags
__attribute__((availability(ios,introduced=7.0)));
extern const CFStringRef kSecPolicyTeamIdentifier
__attribute__((availability(ios,introduced=7.0)));
CFTypeID SecPolicyGetTypeID(void)
__attribute__((availability(ios,introduced=2.0)));
_Nullable
CFDictionaryRef SecPolicyCopyProperties(SecPolicyRef policyRef)
__attribute__((availability(ios,introduced=7.0)));
SecPolicyRef SecPolicyCreateBasicX509(void)
__attribute__((availability(ios,introduced=2.0)));
SecPolicyRef SecPolicyCreateSSL(Boolean server, CFStringRef _Nullable hostname)
__attribute__((availability(ios,introduced=2.0)));
enum {
kSecRevocationOCSPMethod = (1 << 0),
kSecRevocationCRLMethod = (1 << 1),
kSecRevocationPreferCRL = (1 << 2),
kSecRevocationRequirePositiveResponse = (1 << 3),
kSecRevocationNetworkAccessDisabled = (1 << 4),
kSecRevocationUseAnyAvailableMethod = (kSecRevocationOCSPMethod |
kSecRevocationCRLMethod)
};
_Nullable
SecPolicyRef SecPolicyCreateRevocation(CFOptionFlags revocationFlags)
__attribute__((availability(ios,introduced=7.0)));
_Nullable
SecPolicyRef SecPolicyCreateWithProperties(CFTypeRef policyIdentifier,
CFDictionaryRef _Nullable properties)
__attribute__((availability(ios,introduced=7.0)));
#pragma clang assume_nonnull end
}
extern "C" {
#pragma clang assume_nonnull begin
typedef const struct __SecRandom * SecRandomRef;
extern const SecRandomRef kSecRandomDefault
__attribute__((availability(ios,introduced=2.0)));
int SecRandomCopyBytes(SecRandomRef _Nullable rnd, size_t count, void *bytes)
__attribute__ ((warn_unused_result))
__attribute__((availability(ios,introduced=2.0)));
#pragma clang assume_nonnull end
}
extern "C" {
#pragma clang assume_nonnull begin
extern const CFStringRef kSecImportExportPassphrase
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecImportExportKeychain
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kSecImportExportAccess
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kSecImportItemLabel
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecImportItemKeyID
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecImportItemTrust
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecImportItemCertChain
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
extern const CFStringRef kSecImportItemIdentity
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
OSStatus SecPKCS12Import(CFDataRef pkcs12_data, CFDictionaryRef options, CFArrayRef * _Nonnull __attribute__((cf_returns_retained)) items)
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0)));
#pragma clang assume_nonnull end
}
extern "C" {
#pragma clang assume_nonnull begin
typedef uint32_t SecTrustResultType; enum {
kSecTrustResultInvalid __attribute__((availability(ios,introduced=2_0))) = 0,
kSecTrustResultProceed __attribute__((availability(ios,introduced=2_0))) = 1,
kSecTrustResultConfirm __attribute__((availability(ios,introduced=2_0,deprecated=7_0,message="" ))) = 2,
kSecTrustResultDeny __attribute__((availability(ios,introduced=2_0))) = 3,
kSecTrustResultUnspecified __attribute__((availability(ios,introduced=2_0))) = 4,
kSecTrustResultRecoverableTrustFailure __attribute__((availability(ios,introduced=2_0))) = 5,
kSecTrustResultFatalTrustFailure __attribute__((availability(ios,introduced=2_0))) = 6,
kSecTrustResultOtherError __attribute__((availability(ios,introduced=2_0))) = 7
};
typedef struct __attribute__((objc_bridge(id))) __SecTrust *SecTrustRef;
extern const CFStringRef kSecPropertyTypeTitle
__attribute__((availability(ios,introduced=7.0)));
extern const CFStringRef kSecPropertyTypeError
__attribute__((availability(ios,introduced=7.0)));
extern const CFStringRef kSecTrustEvaluationDate
__attribute__((availability(ios,introduced=7.0)));
extern const CFStringRef kSecTrustExtendedValidation
__attribute__((availability(ios,introduced=7.0)));
extern const CFStringRef kSecTrustOrganizationName
__attribute__((availability(ios,introduced=7.0)));
extern const CFStringRef kSecTrustResultValue
__attribute__((availability(ios,introduced=7.0)));
extern const CFStringRef kSecTrustRevocationChecked
__attribute__((availability(ios,introduced=7.0)));
extern const CFStringRef kSecTrustRevocationValidUntilDate
__attribute__((availability(ios,introduced=7.0)));
extern const CFStringRef kSecTrustCertificateTransparency
__attribute__((availability(ios,introduced=9.0)));
extern const CFStringRef kSecTrustCertificateTransparencyWhiteList
__attribute__((availability(ios,introduced=10.0,deprecated=11.0)));
typedef void (*SecTrustCallback)(SecTrustRef trustRef, SecTrustResultType trustResult);
CFTypeID SecTrustGetTypeID(void)
__attribute__((availability(ios,introduced=2.0)));
OSStatus SecTrustCreateWithCertificates(CFTypeRef certificates,
CFTypeRef _Nullable policies, SecTrustRef * _Nonnull __attribute__((cf_returns_retained)) trust)
__attribute__((availability(ios,introduced=2.0)));
OSStatus SecTrustSetPolicies(SecTrustRef trust, CFTypeRef policies)
__attribute__((availability(ios,introduced=6.0)));
OSStatus SecTrustCopyPolicies(SecTrustRef trust, CFArrayRef * _Nonnull __attribute__((cf_returns_retained)) policies)
__attribute__((availability(ios,introduced=7.0)));
OSStatus SecTrustSetNetworkFetchAllowed(SecTrustRef trust,
Boolean allowFetch)
__attribute__((availability(ios,introduced=7.0)));
OSStatus SecTrustGetNetworkFetchAllowed(SecTrustRef trust,
Boolean *allowFetch)
__attribute__((availability(ios,introduced=7.0)));
OSStatus SecTrustSetAnchorCertificates(SecTrustRef trust,
CFArrayRef _Nullable anchorCertificates)
__attribute__((availability(ios,introduced=2.0)));
OSStatus SecTrustSetAnchorCertificatesOnly(SecTrustRef trust,
Boolean anchorCertificatesOnly)
__attribute__((availability(ios,introduced=2.0)));
OSStatus SecTrustCopyCustomAnchorCertificates(SecTrustRef trust,
CFArrayRef * _Nonnull __attribute__((cf_returns_retained)) anchors)
__attribute__((availability(ios,introduced=7.0)));
OSStatus SecTrustSetVerifyDate(SecTrustRef trust, CFDateRef verifyDate)
__attribute__((availability(ios,introduced=2.0)));
CFAbsoluteTime SecTrustGetVerifyTime(SecTrustRef trust)
__attribute__((availability(ios,introduced=2.0)));
OSStatus SecTrustEvaluate(SecTrustRef trust, SecTrustResultType *result)
__attribute__((availability(macos,introduced=10.3,deprecated=10.15,replacement="SecTrustEvaluateWithError"))) __attribute__((availability(ios,introduced=2.0,deprecated=13.0,replacement="SecTrustEvaluateWithError"))) __attribute__((availability(watchos,introduced=1.0,deprecated=6.0,replacement="SecTrustEvaluateWithError"))) __attribute__((availability(tvos,introduced=2.0,deprecated=13.0,replacement="SecTrustEvaluateWithError")));
OSStatus SecTrustEvaluateAsync(SecTrustRef trust,
dispatch_queue_t _Nullable queue, SecTrustCallback result)
__attribute__((availability(macos,introduced=10.7,deprecated=10.15,replacement="SecTrustEvaluateAsyncWithError"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,replacement="SecTrustEvaluateAsyncWithError"))) __attribute__((availability(watchos,introduced=1.0,deprecated=6.0,replacement="SecTrustEvaluateAsyncWithError"))) __attribute__((availability(tvos,introduced=7.0,deprecated=13.0,replacement="SecTrustEvaluateAsyncWithError")));
__attribute__((warn_unused_result)) bool
SecTrustEvaluateWithError(SecTrustRef trust, CFErrorRef _Nullable * _Nullable __attribute__((cf_returns_retained)) error)
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(tvos,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0)));
typedef void (*SecTrustWithErrorCallback)(SecTrustRef trustRef, bool result, CFErrorRef _Nullable error);
OSStatus SecTrustEvaluateAsyncWithError(SecTrustRef trust, dispatch_queue_t queue, SecTrustWithErrorCallback result)
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0)));
OSStatus SecTrustGetTrustResult(SecTrustRef trust,
SecTrustResultType *result)
__attribute__((availability(ios,introduced=7.0)));
_Nullable
SecKeyRef SecTrustCopyPublicKey(SecTrustRef trust)
__attribute__((availability(ios,introduced=2.0)));
CFIndex SecTrustGetCertificateCount(SecTrustRef trust)
__attribute__((availability(ios,introduced=2.0)));
_Nullable
SecCertificateRef SecTrustGetCertificateAtIndex(SecTrustRef trust, CFIndex ix)
__attribute__((availability(ios,introduced=2.0)));
CFDataRef SecTrustCopyExceptions(SecTrustRef trust)
__attribute__((availability(ios,introduced=4.0)));
bool SecTrustSetExceptions(SecTrustRef trust, CFDataRef _Nullable exceptions)
__attribute__((availability(ios,introduced=4.0)));
_Nullable
CFArrayRef SecTrustCopyProperties(SecTrustRef trust)
__attribute__((availability(ios,introduced=2.0)));
_Nullable
CFDictionaryRef SecTrustCopyResult(SecTrustRef trust)
__attribute__((availability(ios,introduced=7.0)));
OSStatus SecTrustSetOCSPResponse(SecTrustRef trust, CFTypeRef _Nullable responseData)
__attribute__((availability(ios,introduced=7.0)));
OSStatus SecTrustSetSignedCertificateTimestamps(SecTrustRef trust, CFArrayRef _Nullable sctArray)
__attribute__((availability(macos,introduced=10.14.2))) __attribute__((availability(ios,introduced=12.1.1))) __attribute__((availability(tvos,introduced=12.1.1))) __attribute__((availability(watchos,introduced=5.1.1)));
#pragma clang assume_nonnull end
}
extern "C" {
#pragma clang assume_nonnull begin
extern const CFStringRef kSecSharedPassword __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(macos,unavailable))) __attribute__((availability(macCatalyst,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable)));
void SecAddSharedWebCredential(CFStringRef fqdn, CFStringRef account, CFStringRef _Nullable password,
void (^completionHandler)(CFErrorRef _Nullable error)) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(macos,unavailable))) __attribute__((availability(macCatalyst,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable)));
void SecRequestSharedWebCredential(CFStringRef _Nullable fqdn, CFStringRef _Nullable account,
void (^completionHandler)(CFArrayRef _Nullable credentials, CFErrorRef _Nullable error)) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(macos,unavailable))) __attribute__((availability(macCatalyst,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable)));
_Nullable
CFStringRef SecCreateSharedWebCredentialPassword(void) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(macos,unavailable))) __attribute__((availability(macCatalyst,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable)));
#pragma clang assume_nonnull end
}
extern "C" {
__attribute__((visibility("default"))) void *sec_retain(void *obj);
__attribute__((visibility("default"))) void sec_release(void *obj);
}
// @protocol OS_sec_object <NSObject> /* @end */
typedef NSObject/*<OS_sec_object>*/ * __attribute__((objc_independent_class)) sec_object_t;
typedef uint16_t SSLCipherSuite;
enum
{ SSL_NULL_WITH_NULL_NULL = 0x0000,
SSL_RSA_WITH_NULL_MD5 = 0x0001,
SSL_RSA_WITH_NULL_SHA = 0x0002,
SSL_RSA_EXPORT_WITH_RC4_40_MD5 = 0x0003,
SSL_RSA_WITH_RC4_128_MD5 = 0x0004,
SSL_RSA_WITH_RC4_128_SHA = 0x0005,
SSL_RSA_EXPORT_WITH_RC2_CBC_40_MD5 = 0x0006,
SSL_RSA_WITH_IDEA_CBC_SHA = 0x0007,
SSL_RSA_EXPORT_WITH_DES40_CBC_SHA = 0x0008,
SSL_RSA_WITH_DES_CBC_SHA = 0x0009,
SSL_RSA_WITH_3DES_EDE_CBC_SHA = 0x000A,
SSL_DH_DSS_EXPORT_WITH_DES40_CBC_SHA = 0x000B,
SSL_DH_DSS_WITH_DES_CBC_SHA = 0x000C,
SSL_DH_DSS_WITH_3DES_EDE_CBC_SHA = 0x000D,
SSL_DH_RSA_EXPORT_WITH_DES40_CBC_SHA = 0x000E,
SSL_DH_RSA_WITH_DES_CBC_SHA = 0x000F,
SSL_DH_RSA_WITH_3DES_EDE_CBC_SHA = 0x0010,
SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA = 0x0011,
SSL_DHE_DSS_WITH_DES_CBC_SHA = 0x0012,
SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA = 0x0013,
SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA = 0x0014,
SSL_DHE_RSA_WITH_DES_CBC_SHA = 0x0015,
SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA = 0x0016,
SSL_DH_anon_EXPORT_WITH_RC4_40_MD5 = 0x0017,
SSL_DH_anon_WITH_RC4_128_MD5 = 0x0018,
SSL_DH_anon_EXPORT_WITH_DES40_CBC_SHA = 0x0019,
SSL_DH_anon_WITH_DES_CBC_SHA = 0x001A,
SSL_DH_anon_WITH_3DES_EDE_CBC_SHA = 0x001B,
SSL_FORTEZZA_DMS_WITH_NULL_SHA = 0x001C,
SSL_FORTEZZA_DMS_WITH_FORTEZZA_CBC_SHA = 0x001D,
TLS_RSA_WITH_AES_128_CBC_SHA = 0x002F,
TLS_DH_DSS_WITH_AES_128_CBC_SHA = 0x0030,
TLS_DH_RSA_WITH_AES_128_CBC_SHA = 0x0031,
TLS_DHE_DSS_WITH_AES_128_CBC_SHA = 0x0032,
TLS_DHE_RSA_WITH_AES_128_CBC_SHA = 0x0033,
TLS_DH_anon_WITH_AES_128_CBC_SHA = 0x0034,
TLS_RSA_WITH_AES_256_CBC_SHA = 0x0035,
TLS_DH_DSS_WITH_AES_256_CBC_SHA = 0x0036,
TLS_DH_RSA_WITH_AES_256_CBC_SHA = 0x0037,
TLS_DHE_DSS_WITH_AES_256_CBC_SHA = 0x0038,
TLS_DHE_RSA_WITH_AES_256_CBC_SHA = 0x0039,
TLS_DH_anon_WITH_AES_256_CBC_SHA = 0x003A,
TLS_ECDH_ECDSA_WITH_NULL_SHA = 0xC001,
TLS_ECDH_ECDSA_WITH_RC4_128_SHA = 0xC002,
TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA = 0xC003,
TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA = 0xC004,
TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA = 0xC005,
TLS_ECDHE_ECDSA_WITH_NULL_SHA = 0xC006,
TLS_ECDHE_ECDSA_WITH_RC4_128_SHA = 0xC007,
TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA = 0xC008,
TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA = 0xC009,
TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA = 0xC00A,
TLS_ECDH_RSA_WITH_NULL_SHA = 0xC00B,
TLS_ECDH_RSA_WITH_RC4_128_SHA = 0xC00C,
TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA = 0xC00D,
TLS_ECDH_RSA_WITH_AES_128_CBC_SHA = 0xC00E,
TLS_ECDH_RSA_WITH_AES_256_CBC_SHA = 0xC00F,
TLS_ECDHE_RSA_WITH_NULL_SHA = 0xC010,
TLS_ECDHE_RSA_WITH_RC4_128_SHA = 0xC011,
TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA = 0xC012,
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA = 0xC013,
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA = 0xC014,
TLS_ECDH_anon_WITH_NULL_SHA = 0xC015,
TLS_ECDH_anon_WITH_RC4_128_SHA = 0xC016,
TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA = 0xC017,
TLS_ECDH_anon_WITH_AES_128_CBC_SHA = 0xC018,
TLS_ECDH_anon_WITH_AES_256_CBC_SHA = 0xC019,
TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA = 0xC035,
TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA = 0xC036,
TLS_PSK_WITH_CHACHA20_POLY1305_SHA256 = 0xCCAB,
TLS_NULL_WITH_NULL_NULL = 0x0000,
TLS_RSA_WITH_NULL_MD5 = 0x0001,
TLS_RSA_WITH_NULL_SHA = 0x0002,
TLS_RSA_WITH_RC4_128_MD5 = 0x0004,
TLS_RSA_WITH_RC4_128_SHA = 0x0005,
TLS_RSA_WITH_3DES_EDE_CBC_SHA = 0x000A,
TLS_RSA_WITH_NULL_SHA256 = 0x003B,
TLS_RSA_WITH_AES_128_CBC_SHA256 = 0x003C,
TLS_RSA_WITH_AES_256_CBC_SHA256 = 0x003D,
TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA = 0x000D,
TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA = 0x0010,
TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA = 0x0013,
TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA = 0x0016,
TLS_DH_DSS_WITH_AES_128_CBC_SHA256 = 0x003E,
TLS_DH_RSA_WITH_AES_128_CBC_SHA256 = 0x003F,
TLS_DHE_DSS_WITH_AES_128_CBC_SHA256 = 0x0040,
TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 = 0x0067,
TLS_DH_DSS_WITH_AES_256_CBC_SHA256 = 0x0068,
TLS_DH_RSA_WITH_AES_256_CBC_SHA256 = 0x0069,
TLS_DHE_DSS_WITH_AES_256_CBC_SHA256 = 0x006A,
TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 = 0x006B,
TLS_DH_anon_WITH_RC4_128_MD5 = 0x0018,
TLS_DH_anon_WITH_3DES_EDE_CBC_SHA = 0x001B,
TLS_DH_anon_WITH_AES_128_CBC_SHA256 = 0x006C,
TLS_DH_anon_WITH_AES_256_CBC_SHA256 = 0x006D,
TLS_PSK_WITH_RC4_128_SHA = 0x008A,
TLS_PSK_WITH_3DES_EDE_CBC_SHA = 0x008B,
TLS_PSK_WITH_AES_128_CBC_SHA = 0x008C,
TLS_PSK_WITH_AES_256_CBC_SHA = 0x008D,
TLS_DHE_PSK_WITH_RC4_128_SHA = 0x008E,
TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA = 0x008F,
TLS_DHE_PSK_WITH_AES_128_CBC_SHA = 0x0090,
TLS_DHE_PSK_WITH_AES_256_CBC_SHA = 0x0091,
TLS_RSA_PSK_WITH_RC4_128_SHA = 0x0092,
TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA = 0x0093,
TLS_RSA_PSK_WITH_AES_128_CBC_SHA = 0x0094,
TLS_RSA_PSK_WITH_AES_256_CBC_SHA = 0x0095,
TLS_PSK_WITH_NULL_SHA = 0x002C,
TLS_DHE_PSK_WITH_NULL_SHA = 0x002D,
TLS_RSA_PSK_WITH_NULL_SHA = 0x002E,
TLS_RSA_WITH_AES_128_GCM_SHA256 = 0x009C,
TLS_RSA_WITH_AES_256_GCM_SHA384 = 0x009D,
TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 = 0x009E,
TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 = 0x009F,
TLS_DH_RSA_WITH_AES_128_GCM_SHA256 = 0x00A0,
TLS_DH_RSA_WITH_AES_256_GCM_SHA384 = 0x00A1,
TLS_DHE_DSS_WITH_AES_128_GCM_SHA256 = 0x00A2,
TLS_DHE_DSS_WITH_AES_256_GCM_SHA384 = 0x00A3,
TLS_DH_DSS_WITH_AES_128_GCM_SHA256 = 0x00A4,
TLS_DH_DSS_WITH_AES_256_GCM_SHA384 = 0x00A5,
TLS_DH_anon_WITH_AES_128_GCM_SHA256 = 0x00A6,
TLS_DH_anon_WITH_AES_256_GCM_SHA384 = 0x00A7,
TLS_PSK_WITH_AES_128_GCM_SHA256 = 0x00A8,
TLS_PSK_WITH_AES_256_GCM_SHA384 = 0x00A9,
TLS_DHE_PSK_WITH_AES_128_GCM_SHA256 = 0x00AA,
TLS_DHE_PSK_WITH_AES_256_GCM_SHA384 = 0x00AB,
TLS_RSA_PSK_WITH_AES_128_GCM_SHA256 = 0x00AC,
TLS_RSA_PSK_WITH_AES_256_GCM_SHA384 = 0x00AD,
TLS_PSK_WITH_AES_128_CBC_SHA256 = 0x00AE,
TLS_PSK_WITH_AES_256_CBC_SHA384 = 0x00AF,
TLS_PSK_WITH_NULL_SHA256 = 0x00B0,
TLS_PSK_WITH_NULL_SHA384 = 0x00B1,
TLS_DHE_PSK_WITH_AES_128_CBC_SHA256 = 0x00B2,
TLS_DHE_PSK_WITH_AES_256_CBC_SHA384 = 0x00B3,
TLS_DHE_PSK_WITH_NULL_SHA256 = 0x00B4,
TLS_DHE_PSK_WITH_NULL_SHA384 = 0x00B5,
TLS_RSA_PSK_WITH_AES_128_CBC_SHA256 = 0x00B6,
TLS_RSA_PSK_WITH_AES_256_CBC_SHA384 = 0x00B7,
TLS_RSA_PSK_WITH_NULL_SHA256 = 0x00B8,
TLS_RSA_PSK_WITH_NULL_SHA384 = 0x00B9,
TLS_AES_128_GCM_SHA256 = 0x1301,
TLS_AES_256_GCM_SHA384 = 0x1302,
TLS_CHACHA20_POLY1305_SHA256 = 0x1303,
TLS_AES_128_CCM_SHA256 = 0x1304,
TLS_AES_128_CCM_8_SHA256 = 0x1305,
TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 = 0xC023,
TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 = 0xC024,
TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256 = 0xC025,
TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384 = 0xC026,
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 = 0xC027,
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 = 0xC028,
TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256 = 0xC029,
TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384 = 0xC02A,
TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 = 0xC02B,
TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 = 0xC02C,
TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 = 0xC02D,
TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 = 0xC02E,
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 = 0xC02F,
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 = 0xC030,
TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256 = 0xC031,
TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384 = 0xC032,
TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 = 0xCCA8,
TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 = 0xCCA9,
TLS_EMPTY_RENEGOTIATION_INFO_SCSV = 0x00FF,
SSL_RSA_WITH_RC2_CBC_MD5 = 0xFF80,
SSL_RSA_WITH_IDEA_CBC_MD5 = 0xFF81,
SSL_RSA_WITH_DES_CBC_MD5 = 0xFF82,
SSL_RSA_WITH_3DES_EDE_CBC_MD5 = 0xFF83,
SSL_NO_SUCH_CIPHERSUITE = 0xFFFF
};
typedef int SSLCiphersuiteGroup; enum {
kSSLCiphersuiteGroupDefault,
kSSLCiphersuiteGroupCompatibility,
kSSLCiphersuiteGroupLegacy,
kSSLCiphersuiteGroupATS,
kSSLCiphersuiteGroupATSCompatibility,
};
// @protocol OS_sec_trust <NSObject> /* @end */
typedef NSObject/*<OS_sec_trust>*/ * __attribute__((objc_independent_class)) sec_trust_t;
// @protocol OS_sec_identity <NSObject> /* @end */
typedef NSObject/*<OS_sec_identity>*/ * __attribute__((objc_independent_class)) sec_identity_t;
// @protocol OS_sec_certificate <NSObject> /* @end */
typedef NSObject/*<OS_sec_certificate>*/ * __attribute__((objc_independent_class)) sec_certificate_t;
typedef uint16_t tls_protocol_version_t; enum {
tls_protocol_version_TLSv10 __attribute__((swift_name("TLSv10"))) = 0x0301,
tls_protocol_version_TLSv11 __attribute__((swift_name("TLSv11"))) = 0x0302,
tls_protocol_version_TLSv12 __attribute__((swift_name("TLSv12"))) = 0x0303,
tls_protocol_version_TLSv13 __attribute__((swift_name("TLSv13"))) = 0x0304,
tls_protocol_version_DTLSv10 __attribute__((swift_name("DTLSv10"))) = 0xfeff,
tls_protocol_version_DTLSv12 __attribute__((swift_name("DTLSv12"))) = 0xfefd,
};
typedef uint16_t tls_ciphersuite_t; enum {
tls_ciphersuite_RSA_WITH_3DES_EDE_CBC_SHA __attribute__((swift_name("RSA_WITH_3DES_EDE_CBC_SHA"))) = 0x000A,
tls_ciphersuite_RSA_WITH_AES_128_CBC_SHA __attribute__((swift_name("RSA_WITH_AES_128_CBC_SHA"))) = 0x002F,
tls_ciphersuite_RSA_WITH_AES_256_CBC_SHA __attribute__((swift_name("RSA_WITH_AES_256_CBC_SHA"))) = 0x0035,
tls_ciphersuite_RSA_WITH_AES_128_GCM_SHA256 __attribute__((swift_name("RSA_WITH_AES_128_GCM_SHA256"))) = 0x009C,
tls_ciphersuite_RSA_WITH_AES_256_GCM_SHA384 __attribute__((swift_name("RSA_WITH_AES_256_GCM_SHA384"))) = 0x009D,
tls_ciphersuite_RSA_WITH_AES_128_CBC_SHA256 __attribute__((swift_name("RSA_WITH_AES_128_CBC_SHA256"))) = 0x003C,
tls_ciphersuite_RSA_WITH_AES_256_CBC_SHA256 __attribute__((swift_name("RSA_WITH_AES_256_CBC_SHA256"))) = 0x003D,
tls_ciphersuite_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA __attribute__((swift_name("ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA"))) = 0xC008,
tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_CBC_SHA __attribute__((swift_name("ECDHE_ECDSA_WITH_AES_128_CBC_SHA"))) = 0xC009,
tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_CBC_SHA __attribute__((swift_name("ECDHE_ECDSA_WITH_AES_256_CBC_SHA"))) = 0xC00A,
tls_ciphersuite_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA __attribute__((swift_name("ECDHE_RSA_WITH_3DES_EDE_CBC_SHA"))) = 0xC012,
tls_ciphersuite_ECDHE_RSA_WITH_AES_128_CBC_SHA __attribute__((swift_name("ECDHE_RSA_WITH_AES_128_CBC_SHA"))) = 0xC013,
tls_ciphersuite_ECDHE_RSA_WITH_AES_256_CBC_SHA __attribute__((swift_name("ECDHE_RSA_WITH_AES_256_CBC_SHA"))) = 0xC014,
tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 __attribute__((swift_name("ECDHE_ECDSA_WITH_AES_128_CBC_SHA256"))) = 0xC023,
tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 __attribute__((swift_name("ECDHE_ECDSA_WITH_AES_256_CBC_SHA384"))) = 0xC024,
tls_ciphersuite_ECDHE_RSA_WITH_AES_128_CBC_SHA256 __attribute__((swift_name("ECDHE_RSA_WITH_AES_128_CBC_SHA256"))) = 0xC027,
tls_ciphersuite_ECDHE_RSA_WITH_AES_256_CBC_SHA384 __attribute__((swift_name("ECDHE_RSA_WITH_AES_256_CBC_SHA384"))) = 0xC028,
tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 __attribute__((swift_name("ECDHE_ECDSA_WITH_AES_128_GCM_SHA256"))) = 0xC02B,
tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 __attribute__((swift_name("ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"))) = 0xC02C,
tls_ciphersuite_ECDHE_RSA_WITH_AES_128_GCM_SHA256 __attribute__((swift_name("ECDHE_RSA_WITH_AES_128_GCM_SHA256"))) = 0xC02F,
tls_ciphersuite_ECDHE_RSA_WITH_AES_256_GCM_SHA384 __attribute__((swift_name("ECDHE_RSA_WITH_AES_256_GCM_SHA384"))) = 0xC030,
tls_ciphersuite_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 __attribute__((swift_name("ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256"))) = 0xCCA8,
tls_ciphersuite_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 __attribute__((swift_name("ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256"))) = 0xCCA9,
tls_ciphersuite_AES_128_GCM_SHA256 __attribute__((swift_name("AES_128_GCM_SHA256"))) = 0x1301,
tls_ciphersuite_AES_256_GCM_SHA384 __attribute__((swift_name("AES_256_GCM_SHA384"))) = 0x1302,
tls_ciphersuite_CHACHA20_POLY1305_SHA256 __attribute__((swift_name("CHACHA20_POLY1305_SHA256"))) = 0x1303,
};
typedef uint16_t tls_ciphersuite_group_t; enum {
tls_ciphersuite_group_default,
tls_ciphersuite_group_compatibility,
tls_ciphersuite_group_legacy,
tls_ciphersuite_group_ats,
tls_ciphersuite_group_ats_compatibility,
};
typedef int SSLProtocol; enum {
kSSLProtocolUnknown __attribute__((availability(ios,introduced=5_0,deprecated=13_0,message="" ))) = 0,
kTLSProtocol1 __attribute__((availability(ios,introduced=5_0,deprecated=13_0,message="" ))) = 4,
kTLSProtocol11 __attribute__((availability(ios,introduced=5_0,deprecated=13_0,message="" ))) = 7,
kTLSProtocol12 __attribute__((availability(ios,introduced=5_0,deprecated=13_0,message="" ))) = 8,
kDTLSProtocol1 __attribute__((availability(ios,introduced=5_0,deprecated=13_0,message="" ))) = 9,
kTLSProtocol13 __attribute__((availability(ios,introduced=5_0,deprecated=13_0,message="" ))) = 10,
kDTLSProtocol12 __attribute__((availability(ios,introduced=5_0,deprecated=13_0,message="" ))) = 11,
kTLSProtocolMaxSupported __attribute__((availability(ios,introduced=5_0,deprecated=13_0,message="" ))) = 999,
kSSLProtocol2 __attribute__((availability(ios,introduced=5_0,deprecated=13_0,message="" ))) = 1,
kSSLProtocol3 __attribute__((availability(ios,introduced=5_0,deprecated=13_0,message="" ))) = 2,
kSSLProtocol3Only __attribute__((availability(ios,introduced=5_0,deprecated=13_0,message="" ))) = 3,
kTLSProtocol1Only __attribute__((availability(ios,introduced=5_0,deprecated=13_0,message="" ))) = 5,
kSSLProtocolAll __attribute__((availability(ios,introduced=5_0,deprecated=13_0,message="" ))) = 6,
};
extern "C" {
#pragma clang assume_nonnull begin
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
__attribute__((__ns_returns_retained__)) _Nullable sec_trust_t
sec_trust_create(SecTrustRef trust);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
SecTrustRef
sec_trust_copy_ref(sec_trust_t trust);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
__attribute__((__ns_returns_retained__)) _Nullable sec_identity_t
sec_identity_create(SecIdentityRef identity);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
__attribute__((__ns_returns_retained__)) _Nullable sec_identity_t
sec_identity_create_with_certificates(SecIdentityRef identity, CFArrayRef certificates);
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)))
bool
sec_identity_access_certificates(sec_identity_t identity,
void (^handler)(sec_certificate_t certificate));
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
_Nullable SecIdentityRef
sec_identity_copy_ref(sec_identity_t identity);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
_Nullable CFArrayRef
sec_identity_copy_certificates_ref(sec_identity_t identity);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
__attribute__((__ns_returns_retained__)) _Nullable sec_certificate_t
sec_certificate_create(SecCertificateRef certificate);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
SecCertificateRef
sec_certificate_copy_ref(sec_certificate_t certificate);
#pragma clang assume_nonnull end
}
// @protocol OS_sec_protocol_metadata <NSObject> /* @end */
typedef NSObject/*<OS_sec_protocol_metadata>*/ * __attribute__((objc_independent_class)) sec_protocol_metadata_t;
extern "C" {
#pragma clang assume_nonnull begin
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
const char * _Nullable
sec_protocol_metadata_get_negotiated_protocol(sec_protocol_metadata_t metadata);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
__attribute__((__ns_returns_retained__)) _Nullable dispatch_data_t
sec_protocol_metadata_copy_peer_public_key(sec_protocol_metadata_t metadata);
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)))
tls_protocol_version_t
sec_protocol_metadata_get_negotiated_tls_protocol_version(sec_protocol_metadata_t metadata);
__attribute__((availability(macos,introduced=10.14,deprecated=10.15,replacement="sec_protocol_metadata_get_negotiated_tls_protocol_version"))) __attribute__((availability(ios,introduced=12.0,deprecated=13.0,replacement="sec_protocol_metadata_get_negotiated_tls_protocol_version"))) __attribute__((availability(watchos,introduced=5.0,deprecated=6.0,replacement="sec_protocol_metadata_get_negotiated_tls_protocol_version"))) __attribute__((availability(tvos,introduced=12.0,deprecated=13.0,replacement="sec_protocol_metadata_get_negotiated_tls_protocol_version")))
SSLProtocol
sec_protocol_metadata_get_negotiated_protocol_version(sec_protocol_metadata_t metadata);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
tls_ciphersuite_t
sec_protocol_metadata_get_negotiated_tls_ciphersuite(sec_protocol_metadata_t metadata);
__attribute__((availability(macos,introduced=10.14,deprecated=10.15,replacement="sec_protocol_metadata_get_negotiated_tls_ciphersuite"))) __attribute__((availability(ios,introduced=12.0,deprecated=13.0,replacement="sec_protocol_metadata_get_negotiated_tls_ciphersuite"))) __attribute__((availability(watchos,introduced=5.0,deprecated=6.0,replacement="sec_protocol_metadata_get_negotiated_tls_ciphersuite"))) __attribute__((availability(tvos,introduced=12.0,deprecated=13.0,replacement="sec_protocol_metadata_get_negotiated_tls_ciphersuite")))
__attribute__((availability(macCatalyst,unavailable)))
SSLCipherSuite
sec_protocol_metadata_get_negotiated_ciphersuite(sec_protocol_metadata_t metadata);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
bool
sec_protocol_metadata_get_early_data_accepted(sec_protocol_metadata_t metadata);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
bool
sec_protocol_metadata_access_peer_certificate_chain(sec_protocol_metadata_t metadata,
void (^handler)(sec_certificate_t certificate));
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
bool
sec_protocol_metadata_access_ocsp_response(sec_protocol_metadata_t metadata,
void (^handler)(dispatch_data_t ocsp_data));
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
bool
sec_protocol_metadata_access_supported_signature_algorithms(sec_protocol_metadata_t metadata,
void (^handler)(uint16_t signature_algorithm));
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
bool
sec_protocol_metadata_access_distinguished_names(sec_protocol_metadata_t metadata,
void (^handler)(dispatch_data_t distinguished_name));
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)))
bool
sec_protocol_metadata_access_pre_shared_keys(sec_protocol_metadata_t metadata, void (^handler)(dispatch_data_t psk, dispatch_data_t psk_identity));
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
const char * _Nullable
sec_protocol_metadata_get_server_name(sec_protocol_metadata_t metadata);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
bool
sec_protocol_metadata_peers_are_equal(sec_protocol_metadata_t metadataA, sec_protocol_metadata_t metadataB);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
bool
sec_protocol_metadata_challenge_parameters_are_equal(sec_protocol_metadata_t metadataA, sec_protocol_metadata_t metadataB);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
__attribute__((__ns_returns_retained__)) _Nullable dispatch_data_t
sec_protocol_metadata_create_secret(sec_protocol_metadata_t metadata, size_t label_len,
const char *label, size_t exporter_length);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
__attribute__((__ns_returns_retained__)) _Nullable dispatch_data_t
sec_protocol_metadata_create_secret_with_context(sec_protocol_metadata_t metadata, size_t label_len,
const char *label, size_t context_len,
const uint8_t *context, size_t exporter_length);
#pragma clang assume_nonnull end
}
// @protocol OS_sec_protocol_options <NSObject> /* @end */
typedef NSObject/*<OS_sec_protocol_options>*/ * __attribute__((objc_independent_class)) sec_protocol_options_t;
extern "C" {
#pragma clang assume_nonnull begin
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)))
bool
sec_protocol_options_are_equal(sec_protocol_options_t optionsA, sec_protocol_options_t optionsB);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
void
sec_protocol_options_set_local_identity(sec_protocol_options_t options, sec_identity_t identity);
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)))
void
sec_protocol_options_append_tls_ciphersuite(sec_protocol_options_t options, tls_ciphersuite_t ciphersuite);
__attribute__((availability(macos,introduced=10.14,deprecated=10.15,message="Use sec_protocol_options_append_tls_ciphersuite"))) __attribute__((availability(ios,introduced=12.0,deprecated=13.0,message="Use sec_protocol_options_append_tls_ciphersuite"))) __attribute__((availability(watchos,introduced=5.0,deprecated=6.0,message="Use sec_protocol_options_append_tls_ciphersuite"))) __attribute__((availability(tvos,introduced=12.0,deprecated=13.0,message="Use sec_protocol_options_append_tls_ciphersuite")))
__attribute__((availability(macCatalyst,unavailable)))
void
sec_protocol_options_add_tls_ciphersuite(sec_protocol_options_t options, SSLCipherSuite ciphersuite);
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)))
void
sec_protocol_options_append_tls_ciphersuite_group(sec_protocol_options_t options, tls_ciphersuite_group_t group);
__attribute__((availability(macos,introduced=10.14,deprecated=10.15,message="Use sec_protocol_options_append_tls_ciphersuite_group"))) __attribute__((availability(ios,introduced=12.0,deprecated=13.0,message="Use sec_protocol_options_append_tls_ciphersuite_group"))) __attribute__((availability(watchos,introduced=5.0,deprecated=6.0,message="Use sec_protocol_options_append_tls_ciphersuite_group"))) __attribute__((availability(tvos,introduced=12.0,deprecated=13.0,message="Use sec_protocol_options_append_tls_ciphersuite_group")))
__attribute__((availability(macCatalyst,unavailable)))
void
sec_protocol_options_add_tls_ciphersuite_group(sec_protocol_options_t options, SSLCiphersuiteGroup group);
__attribute__((availability(macos,introduced=10.14,deprecated=10.15,replacement="sec_protocol_options_set_min_tls_protocol_version"))) __attribute__((availability(ios,introduced=12.0,deprecated=13.0,replacement="sec_protocol_options_set_min_tls_protocol_version"))) __attribute__((availability(watchos,introduced=5.0,deprecated=6.0,replacement="sec_protocol_options_set_min_tls_protocol_version"))) __attribute__((availability(tvos,introduced=12.0,deprecated=13.0,replacement="sec_protocol_options_set_min_tls_protocol_version")))
__attribute__((availability(macCatalyst,unavailable)))
void
sec_protocol_options_set_tls_min_version(sec_protocol_options_t options, SSLProtocol version);
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)))
void
sec_protocol_options_set_min_tls_protocol_version(sec_protocol_options_t options, tls_protocol_version_t version);
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)))
tls_protocol_version_t
sec_protocol_options_get_default_min_tls_protocol_version(void);
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)))
tls_protocol_version_t
sec_protocol_options_get_default_min_dtls_protocol_version(void);
__attribute__((availability(macos,introduced=10.14,deprecated=10.15,replacement="sec_protocol_options_set_max_tls_protocol_version"))) __attribute__((availability(ios,introduced=12.0,deprecated=13.0,replacement="sec_protocol_options_set_max_tls_protocol_version"))) __attribute__((availability(watchos,introduced=5.0,deprecated=6.0,replacement="sec_protocol_options_set_max_tls_protocol_version"))) __attribute__((availability(tvos,introduced=12.0,deprecated=13.0,replacement="sec_protocol_options_set_max_tls_protocol_version")))
__attribute__((availability(macCatalyst,unavailable)))
void
sec_protocol_options_set_tls_max_version(sec_protocol_options_t options, SSLProtocol version);
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)))
void
sec_protocol_options_set_max_tls_protocol_version(sec_protocol_options_t options, tls_protocol_version_t version);
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)))
tls_protocol_version_t
sec_protocol_options_get_default_max_tls_protocol_version(void);
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)))
tls_protocol_version_t
sec_protocol_options_get_default_max_dtls_protocol_version(void);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
void
sec_protocol_options_add_tls_application_protocol(sec_protocol_options_t options, const char *application_protocol);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
void
sec_protocol_options_set_tls_server_name(sec_protocol_options_t options, const char *server_name);
__attribute__((availability(macos,introduced=10.14,deprecated=10.15,message="DHE ciphersuites are no longer supported"))) __attribute__((availability(ios,introduced=12.0,deprecated=13.0,message="DHE ciphersuites are no longer supported"))) __attribute__((availability(watchos,introduced=5.0,deprecated=6.0,message="DHE ciphersuites are no longer supported"))) __attribute__((availability(tvos,introduced=12.0,deprecated=13.0,message="DHE ciphersuites are no longer supported")))
void
sec_protocol_options_set_tls_diffie_hellman_parameters(sec_protocol_options_t options, dispatch_data_t params);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
void
sec_protocol_options_add_pre_shared_key(sec_protocol_options_t options, dispatch_data_t psk, dispatch_data_t psk_identity);
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)))
void
sec_protocol_options_set_tls_pre_shared_key_identity_hint(sec_protocol_options_t options, dispatch_data_t psk_identity_hint);
typedef void (*sec_protocol_pre_shared_key_selection_complete_t)(dispatch_data_t _Nullable psk_identity);
typedef void (*sec_protocol_pre_shared_key_selection_t)(sec_protocol_metadata_t metadata, dispatch_data_t _Nullable psk_identity_hint, sec_protocol_pre_shared_key_selection_complete_t complete);
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)))
void
sec_protocol_options_set_pre_shared_key_selection_block(sec_protocol_options_t options, sec_protocol_pre_shared_key_selection_t psk_selection_block, dispatch_queue_t psk_selection_queue);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
void
sec_protocol_options_set_tls_tickets_enabled(sec_protocol_options_t options, bool tickets_enabled);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
void
sec_protocol_options_set_tls_is_fallback_attempt(sec_protocol_options_t options, bool is_fallback_attempt);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
void
sec_protocol_options_set_tls_resumption_enabled(sec_protocol_options_t options, bool resumption_enabled);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
void
sec_protocol_options_set_tls_false_start_enabled(sec_protocol_options_t options, bool false_start_enabled);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
void
sec_protocol_options_set_tls_ocsp_enabled(sec_protocol_options_t options, bool ocsp_enabled);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
void
sec_protocol_options_set_tls_sct_enabled(sec_protocol_options_t options, bool sct_enabled);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
void
sec_protocol_options_set_tls_renegotiation_enabled(sec_protocol_options_t options, bool renegotiation_enabled);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
void
sec_protocol_options_set_peer_authentication_required(sec_protocol_options_t options, bool peer_authentication_required);
typedef void (*sec_protocol_key_update_complete_t)(void);
typedef void (*sec_protocol_key_update_t)(sec_protocol_metadata_t metadata, sec_protocol_key_update_complete_t complete);
typedef void (*sec_protocol_challenge_complete_t)(sec_identity_t _Nullable identity);
typedef void (*sec_protocol_challenge_t)(sec_protocol_metadata_t metadata, sec_protocol_challenge_complete_t complete);
typedef void (*sec_protocol_verify_complete_t)(bool result);
typedef void (*sec_protocol_verify_t)(sec_protocol_metadata_t metadata, sec_trust_t trust_ref, sec_protocol_verify_complete_t complete);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
void
sec_protocol_options_set_key_update_block(sec_protocol_options_t options, sec_protocol_key_update_t key_update_block, dispatch_queue_t key_update_queue);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
void
sec_protocol_options_set_challenge_block(sec_protocol_options_t options, sec_protocol_challenge_t challenge_block, dispatch_queue_t challenge_queue);
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
void
sec_protocol_options_set_verify_block(sec_protocol_options_t options, sec_protocol_verify_t verify_block, dispatch_queue_t verify_block_queue);
#pragma clang assume_nonnull end
}
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#pragma clang assume_nonnull begin
typedef NSUInteger NSURLCredentialPersistence; enum {
NSURLCredentialPersistenceNone,
NSURLCredentialPersistenceForSession,
NSURLCredentialPersistencePermanent,
NSURLCredentialPersistenceSynchronizable __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
};
// @class NSURLCredentialInternal;
#ifndef _REWRITER_typedef_NSURLCredentialInternal
#define _REWRITER_typedef_NSURLCredentialInternal
typedef struct objc_object NSURLCredentialInternal;
typedef struct {} _objc_exc_NSURLCredentialInternal;
#endif
#ifndef _REWRITER_typedef_NSURLCredential
#define _REWRITER_typedef_NSURLCredential
typedef struct objc_object NSURLCredential;
typedef struct {} _objc_exc_NSURLCredential;
#endif
struct NSURLCredential_IMPL {
struct NSObject_IMPL NSObject_IVARS;
NSURLCredentialInternal *_internal;
};
// @property (readonly) NSURLCredentialPersistence persistence;
/* @end */
// @interface NSURLCredential(NSInternetPassword)
// - (instancetype)initWithUser:(NSString *)user password:(NSString *)password persistence:(NSURLCredentialPersistence)persistence;
// + (NSURLCredential *)credentialWithUser:(NSString *)user password:(NSString *)password persistence:(NSURLCredentialPersistence)persistence;
// @property (nullable, readonly, copy) NSString *user;
// @property (nullable, readonly, copy) NSString *password;
// @property (readonly) BOOL hasPassword;
/* @end */
// @interface NSURLCredential(NSClientCertificate)
// - (instancetype)initWithIdentity:(SecIdentityRef)identity certificates:(nullable NSArray *)certArray persistence:(NSURLCredentialPersistence)persistence __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSURLCredential *)credentialWithIdentity:(SecIdentityRef)identity certificates:(nullable NSArray *)certArray persistence:(NSURLCredentialPersistence)persistence __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly) SecIdentityRef identity;
// @property (readonly, copy) NSArray *certificates __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSURLCredential(NSServerTrust)
// - (instancetype)initWithTrust:(SecTrustRef)trust __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSURLCredential *)credentialForTrust:(SecTrustRef)trust __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
#pragma clang assume_nonnull end
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
// @class NSData;
#ifndef _REWRITER_typedef_NSData
#define _REWRITER_typedef_NSData
typedef struct objc_object NSData;
typedef struct {} _objc_exc_NSData;
#endif
#pragma clang assume_nonnull begin
extern "C" NSString * const NSURLProtectionSpaceHTTP __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSURLProtectionSpaceHTTPS __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSURLProtectionSpaceFTP __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSURLProtectionSpaceHTTPProxy;
extern "C" NSString * const NSURLProtectionSpaceHTTPSProxy;
extern "C" NSString * const NSURLProtectionSpaceFTPProxy;
extern "C" NSString * const NSURLProtectionSpaceSOCKSProxy;
extern "C" NSString * const NSURLAuthenticationMethodDefault;
extern "C" NSString * const NSURLAuthenticationMethodHTTPBasic;
extern "C" NSString * const NSURLAuthenticationMethodHTTPDigest;
extern "C" NSString * const NSURLAuthenticationMethodHTMLForm;
extern "C" NSString * const NSURLAuthenticationMethodNTLM __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSURLAuthenticationMethodNegotiate __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSURLAuthenticationMethodClientCertificate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSURLAuthenticationMethodServerTrust __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @class NSURLProtectionSpaceInternal;
#ifndef _REWRITER_typedef_NSURLProtectionSpaceInternal
#define _REWRITER_typedef_NSURLProtectionSpaceInternal
typedef struct objc_object NSURLProtectionSpaceInternal;
typedef struct {} _objc_exc_NSURLProtectionSpaceInternal;
#endif
#ifndef _REWRITER_typedef_NSURLProtectionSpace
#define _REWRITER_typedef_NSURLProtectionSpace
typedef struct objc_object NSURLProtectionSpace;
typedef struct {} _objc_exc_NSURLProtectionSpace;
#endif
struct NSURLProtectionSpace_IMPL {
struct NSObject_IMPL NSObject_IVARS;
NSURLProtectionSpaceInternal *_internal;
};
// - (instancetype)initWithHost:(NSString *)host port:(NSInteger)port protocol:(nullable NSString *)protocol realm:(nullable NSString *)realm authenticationMethod:(nullable NSString *)authenticationMethod;
// - (instancetype)initWithProxyHost:(NSString *)host port:(NSInteger)port type:(nullable NSString *)type realm:(nullable NSString *)realm authenticationMethod:(nullable NSString *)authenticationMethod;
// @property (nullable, readonly, copy) NSString *realm;
// @property (readonly) BOOL receivesCredentialSecurely;
// @property (readonly) BOOL isProxy;
// @property (readonly, copy) NSString *host;
// @property (readonly) NSInteger port;
// @property (nullable, readonly, copy) NSString *proxyType;
// @property (nullable, readonly, copy) NSString *protocol;
// @property (readonly, copy) NSString *authenticationMethod;
/* @end */
// @interface NSURLProtectionSpace(NSClientCertificateSpace)
// @property (nullable, readonly, copy) NSArray<NSData *> *distinguishedNames __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSURLProtectionSpace(NSServerTrustValidationSpace)
// @property (nullable, readonly) SecTrustRef serverTrust __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
#pragma clang assume_nonnull end
// @class NSDictionary;
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
// @class NSURLCredential;
#ifndef _REWRITER_typedef_NSURLCredential
#define _REWRITER_typedef_NSURLCredential
typedef struct objc_object NSURLCredential;
typedef struct {} _objc_exc_NSURLCredential;
#endif
// @class NSURLSessionTask;
#ifndef _REWRITER_typedef_NSURLSessionTask
#define _REWRITER_typedef_NSURLSessionTask
typedef struct objc_object NSURLSessionTask;
typedef struct {} _objc_exc_NSURLSessionTask;
#endif
// @class NSURLCredentialStorageInternal;
#ifndef _REWRITER_typedef_NSURLCredentialStorageInternal
#define _REWRITER_typedef_NSURLCredentialStorageInternal
typedef struct objc_object NSURLCredentialStorageInternal;
typedef struct {} _objc_exc_NSURLCredentialStorageInternal;
#endif
#pragma clang assume_nonnull begin
#ifndef _REWRITER_typedef_NSURLCredentialStorage
#define _REWRITER_typedef_NSURLCredentialStorage
typedef struct objc_object NSURLCredentialStorage;
typedef struct {} _objc_exc_NSURLCredentialStorage;
#endif
struct NSURLCredentialStorage_IMPL {
struct NSObject_IMPL NSObject_IVARS;
NSURLCredentialStorageInternal *_internal;
};
@property (class, readonly, strong) NSURLCredentialStorage *sharedCredentialStorage;
// - (nullable NSDictionary<NSString *, NSURLCredential *> *)credentialsForProtectionSpace:(NSURLProtectionSpace *)space;
// @property (readonly, copy) NSDictionary<NSURLProtectionSpace *, NSDictionary<NSString *, NSURLCredential *> *> *allCredentials;
// - (void)setCredential:(NSURLCredential *)credential forProtectionSpace:(NSURLProtectionSpace *)space;
// - (void)removeCredential:(NSURLCredential *)credential forProtectionSpace:(NSURLProtectionSpace *)space;
// - (void)removeCredential:(NSURLCredential *)credential forProtectionSpace:(NSURLProtectionSpace *)space options:(nullable NSDictionary<NSString *, id> *)options __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSURLCredential *)defaultCredentialForProtectionSpace:(NSURLProtectionSpace *)space;
// - (void)setDefaultCredential:(NSURLCredential *)credential forProtectionSpace:(NSURLProtectionSpace *)space;
/* @end */
// @interface NSURLCredentialStorage (NSURLSessionTaskAdditions)
// - (void)getCredentialsForProtectionSpace:(NSURLProtectionSpace *)protectionSpace task:(NSURLSessionTask *)task completionHandler:(void (^) (NSDictionary<NSString *, NSURLCredential *> * _Nullable credentials))completionHandler __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)setCredential:(NSURLCredential *)credential forProtectionSpace:(NSURLProtectionSpace *)protectionSpace task:(NSURLSessionTask *)task __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)removeCredential:(NSURLCredential *)credential forProtectionSpace:(NSURLProtectionSpace *)protectionSpace options:(nullable NSDictionary<NSString *, id> *)options task:(NSURLSessionTask *)task __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)getDefaultCredentialForProtectionSpace:(NSURLProtectionSpace *)space task:(NSURLSessionTask *)task completionHandler:(void (^) (NSURLCredential * _Nullable credential))completionHandler __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)setDefaultCredential:(NSURLCredential *)credential forProtectionSpace:(NSURLProtectionSpace *)protectionSpace task:(NSURLSessionTask *)task __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
extern "C" NSNotificationName const NSURLCredentialStorageChangedNotification;
extern "C" NSString *const NSURLCredentialStorageRemoveSynchronizableCredentials __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
#pragma clang assume_nonnull end
extern "C" {
#pragma clang assume_nonnull begin
extern const CFStringRef kCFErrorDomainCFNetwork __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFErrorDomainWinSock __attribute__((availability(ios,introduced=2_0)));
typedef int CFNetworkErrors; enum {
kCFHostErrorHostNotFound = 1,
kCFHostErrorUnknown = 2,
kCFSOCKSErrorUnknownClientVersion = 100,
kCFSOCKSErrorUnsupportedServerVersion = 101,
kCFSOCKS4ErrorRequestFailed = 110,
kCFSOCKS4ErrorIdentdFailed = 111,
kCFSOCKS4ErrorIdConflict = 112,
kCFSOCKS4ErrorUnknownStatusCode = 113,
kCFSOCKS5ErrorBadState = 120,
kCFSOCKS5ErrorBadResponseAddr = 121,
kCFSOCKS5ErrorBadCredentials = 122,
kCFSOCKS5ErrorUnsupportedNegotiationMethod = 123,
kCFSOCKS5ErrorNoAcceptableMethod = 124,
kCFFTPErrorUnexpectedStatusCode = 200,
kCFErrorHTTPAuthenticationTypeUnsupported = 300,
kCFErrorHTTPBadCredentials = 301,
kCFErrorHTTPConnectionLost = 302,
kCFErrorHTTPParseFailure = 303,
kCFErrorHTTPRedirectionLoopDetected = 304,
kCFErrorHTTPBadURL = 305,
kCFErrorHTTPProxyConnectionFailure = 306,
kCFErrorHTTPBadProxyCredentials = 307,
kCFErrorPACFileError = 308,
kCFErrorPACFileAuth = 309,
kCFErrorHTTPSProxyConnectionFailure = 310,
kCFStreamErrorHTTPSProxyFailureUnexpectedResponseToCONNECTMethod = 311,
kCFURLErrorBackgroundSessionInUseByAnotherProcess = -996,
kCFURLErrorBackgroundSessionWasDisconnected = -997,
kCFURLErrorUnknown = -998,
kCFURLErrorCancelled = -999,
kCFURLErrorBadURL = -1000,
kCFURLErrorTimedOut = -1001,
kCFURLErrorUnsupportedURL = -1002,
kCFURLErrorCannotFindHost = -1003,
kCFURLErrorCannotConnectToHost = -1004,
kCFURLErrorNetworkConnectionLost = -1005,
kCFURLErrorDNSLookupFailed = -1006,
kCFURLErrorHTTPTooManyRedirects = -1007,
kCFURLErrorResourceUnavailable = -1008,
kCFURLErrorNotConnectedToInternet = -1009,
kCFURLErrorRedirectToNonExistentLocation = -1010,
kCFURLErrorBadServerResponse = -1011,
kCFURLErrorUserCancelledAuthentication = -1012,
kCFURLErrorUserAuthenticationRequired = -1013,
kCFURLErrorZeroByteResource = -1014,
kCFURLErrorCannotDecodeRawData = -1015,
kCFURLErrorCannotDecodeContentData = -1016,
kCFURLErrorCannotParseResponse = -1017,
kCFURLErrorInternationalRoamingOff = -1018,
kCFURLErrorCallIsActive = -1019,
kCFURLErrorDataNotAllowed = -1020,
kCFURLErrorRequestBodyStreamExhausted = -1021,
kCFURLErrorAppTransportSecurityRequiresSecureConnection = -1022,
kCFURLErrorFileDoesNotExist = -1100,
kCFURLErrorFileIsDirectory = -1101,
kCFURLErrorNoPermissionsToReadFile = -1102,
kCFURLErrorDataLengthExceedsMaximum = -1103,
kCFURLErrorFileOutsideSafeArea = -1104,
kCFURLErrorSecureConnectionFailed = -1200,
kCFURLErrorServerCertificateHasBadDate = -1201,
kCFURLErrorServerCertificateUntrusted = -1202,
kCFURLErrorServerCertificateHasUnknownRoot = -1203,
kCFURLErrorServerCertificateNotYetValid = -1204,
kCFURLErrorClientCertificateRejected = -1205,
kCFURLErrorClientCertificateRequired = -1206,
kCFURLErrorCannotLoadFromNetwork = -2000,
kCFURLErrorCannotCreateFile = -3000,
kCFURLErrorCannotOpenFile = -3001,
kCFURLErrorCannotCloseFile = -3002,
kCFURLErrorCannotWriteToFile = -3003,
kCFURLErrorCannotRemoveFile = -3004,
kCFURLErrorCannotMoveFile = -3005,
kCFURLErrorDownloadDecodingFailedMidStream = -3006,
kCFURLErrorDownloadDecodingFailedToComplete = -3007,
kCFHTTPCookieCannotParseCookieFile = -4000,
kCFNetServiceErrorUnknown = -72000L,
kCFNetServiceErrorCollision = -72001L,
kCFNetServiceErrorNotFound = -72002L,
kCFNetServiceErrorInProgress = -72003L,
kCFNetServiceErrorBadArgument = -72004L,
kCFNetServiceErrorCancel = -72005L,
kCFNetServiceErrorInvalid = -72006L,
kCFNetServiceErrorTimeout = -72007L,
kCFNetServiceErrorDNSServiceFailure = -73000L
};
extern const CFStringRef kCFURLErrorFailingURLErrorKey __attribute__((availability(ios,introduced=2_2)));
extern const CFStringRef kCFURLErrorFailingURLStringErrorKey __attribute__((availability(ios,introduced=2_2)));
extern const CFStringRef kCFGetAddrInfoFailureKey __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFSOCKSStatusCodeKey __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFSOCKSVersionKey __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFSOCKSNegotiationMethodKey __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFDNSServiceFailureKey __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFFTPStatusCodeKey __attribute__((availability(ios,introduced=2_0)));
#pragma clang assume_nonnull end
}
extern "C" {
#pragma clang assume_nonnull begin
#pragma pack(push, 2)
typedef struct __CFHost* CFHostRef;
extern const SInt32 kCFStreamErrorDomainNetDB __attribute__((availability(ios,introduced=2_0)));
extern const SInt32 kCFStreamErrorDomainSystemConfiguration __attribute__((availability(ios,introduced=2_0)));
typedef int CFHostInfoType; enum {
kCFHostAddresses = 0,
kCFHostNames = 1,
kCFHostReachability = 2
};
struct CFHostClientContext {
CFIndex version;
void * _Nullable info;
CFAllocatorRetainCallBack _Nullable retain;
CFAllocatorReleaseCallBack _Nullable release;
CFAllocatorCopyDescriptionCallBack _Nullable copyDescription;
};
typedef struct CFHostClientContext CFHostClientContext;
typedef void ( * CFHostClientCallBack)(CFHostRef theHost, CFHostInfoType typeInfo, const CFStreamError * _Nullable error, void * _Nullable info);
extern CFTypeID
CFHostGetTypeID(void) __attribute__((availability(ios,introduced=2_0)));
extern CFHostRef
CFHostCreateWithName(CFAllocatorRef _Nullable allocator, CFStringRef hostname) __attribute__((availability(ios,introduced=2_0)));
extern CFHostRef
CFHostCreateWithAddress(CFAllocatorRef _Nullable allocator, CFDataRef addr) __attribute__((availability(ios,introduced=2_0)));
extern CFHostRef
CFHostCreateCopy(CFAllocatorRef _Nullable alloc, CFHostRef host) __attribute__((availability(ios,introduced=2_0)));
extern Boolean
CFHostStartInfoResolution(CFHostRef theHost, CFHostInfoType info, CFStreamError * _Nullable error) __attribute__((availability(ios,introduced=2_0)));
extern _Nullable CFArrayRef
CFHostGetAddressing(CFHostRef theHost, Boolean * _Nullable hasBeenResolved) __attribute__((availability(ios,introduced=2_0)));
extern _Nullable CFArrayRef
CFHostGetNames(CFHostRef theHost, Boolean * _Nullable hasBeenResolved) __attribute__((availability(ios,introduced=2_0)));
extern _Nullable CFDataRef
CFHostGetReachability(CFHostRef theHost, Boolean * _Nullable hasBeenResolved) __attribute__((availability(ios,introduced=2_0)));
extern void
CFHostCancelInfoResolution(CFHostRef theHost, CFHostInfoType info) __attribute__((availability(ios,introduced=2_0)));
extern Boolean
CFHostSetClient(CFHostRef theHost, CFHostClientCallBack _Nullable clientCB, CFHostClientContext * _Nullable clientContext) __attribute__((availability(ios,introduced=2_0)));
extern void
CFHostScheduleWithRunLoop(CFHostRef theHost, CFRunLoopRef runLoop, CFStringRef runLoopMode) __attribute__((availability(ios,introduced=2_0)));
extern void
CFHostUnscheduleFromRunLoop(CFHostRef theHost, CFRunLoopRef runLoop, CFStringRef runLoopMode) __attribute__((availability(ios,introduced=2_0)));
#pragma pack(pop)
#pragma clang assume_nonnull end
}
extern "C" {
#pragma clang assume_nonnull begin
#pragma pack(push, 2)
typedef struct __CFNetService* CFNetServiceRef;
typedef struct __CFNetServiceMonitor* CFNetServiceMonitorRef;
typedef struct __CFNetServiceBrowser* CFNetServiceBrowserRef;
extern const SInt32 kCFStreamErrorDomainMach __attribute__((availability(ios,introduced=2_0)));
extern const SInt32 kCFStreamErrorDomainNetServices __attribute__((availability(ios,introduced=2_0)));
typedef int CFNetServicesError; enum {
kCFNetServicesErrorUnknown = -72000L,
kCFNetServicesErrorCollision = -72001L,
kCFNetServicesErrorNotFound = -72002L,
kCFNetServicesErrorInProgress = -72003L,
kCFNetServicesErrorBadArgument = -72004L,
kCFNetServicesErrorCancel = -72005L,
kCFNetServicesErrorInvalid = -72006L,
kCFNetServicesErrorTimeout = -72007L
};
typedef int CFNetServiceMonitorType; enum {
kCFNetServiceMonitorTXT = 1
};
typedef CFOptionFlags CFNetServiceRegisterFlags; enum {
kCFNetServiceFlagNoAutoRename = 1
};
typedef CFOptionFlags CFNetServiceBrowserFlags; enum {
kCFNetServiceFlagMoreComing = 1,
kCFNetServiceFlagIsDomain = 2,
kCFNetServiceFlagIsDefault = 4,
kCFNetServiceFlagIsRegistrationDomain __attribute__((availability(ios,introduced=2_0,deprecated=2_0,message="" ))) = 4,
kCFNetServiceFlagRemove = 8
};
struct CFNetServiceClientContext {
CFIndex version;
void * _Nullable info;
CFAllocatorRetainCallBack _Nullable retain;
CFAllocatorReleaseCallBack _Nullable release;
CFAllocatorCopyDescriptionCallBack _Nullable copyDescription;
};
typedef struct CFNetServiceClientContext CFNetServiceClientContext;
typedef void ( * CFNetServiceClientCallBack)(CFNetServiceRef theService, CFStreamError * _Nullable error, void * _Nullable info);
typedef void ( * CFNetServiceMonitorClientCallBack)(CFNetServiceMonitorRef theMonitor, CFNetServiceRef _Nullable theService, CFNetServiceMonitorType typeInfo, CFDataRef _Nullable rdata, CFStreamError * _Nullable error, void * _Nullable info);
typedef void ( * CFNetServiceBrowserClientCallBack)(CFNetServiceBrowserRef browser, CFOptionFlags flags, CFTypeRef _Nullable domainOrService, CFStreamError * _Nullable error, void * _Nullable info);
extern CFTypeID
CFNetServiceGetTypeID(void) __attribute__((availability(ios,introduced=2_0)));
extern CFTypeID
CFNetServiceMonitorGetTypeID(void) __attribute__((availability(ios,introduced=2_0)));
extern CFTypeID
CFNetServiceBrowserGetTypeID(void) __attribute__((availability(ios,introduced=2_0)));
extern CFNetServiceRef
CFNetServiceCreate(CFAllocatorRef _Nullable alloc, CFStringRef domain, CFStringRef serviceType, CFStringRef name, SInt32 port) __attribute__((availability(ios,introduced=2_0)));
extern CFNetServiceRef
CFNetServiceCreateCopy(CFAllocatorRef _Nullable alloc, CFNetServiceRef service) __attribute__((availability(ios,introduced=2_0)));
extern CFStringRef
CFNetServiceGetDomain(CFNetServiceRef theService) __attribute__((availability(ios,introduced=2_0)));
extern CFStringRef
CFNetServiceGetType(CFNetServiceRef theService) __attribute__((availability(ios,introduced=2_0)));
extern CFStringRef
CFNetServiceGetName(CFNetServiceRef theService) __attribute__((availability(ios,introduced=2_0)));
extern Boolean
CFNetServiceRegisterWithOptions(CFNetServiceRef theService, CFOptionFlags options, CFStreamError * _Nullable error) __attribute__((availability(ios,introduced=2_0)));
extern Boolean
CFNetServiceResolveWithTimeout(CFNetServiceRef theService, CFTimeInterval timeout, CFStreamError * _Nullable error) __attribute__((availability(ios,introduced=2_0)));
extern void
CFNetServiceCancel(CFNetServiceRef theService) __attribute__((availability(ios,introduced=2_0)));
extern _Nullable CFStringRef
CFNetServiceGetTargetHost(CFNetServiceRef theService) __attribute__((availability(ios,introduced=2_0)));
extern SInt32
CFNetServiceGetPortNumber(CFNetServiceRef theService) __attribute__((availability(ios,introduced=2_0)));
extern _Nullable CFArrayRef
CFNetServiceGetAddressing(CFNetServiceRef theService) __attribute__((availability(ios,introduced=2_0)));
extern _Nullable CFDataRef
CFNetServiceGetTXTData(CFNetServiceRef theService) __attribute__((availability(ios,introduced=2_0)));
extern Boolean
CFNetServiceSetTXTData(CFNetServiceRef theService, CFDataRef txtRecord) __attribute__((availability(ios,introduced=2_0)));
extern _Nullable CFDictionaryRef
CFNetServiceCreateDictionaryWithTXTData(CFAllocatorRef _Nullable alloc, CFDataRef txtRecord) __attribute__((availability(ios,introduced=2_0)));
extern _Nullable CFDataRef
CFNetServiceCreateTXTDataWithDictionary(CFAllocatorRef _Nullable alloc, CFDictionaryRef keyValuePairs) __attribute__((availability(ios,introduced=2_0)));
extern Boolean
CFNetServiceSetClient(CFNetServiceRef theService, CFNetServiceClientCallBack _Nullable clientCB, CFNetServiceClientContext * _Nullable clientContext) __attribute__((availability(ios,introduced=2_0)));
extern void
CFNetServiceScheduleWithRunLoop(CFNetServiceRef theService, CFRunLoopRef runLoop, CFStringRef runLoopMode) __attribute__((availability(ios,introduced=2_0)));
extern void
CFNetServiceUnscheduleFromRunLoop(CFNetServiceRef theService, CFRunLoopRef runLoop, CFStringRef runLoopMode) __attribute__((availability(ios,introduced=2_0)));
extern CFNetServiceMonitorRef
CFNetServiceMonitorCreate(
CFAllocatorRef _Nullable alloc,
CFNetServiceRef theService,
CFNetServiceMonitorClientCallBack clientCB,
CFNetServiceClientContext * clientContext) __attribute__((availability(ios,introduced=2_0)));
extern void
CFNetServiceMonitorInvalidate(CFNetServiceMonitorRef monitor) __attribute__((availability(ios,introduced=2_0)));
extern Boolean
CFNetServiceMonitorStart(CFNetServiceMonitorRef monitor, CFNetServiceMonitorType recordType, CFStreamError * _Nullable error) __attribute__((availability(ios,introduced=2_0)));
extern void
CFNetServiceMonitorStop(CFNetServiceMonitorRef monitor, CFStreamError * _Nullable error) __attribute__((availability(ios,introduced=2_0)));
extern void
CFNetServiceMonitorScheduleWithRunLoop(CFNetServiceMonitorRef monitor, CFRunLoopRef runLoop, CFStringRef runLoopMode) __attribute__((availability(ios,introduced=2_0)));
extern void
CFNetServiceMonitorUnscheduleFromRunLoop(CFNetServiceMonitorRef monitor, CFRunLoopRef runLoop, CFStringRef runLoopMode) __attribute__((availability(ios,introduced=2_0)));
extern CFNetServiceBrowserRef
CFNetServiceBrowserCreate(CFAllocatorRef _Nullable alloc, CFNetServiceBrowserClientCallBack clientCB, CFNetServiceClientContext *clientContext) __attribute__((availability(ios,introduced=2_0)));
extern void
CFNetServiceBrowserInvalidate(CFNetServiceBrowserRef browser) __attribute__((availability(ios,introduced=2_0)));
extern Boolean
CFNetServiceBrowserSearchForDomains(CFNetServiceBrowserRef browser, Boolean registrationDomains, CFStreamError * _Nullable error) __attribute__((availability(ios,introduced=2_0)));
extern Boolean
CFNetServiceBrowserSearchForServices(CFNetServiceBrowserRef browser, CFStringRef domain, CFStringRef serviceType, CFStreamError * _Nullable error) __attribute__((availability(ios,introduced=2_0)));
extern void
CFNetServiceBrowserStopSearch(CFNetServiceBrowserRef browser, CFStreamError * _Nullable error) __attribute__((availability(ios,introduced=2_0)));
extern void
CFNetServiceBrowserScheduleWithRunLoop(CFNetServiceBrowserRef browser, CFRunLoopRef runLoop, CFStringRef runLoopMode) __attribute__((availability(ios,introduced=2_0)));
extern void
CFNetServiceBrowserUnscheduleFromRunLoop(CFNetServiceBrowserRef browser, CFRunLoopRef runLoop, CFStringRef runLoopMode) __attribute__((availability(ios,introduced=2_0)));
extern Boolean
CFNetServiceRegister(CFNetServiceRef theService, CFStreamError * _Nullable error) __attribute__((availability(ios,introduced=NA,deprecated=NA,message="" )));
extern Boolean
CFNetServiceResolve(CFNetServiceRef theService, CFStreamError * _Nullable error) __attribute__((availability(ios,introduced=NA,deprecated=NA,message="" )));
#pragma pack(pop)
#pragma clang assume_nonnull end
}
extern "C" {
#pragma clang assume_nonnull begin
extern const CFStringRef kCFStreamPropertySSLContext __attribute__((availability(ios,introduced=5_0)));
extern const CFStringRef kCFStreamPropertySSLPeerTrust __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFStreamSSLValidatesCertificateChain __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFStreamPropertySSLSettings __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFStreamSSLLevel __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFStreamSSLPeerName __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFStreamSSLCertificates __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFStreamSSLIsServer __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFStreamNetworkServiceType __attribute__((availability(ios,introduced=4_0)));
extern const CFStringRef kCFStreamNetworkServiceTypeVideo __attribute__((availability(ios,introduced=5_0)));
extern const CFStringRef kCFStreamNetworkServiceTypeVoice __attribute__((availability(ios,introduced=5_0)));
extern const CFStringRef kCFStreamNetworkServiceTypeBackground __attribute__((availability(ios,introduced=5_0)));
extern const CFStringRef kCFStreamNetworkServiceTypeResponsiveData __attribute__((availability(ios,introduced=6.0)));
extern const CFStringRef kCFStreamNetworkServiceTypeCallSignaling __attribute__((availability(ios,introduced=10_0)));
extern const CFStringRef kCFStreamNetworkServiceTypeAVStreaming __attribute__((availability(ios,introduced=6.0)));
extern const CFStringRef kCFStreamNetworkServiceTypeResponsiveAV __attribute__((availability(ios,introduced=6.0)));
extern const CFStringRef kCFStreamNetworkServiceTypeVoIP __attribute__((availability(ios,introduced=4_0,deprecated=9_0,message="" "use PushKit for VoIP control purposes")));
extern const CFStringRef kCFStreamPropertyNoCellular __attribute__((availability(ios,introduced=5_0)));
extern const CFStringRef kCFStreamPropertyConnectionIsCellular __attribute__((availability(ios,introduced=6_0)));
extern const CFStringRef kCFStreamPropertyAllowExpensiveNetworkAccess __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
extern const CFStringRef kCFStreamPropertyConnectionIsExpensive __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
extern const CFStringRef kCFStreamPropertyAllowConstrainedNetworkAccess __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
extern const CFIndex kCFStreamErrorDomainWinSock __attribute__((availability(ios,introduced=2_0)));
static __inline__ __attribute__((always_inline))
SInt32 CFSocketStreamSOCKSGetErrorSubdomain(const CFStreamError* error) {
return ((error->error >> 16) & 0x0000FFFF);
}
static __inline__ __attribute__((always_inline))
SInt32 CFSocketStreamSOCKSGetError(const CFStreamError* error) {
return (error->error & 0x0000FFFF);
}
enum {
kCFStreamErrorSOCKSSubDomainNone = 0,
kCFStreamErrorSOCKSSubDomainVersionCode = 1,
kCFStreamErrorSOCKS4SubDomainResponse = 2,
kCFStreamErrorSOCKS5SubDomainUserPass = 3,
kCFStreamErrorSOCKS5SubDomainMethod = 4,
kCFStreamErrorSOCKS5SubDomainResponse = 5
};
enum {
kCFStreamErrorSOCKS5BadResponseAddr = 1,
kCFStreamErrorSOCKS5BadState = 2,
kCFStreamErrorSOCKSUnknownClientVersion = 3
};
enum {
kCFStreamErrorSOCKS4RequestFailed = 91,
kCFStreamErrorSOCKS4IdentdFailed = 92,
kCFStreamErrorSOCKS4IdConflict = 93
};
enum {
kSOCKS5NoAcceptableMethod = 0xFF
};
extern const CFStringRef kCFStreamPropertyProxyLocalBypass __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFStreamPropertySocketRemoteHost __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFStreamPropertySocketRemoteNetService __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFStreamPropertySocketExtendedBackgroundIdleMode __attribute__((availability(ios,introduced=9_0)));
extern void
CFStreamCreatePairWithSocketToCFHost(
CFAllocatorRef _Nullable alloc,
CFHostRef host,
SInt32 port,
CFReadStreamRef _Nullable * _Nullable readStream,
CFWriteStreamRef _Nullable * _Nullable writeStream) __attribute__((availability(ios,introduced=2_0)));
extern void
CFStreamCreatePairWithSocketToNetService(
CFAllocatorRef _Nullable alloc,
CFNetServiceRef service,
CFReadStreamRef _Nullable * _Nullable readStream,
CFWriteStreamRef _Nullable * _Nullable writeStream) __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFStreamPropertySSLPeerCertificates __attribute__((availability(ios,introduced=2_0,deprecated=4_0,message="" )));
extern const CFStringRef kCFStreamSSLAllowsExpiredCertificates __attribute__((availability(ios,introduced=2_0,deprecated=4_0,message="" )));
extern const CFStringRef kCFStreamSSLAllowsExpiredRoots __attribute__((availability(ios,introduced=2_0,deprecated=4_0,message="" )));
extern const CFStringRef kCFStreamSSLAllowsAnyRoot __attribute__((availability(ios,introduced=2_0,deprecated=4_0,message="" )));
#pragma clang assume_nonnull end
}
extern "C" {
#pragma clang assume_nonnull begin
extern const SInt32 kCFStreamErrorDomainFTP __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFStreamPropertyFTPUserName __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests")));
extern const CFStringRef kCFStreamPropertyFTPPassword __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests")));
extern const CFStringRef kCFStreamPropertyFTPUsePassiveMode __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests")));
extern const CFStringRef kCFStreamPropertyFTPResourceSize __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests")));
extern const CFStringRef kCFStreamPropertyFTPFetchResourceInfo __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests")));
extern const CFStringRef kCFStreamPropertyFTPFileTransferOffset __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests")));
extern const CFStringRef kCFStreamPropertyFTPAttemptPersistentConnection __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests")));
extern const CFStringRef kCFStreamPropertyFTPProxy __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests")));
extern const CFStringRef kCFStreamPropertyFTPProxyHost __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests")));
extern const CFStringRef kCFStreamPropertyFTPProxyPort __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests")));
extern const CFStringRef kCFStreamPropertyFTPProxyUser __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests")));
extern const CFStringRef kCFStreamPropertyFTPProxyPassword __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests")));
extern const CFStringRef kCFFTPResourceMode __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests")));
extern const CFStringRef kCFFTPResourceName __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests")));
extern const CFStringRef kCFFTPResourceOwner __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests")));
extern const CFStringRef kCFFTPResourceGroup __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests")));
extern const CFStringRef kCFFTPResourceLink __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests")));
extern const CFStringRef kCFFTPResourceSize __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests")));
extern const CFStringRef kCFFTPResourceType __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests")));
extern const CFStringRef kCFFTPResourceModDate __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests")));
extern CFReadStreamRef
CFReadStreamCreateWithFTPURL(CFAllocatorRef _Nullable alloc, CFURLRef ftpURL) __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests")));
extern CFIndex
CFFTPCreateParsedResourceListing(CFAllocatorRef _Nullable alloc, const UInt8 *buffer, CFIndex bufferLength, CFDictionaryRef _Nullable * _Nullable parsed) __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests")));
extern CFWriteStreamRef
CFWriteStreamCreateWithFTPURL(CFAllocatorRef _Nullable alloc, CFURLRef ftpURL) __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests")));
#pragma clang assume_nonnull end
}
extern "C" {
#pragma clang assume_nonnull begin
extern const CFStringRef kCFHTTPVersion1_0 __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFHTTPVersion1_1 __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFHTTPVersion2_0 __attribute__((availability(ios,introduced=8_0)));
extern const CFStringRef kCFHTTPAuthenticationSchemeBasic __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFHTTPAuthenticationSchemeDigest __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFHTTPAuthenticationSchemeNTLM __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFHTTPAuthenticationSchemeKerberos __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFHTTPAuthenticationSchemeNegotiate __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFHTTPAuthenticationSchemeNegotiate2 __attribute__((availability(ios,introduced=3_0)));
extern const CFStringRef kCFHTTPAuthenticationSchemeXMobileMeAuthToken __attribute__((availability(ios,introduced=4_3)));
typedef struct __CFHTTPMessage* CFHTTPMessageRef;
extern CFTypeID
CFHTTPMessageGetTypeID(void) __attribute__((availability(ios,introduced=2_0)));
extern CFHTTPMessageRef
CFHTTPMessageCreateRequest(CFAllocatorRef _Nullable alloc, CFStringRef requestMethod, CFURLRef url, CFStringRef httpVersion) __attribute__((availability(ios,introduced=2_0)));
extern CFHTTPMessageRef
CFHTTPMessageCreateResponse(
CFAllocatorRef _Nullable alloc,
CFIndex statusCode,
CFStringRef _Nullable statusDescription,
CFStringRef httpVersion) __attribute__((availability(ios,introduced=2_0)));
extern CFHTTPMessageRef
CFHTTPMessageCreateEmpty(CFAllocatorRef _Nullable alloc, Boolean isRequest) __attribute__((availability(ios,introduced=2_0)));
extern CFHTTPMessageRef
CFHTTPMessageCreateCopy(CFAllocatorRef _Nullable alloc, CFHTTPMessageRef message) __attribute__((availability(ios,introduced=2_0)));
extern Boolean
CFHTTPMessageIsRequest(CFHTTPMessageRef message) __attribute__((availability(ios,introduced=2_0)));
extern CFStringRef
CFHTTPMessageCopyVersion(CFHTTPMessageRef message) __attribute__((availability(ios,introduced=2_0)));
extern _Nullable CFDataRef
CFHTTPMessageCopyBody(CFHTTPMessageRef message) __attribute__((availability(ios,introduced=2_0)));
extern void
CFHTTPMessageSetBody(CFHTTPMessageRef message, CFDataRef bodyData) __attribute__((availability(ios,introduced=2_0)));
extern _Nullable CFStringRef
CFHTTPMessageCopyHeaderFieldValue(CFHTTPMessageRef message, CFStringRef headerField) __attribute__((availability(ios,introduced=2_0)));
extern _Nullable CFDictionaryRef
CFHTTPMessageCopyAllHeaderFields(CFHTTPMessageRef message) __attribute__((availability(ios,introduced=2_0)));
extern void
CFHTTPMessageSetHeaderFieldValue(CFHTTPMessageRef message, CFStringRef headerField, CFStringRef _Nullable value) __attribute__((availability(ios,introduced=2_0)));
extern Boolean
CFHTTPMessageAppendBytes(CFHTTPMessageRef message, const UInt8 *newBytes, CFIndex numBytes) __attribute__((availability(ios,introduced=2_0)));
extern Boolean
CFHTTPMessageIsHeaderComplete(CFHTTPMessageRef message) __attribute__((availability(ios,introduced=2_0)));
extern _Nullable CFDataRef
CFHTTPMessageCopySerializedMessage(CFHTTPMessageRef message) __attribute__((availability(ios,introduced=2_0)));
extern _Nullable CFURLRef
CFHTTPMessageCopyRequestURL(CFHTTPMessageRef request) __attribute__((availability(ios,introduced=2_0)));
extern _Nullable CFStringRef
CFHTTPMessageCopyRequestMethod(CFHTTPMessageRef request) __attribute__((availability(ios,introduced=2_0)));
extern Boolean
CFHTTPMessageAddAuthentication(
CFHTTPMessageRef request,
CFHTTPMessageRef _Nullable authenticationFailureResponse,
CFStringRef username,
CFStringRef password,
CFStringRef _Nullable authenticationScheme,
Boolean forProxy) __attribute__((availability(ios,introduced=2_0)));
extern CFIndex
CFHTTPMessageGetResponseStatusCode(CFHTTPMessageRef response) __attribute__((availability(ios,introduced=2_0)));
extern _Nullable CFStringRef
CFHTTPMessageCopyResponseStatusLine(CFHTTPMessageRef response) __attribute__((availability(ios,introduced=2_0)));
#pragma clang assume_nonnull end
}
extern "C" {
#pragma clang assume_nonnull begin
extern const SInt32 kCFStreamErrorDomainHTTP __attribute__((availability(ios,introduced=2_0)));
typedef int CFStreamErrorHTTP; enum {
kCFStreamErrorHTTPParseFailure = -1,
kCFStreamErrorHTTPRedirectionLoop = -2,
kCFStreamErrorHTTPBadURL = -3
};
extern const CFStringRef kCFStreamPropertyHTTPResponseHeader __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSession API for http requests")));
extern const CFStringRef kCFStreamPropertyHTTPFinalURL __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSession API for http requests")));
extern const CFStringRef kCFStreamPropertyHTTPFinalRequest __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSession API for http requests")));
extern const CFStringRef kCFStreamPropertyHTTPProxy __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSession API for http requests")));
extern const CFStringRef kCFStreamPropertyHTTPProxyHost __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSession API for http requests")));
extern const CFStringRef kCFStreamPropertyHTTPProxyPort __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSession API for http requests")));
extern const CFStringRef kCFStreamPropertyHTTPSProxyHost __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSession API for http requests")));
extern const CFStringRef kCFStreamPropertyHTTPSProxyPort __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSession API for http requests")));
extern const CFStringRef kCFStreamPropertyHTTPShouldAutoredirect __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSession API for http requests")));
extern const CFStringRef kCFStreamPropertyHTTPAttemptPersistentConnection __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSession API for http requests")));
extern const CFStringRef kCFStreamPropertyHTTPRequestBytesWrittenCount __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSession API for http requests")));
extern CFReadStreamRef
CFReadStreamCreateForHTTPRequest(CFAllocatorRef _Nullable alloc, CFHTTPMessageRef request) __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSession API for http requests")));
extern CFReadStreamRef
CFReadStreamCreateForStreamedHTTPRequest(CFAllocatorRef _Nullable alloc, CFHTTPMessageRef requestHeaders, CFReadStreamRef requestBody) __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSession API for http requests")));
#pragma clang assume_nonnull end
}
extern "C" {
#pragma clang assume_nonnull begin
typedef struct _CFHTTPAuthentication* CFHTTPAuthenticationRef;
typedef int CFStreamErrorHTTPAuthentication; enum {
kCFStreamErrorHTTPAuthenticationTypeUnsupported = -1000,
kCFStreamErrorHTTPAuthenticationBadUserName = -1001,
kCFStreamErrorHTTPAuthenticationBadPassword = -1002
};
extern const CFStringRef kCFHTTPAuthenticationUsername __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFHTTPAuthenticationPassword __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFHTTPAuthenticationAccountDomain __attribute__((availability(ios,introduced=2_0)));
extern CFTypeID
CFHTTPAuthenticationGetTypeID(void) __attribute__((availability(ios,introduced=2_0)));
extern CFHTTPAuthenticationRef
CFHTTPAuthenticationCreateFromResponse(CFAllocatorRef _Nullable alloc, CFHTTPMessageRef response) __attribute__((availability(ios,introduced=2_0)));
extern Boolean
CFHTTPAuthenticationIsValid(CFHTTPAuthenticationRef auth, CFStreamError * _Nullable error) __attribute__((availability(ios,introduced=2_0)));
extern Boolean
CFHTTPAuthenticationAppliesToRequest(CFHTTPAuthenticationRef auth, CFHTTPMessageRef request) __attribute__((availability(ios,introduced=2_0)));
extern Boolean
CFHTTPAuthenticationRequiresOrderedRequests(CFHTTPAuthenticationRef auth) __attribute__((availability(ios,introduced=2_0)));
extern Boolean
CFHTTPMessageApplyCredentials(
CFHTTPMessageRef request,
CFHTTPAuthenticationRef auth,
CFStringRef _Nullable username,
CFStringRef _Nullable password,
CFStreamError * _Nullable error) __attribute__((availability(ios,introduced=2_0)));
extern Boolean
CFHTTPMessageApplyCredentialDictionary(
CFHTTPMessageRef request,
CFHTTPAuthenticationRef auth,
CFDictionaryRef dict,
CFStreamError * _Nullable error) __attribute__((availability(ios,introduced=2_0)));
extern CFStringRef
CFHTTPAuthenticationCopyRealm(CFHTTPAuthenticationRef auth) __attribute__((availability(ios,introduced=2_0)));
extern CFArrayRef
CFHTTPAuthenticationCopyDomains(CFHTTPAuthenticationRef auth) __attribute__((availability(ios,introduced=2_0)));
extern CFStringRef
CFHTTPAuthenticationCopyMethod(CFHTTPAuthenticationRef auth) __attribute__((availability(ios,introduced=2_0)));
extern Boolean
CFHTTPAuthenticationRequiresUserNameAndPassword(CFHTTPAuthenticationRef auth) __attribute__((availability(ios,introduced=2_0)));
extern Boolean
CFHTTPAuthenticationRequiresAccountDomain(CFHTTPAuthenticationRef auth) __attribute__((availability(ios,introduced=2_0)));
#pragma clang assume_nonnull end
}
extern "C" {
#pragma clang assume_nonnull begin
typedef struct __CFNetDiagnostic* CFNetDiagnosticRef;
typedef int CFNetDiagnosticStatusValues; enum {
kCFNetDiagnosticNoErr = 0,
kCFNetDiagnosticErr = -66560L,
kCFNetDiagnosticConnectionUp = -66559L,
kCFNetDiagnosticConnectionIndeterminate = -66558L,
kCFNetDiagnosticConnectionDown = -66557L
} __attribute__((availability(ios,introduced=2_0,deprecated=11_0,message="" )));
typedef CFIndex CFNetDiagnosticStatus __attribute__((availability(ios,introduced=2_0,deprecated=11_0,message="" )));
extern CFNetDiagnosticRef
CFNetDiagnosticCreateWithStreams(CFAllocatorRef _Nullable alloc, CFReadStreamRef _Nullable readStream, CFWriteStreamRef _Nullable writeStream) __attribute__((availability(ios,introduced=2_0,deprecated=11_0,message="" )));
extern CFNetDiagnosticRef
CFNetDiagnosticCreateWithURL(CFAllocatorRef alloc, CFURLRef url) __attribute__((availability(ios,introduced=2_0,deprecated=11_0,message="" )));
extern void
CFNetDiagnosticSetName(CFNetDiagnosticRef details, CFStringRef name) __attribute__((availability(ios,introduced=2_0,deprecated=11_0,message="" )));
extern CFNetDiagnosticStatus
CFNetDiagnosticDiagnoseProblemInteractively(CFNetDiagnosticRef details) __attribute__((availability(ios,introduced=2_0,deprecated=11_0,message="" )));
extern CFNetDiagnosticStatus
CFNetDiagnosticCopyNetworkStatusPassively(CFNetDiagnosticRef details, CFStringRef _Nullable * _Nullable description) __attribute__((availability(ios,introduced=2_0,deprecated=11_0,message="" )));
#pragma clang assume_nonnull end
}
extern "C" {
#pragma clang assume_nonnull begin
extern _Nullable CFDictionaryRef
CFNetworkCopySystemProxySettings(void) __attribute__((availability(ios,introduced=2_0)));
extern CFArrayRef
CFNetworkCopyProxiesForURL(CFURLRef url, CFDictionaryRef proxySettings) __attribute__((availability(ios,introduced=2_0)));
typedef void ( * CFProxyAutoConfigurationResultCallback)(void *client, CFArrayRef proxyList, CFErrorRef _Nullable error);
extern _Nullable CFArrayRef
CFNetworkCopyProxiesForAutoConfigurationScript(CFStringRef proxyAutoConfigurationScript, CFURLRef targetURL, CFErrorRef * _Nullable error) __attribute__((availability(ios,introduced=2_0)));
extern CFRunLoopSourceRef
CFNetworkExecuteProxyAutoConfigurationScript(
CFStringRef proxyAutoConfigurationScript,
CFURLRef targetURL,
CFProxyAutoConfigurationResultCallback cb,
CFStreamClientContext * clientContext) __attribute__((availability(ios,introduced=2_0)));
extern CFRunLoopSourceRef
CFNetworkExecuteProxyAutoConfigurationURL(
CFURLRef proxyAutoConfigURL,
CFURLRef targetURL,
CFProxyAutoConfigurationResultCallback cb,
CFStreamClientContext * clientContext) __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFProxyTypeKey __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFProxyHostNameKey __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFProxyPortNumberKey __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFProxyAutoConfigurationURLKey __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFProxyAutoConfigurationJavaScriptKey __attribute__((availability(ios,introduced=3_0)));
extern const CFStringRef kCFProxyUsernameKey __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFProxyPasswordKey __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFProxyTypeNone __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFProxyTypeHTTP __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFProxyTypeHTTPS __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFProxyTypeSOCKS __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFProxyTypeFTP __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFProxyTypeAutoConfigurationURL __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFProxyTypeAutoConfigurationJavaScript __attribute__((availability(ios,introduced=3_0)));
extern const CFStringRef kCFProxyAutoConfigurationHTTPResponseKey __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFNetworkProxiesExceptionsList __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kCFNetworkProxiesExcludeSimpleHostnames __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kCFNetworkProxiesFTPEnable __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kCFNetworkProxiesFTPPassive __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kCFNetworkProxiesFTPPort __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kCFNetworkProxiesFTPProxy __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kCFNetworkProxiesGopherEnable __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kCFNetworkProxiesGopherPort __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kCFNetworkProxiesGopherProxy __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kCFNetworkProxiesHTTPEnable __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFNetworkProxiesHTTPPort __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFNetworkProxiesHTTPProxy __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFNetworkProxiesHTTPSEnable __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kCFNetworkProxiesHTTPSPort __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kCFNetworkProxiesHTTPSProxy __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kCFNetworkProxiesRTSPEnable __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kCFNetworkProxiesRTSPPort __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kCFNetworkProxiesRTSPProxy __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kCFNetworkProxiesSOCKSEnable __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kCFNetworkProxiesSOCKSPort __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kCFNetworkProxiesSOCKSProxy __attribute__((availability(ios,introduced=NA)));
extern const CFStringRef kCFNetworkProxiesProxyAutoConfigEnable __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFNetworkProxiesProxyAutoConfigURLString __attribute__((availability(ios,introduced=2_0)));
extern const CFStringRef kCFNetworkProxiesProxyAutoConfigJavaScript __attribute__((availability(ios,introduced=3_0)));
extern const CFStringRef kCFNetworkProxiesProxyAutoDiscoveryEnable __attribute__((availability(ios,introduced=NA)));
#pragma clang assume_nonnull end
}
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#pragma clang assume_nonnull begin
extern "C" NSErrorDomain const NSURLErrorDomain;
extern "C" NSString * const NSURLErrorFailingURLErrorKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSURLErrorFailingURLStringErrorKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSErrorFailingURLStringKey __attribute__((availability(macos,introduced=10.0,deprecated=10.6,message="Use NSURLErrorFailingURLStringErrorKey instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=4.0,message="Use NSURLErrorFailingURLStringErrorKey instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use NSURLErrorFailingURLStringErrorKey instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use NSURLErrorFailingURLStringErrorKey instead")));
extern "C" NSString * const NSURLErrorFailingURLPeerTrustErrorKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSURLErrorBackgroundTaskCancelledReasonKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
enum
{
NSURLErrorCancelledReasonUserForceQuitApplication = 0,
NSURLErrorCancelledReasonBackgroundUpdatesDisabled = 1,
NSURLErrorCancelledReasonInsufficientSystemResources __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 2,
} __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSErrorUserInfoKey const NSURLErrorNetworkUnavailableReasonKey __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
typedef NSInteger NSURLErrorNetworkUnavailableReason; enum
{
NSURLErrorNetworkUnavailableReasonCellular = 0,
NSURLErrorNetworkUnavailableReasonExpensive = 1,
NSURLErrorNetworkUnavailableReasonConstrained = 2,
} __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
enum
{
NSURLErrorUnknown = -1,
NSURLErrorCancelled = -999,
NSURLErrorBadURL = -1000,
NSURLErrorTimedOut = -1001,
NSURLErrorUnsupportedURL = -1002,
NSURLErrorCannotFindHost = -1003,
NSURLErrorCannotConnectToHost = -1004,
NSURLErrorNetworkConnectionLost = -1005,
NSURLErrorDNSLookupFailed = -1006,
NSURLErrorHTTPTooManyRedirects = -1007,
NSURLErrorResourceUnavailable = -1008,
NSURLErrorNotConnectedToInternet = -1009,
NSURLErrorRedirectToNonExistentLocation = -1010,
NSURLErrorBadServerResponse = -1011,
NSURLErrorUserCancelledAuthentication = -1012,
NSURLErrorUserAuthenticationRequired = -1013,
NSURLErrorZeroByteResource = -1014,
NSURLErrorCannotDecodeRawData = -1015,
NSURLErrorCannotDecodeContentData = -1016,
NSURLErrorCannotParseResponse = -1017,
NSURLErrorAppTransportSecurityRequiresSecureConnection __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = -1022,
NSURLErrorFileDoesNotExist = -1100,
NSURLErrorFileIsDirectory = -1101,
NSURLErrorNoPermissionsToReadFile = -1102,
NSURLErrorDataLengthExceedsMaximum __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = -1103,
NSURLErrorFileOutsideSafeArea __attribute__((availability(macos,introduced=10.12.4))) __attribute__((availability(ios,introduced=10.3))) __attribute__((availability(watchos,introduced=3.2))) __attribute__((availability(tvos,introduced=10.2))) = -1104,
NSURLErrorSecureConnectionFailed = -1200,
NSURLErrorServerCertificateHasBadDate = -1201,
NSURLErrorServerCertificateUntrusted = -1202,
NSURLErrorServerCertificateHasUnknownRoot = -1203,
NSURLErrorServerCertificateNotYetValid = -1204,
NSURLErrorClientCertificateRejected = -1205,
NSURLErrorClientCertificateRequired = -1206,
NSURLErrorCannotLoadFromNetwork = -2000,
NSURLErrorCannotCreateFile = -3000,
NSURLErrorCannotOpenFile = -3001,
NSURLErrorCannotCloseFile = -3002,
NSURLErrorCannotWriteToFile = -3003,
NSURLErrorCannotRemoveFile = -3004,
NSURLErrorCannotMoveFile = -3005,
NSURLErrorDownloadDecodingFailedMidStream = -3006,
NSURLErrorDownloadDecodingFailedToComplete =-3007,
NSURLErrorInternationalRoamingOff __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = -1018,
NSURLErrorCallIsActive __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = -1019,
NSURLErrorDataNotAllowed __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = -1020,
NSURLErrorRequestBodyStreamExhausted __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = -1021,
NSURLErrorBackgroundSessionRequiresSharedContainer __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = -995,
NSURLErrorBackgroundSessionInUseByAnotherProcess __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = -996,
NSURLErrorBackgroundSessionWasDisconnected __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))= -997,
};
#pragma clang assume_nonnull end
// @class NSCachedURLResponse;
#ifndef _REWRITER_typedef_NSCachedURLResponse
#define _REWRITER_typedef_NSCachedURLResponse
typedef struct objc_object NSCachedURLResponse;
typedef struct {} _objc_exc_NSCachedURLResponse;
#endif
// @class NSError;
#ifndef _REWRITER_typedef_NSError
#define _REWRITER_typedef_NSError
typedef struct objc_object NSError;
typedef struct {} _objc_exc_NSError;
#endif
// @class NSMutableURLRequest;
#ifndef _REWRITER_typedef_NSMutableURLRequest
#define _REWRITER_typedef_NSMutableURLRequest
typedef struct objc_object NSMutableURLRequest;
typedef struct {} _objc_exc_NSMutableURLRequest;
#endif
// @class NSURLAuthenticationChallenge;
#ifndef _REWRITER_typedef_NSURLAuthenticationChallenge
#define _REWRITER_typedef_NSURLAuthenticationChallenge
typedef struct objc_object NSURLAuthenticationChallenge;
typedef struct {} _objc_exc_NSURLAuthenticationChallenge;
#endif
// @class NSURLConnection;
#ifndef _REWRITER_typedef_NSURLConnection
#define _REWRITER_typedef_NSURLConnection
typedef struct objc_object NSURLConnection;
typedef struct {} _objc_exc_NSURLConnection;
#endif
// @class NSURLProtocol;
#ifndef _REWRITER_typedef_NSURLProtocol
#define _REWRITER_typedef_NSURLProtocol
typedef struct objc_object NSURLProtocol;
typedef struct {} _objc_exc_NSURLProtocol;
#endif
// @class NSURLProtocolInternal;
#ifndef _REWRITER_typedef_NSURLProtocolInternal
#define _REWRITER_typedef_NSURLProtocolInternal
typedef struct objc_object NSURLProtocolInternal;
typedef struct {} _objc_exc_NSURLProtocolInternal;
#endif
// @class NSURLRequest;
#ifndef _REWRITER_typedef_NSURLRequest
#define _REWRITER_typedef_NSURLRequest
typedef struct objc_object NSURLRequest;
typedef struct {} _objc_exc_NSURLRequest;
#endif
// @class NSURLResponse;
#ifndef _REWRITER_typedef_NSURLResponse
#define _REWRITER_typedef_NSURLResponse
typedef struct objc_object NSURLResponse;
typedef struct {} _objc_exc_NSURLResponse;
#endif
// @class NSURLSessionTask;
#ifndef _REWRITER_typedef_NSURLSessionTask
#define _REWRITER_typedef_NSURLSessionTask
typedef struct objc_object NSURLSessionTask;
typedef struct {} _objc_exc_NSURLSessionTask;
#endif
#pragma clang assume_nonnull begin
// @protocol NSURLProtocolClient <NSObject>
// - (void)URLProtocol:(NSURLProtocol *)protocol wasRedirectedToRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)redirectResponse;
// - (void)URLProtocol:(NSURLProtocol *)protocol cachedResponseIsValid:(NSCachedURLResponse *)cachedResponse;
// - (void)URLProtocol:(NSURLProtocol *)protocol didReceiveResponse:(NSURLResponse *)response cacheStoragePolicy:(NSURLCacheStoragePolicy)policy;
// - (void)URLProtocol:(NSURLProtocol *)protocol didLoadData:(NSData *)data;
// - (void)URLProtocolDidFinishLoading:(NSURLProtocol *)protocol;
// - (void)URLProtocol:(NSURLProtocol *)protocol didFailWithError:(NSError *)error;
// - (void)URLProtocol:(NSURLProtocol *)protocol didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge;
// - (void)URLProtocol:(NSURLProtocol *)protocol didCancelAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge;
/* @end */
#ifndef _REWRITER_typedef_NSURLProtocol
#define _REWRITER_typedef_NSURLProtocol
typedef struct objc_object NSURLProtocol;
typedef struct {} _objc_exc_NSURLProtocol;
#endif
struct NSURLProtocol_IMPL {
struct NSObject_IMPL NSObject_IVARS;
NSURLProtocolInternal *_internal;
};
// - (instancetype)initWithRequest:(NSURLRequest *)request cachedResponse:(nullable NSCachedURLResponse *)cachedResponse client:(nullable id <NSURLProtocolClient>)client __attribute__((objc_designated_initializer));
// @property (nullable, readonly, retain) id <NSURLProtocolClient> client;
// @property (readonly, copy) NSURLRequest *request;
// @property (nullable, readonly, copy) NSCachedURLResponse *cachedResponse;
// + (BOOL)canInitWithRequest:(NSURLRequest *)request;
// + (NSURLRequest *)canonicalRequestForRequest:(NSURLRequest *)request;
// + (BOOL)requestIsCacheEquivalent:(NSURLRequest *)a toRequest:(NSURLRequest *)b;
// - (void)startLoading;
// - (void)stopLoading;
// + (nullable id)propertyForKey:(NSString *)key inRequest:(NSURLRequest *)request;
// + (void)setProperty:(id)value forKey:(NSString *)key inRequest:(NSMutableURLRequest *)request;
// + (void)removePropertyForKey:(NSString *)key inRequest:(NSMutableURLRequest *)request;
// + (BOOL)registerClass:(Class)protocolClass;
// + (void)unregisterClass:(Class)protocolClass;
/* @end */
// @interface NSURLProtocol (NSURLSessionTaskAdditions)
// + (BOOL)canInitWithTask:(NSURLSessionTask *)task __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (instancetype)initWithTask:(NSURLSessionTask *)task cachedResponse:(nullable NSCachedURLResponse *)cachedResponse client:(nullable id <NSURLProtocolClient>)client __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) NSURLSessionTask *task __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
#pragma clang assume_nonnull end
// @class NSData;
#ifndef _REWRITER_typedef_NSData
#define _REWRITER_typedef_NSData
typedef struct objc_object NSData;
typedef struct {} _objc_exc_NSData;
#endif
// @class NSDictionary;
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
// @class NSInputStream;
#ifndef _REWRITER_typedef_NSInputStream
#define _REWRITER_typedef_NSInputStream
typedef struct objc_object NSInputStream;
typedef struct {} _objc_exc_NSInputStream;
#endif
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
// @class NSURL;
#ifndef _REWRITER_typedef_NSURL
#define _REWRITER_typedef_NSURL
typedef struct objc_object NSURL;
typedef struct {} _objc_exc_NSURL;
#endif
// @class NSURLRequestInternal;
#ifndef _REWRITER_typedef_NSURLRequestInternal
#define _REWRITER_typedef_NSURLRequestInternal
typedef struct objc_object NSURLRequestInternal;
typedef struct {} _objc_exc_NSURLRequestInternal;
#endif
#pragma clang assume_nonnull begin
typedef NSUInteger NSURLRequestCachePolicy; enum
{
NSURLRequestUseProtocolCachePolicy = 0,
NSURLRequestReloadIgnoringLocalCacheData = 1,
NSURLRequestReloadIgnoringLocalAndRemoteCacheData = 4,
NSURLRequestReloadIgnoringCacheData = NSURLRequestReloadIgnoringLocalCacheData,
NSURLRequestReturnCacheDataElseLoad = 2,
NSURLRequestReturnCacheDataDontLoad = 3,
NSURLRequestReloadRevalidatingCacheData = 5,
};
typedef NSUInteger NSURLRequestNetworkServiceType; enum
{
NSURLNetworkServiceTypeDefault = 0,
NSURLNetworkServiceTypeVoIP __attribute__((availability(macos,introduced=10.7,deprecated=10.15,message="Use PushKit for VoIP control purposes"))) __attribute__((availability(ios,introduced=4.0,deprecated=13.0,message="Use PushKit for VoIP control purposes"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Use PushKit for VoIP control purposes"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Use PushKit for VoIP control purposes"))) = 1,
NSURLNetworkServiceTypeVideo = 2,
NSURLNetworkServiceTypeBackground = 3,
NSURLNetworkServiceTypeVoice = 4,
NSURLNetworkServiceTypeResponsiveData = 6,
NSURLNetworkServiceTypeAVStreaming __attribute__((availability(macosx,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 8 ,
NSURLNetworkServiceTypeResponsiveAV __attribute__((availability(macosx,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 9,
NSURLNetworkServiceTypeCallSignaling __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = 11,
};
#ifndef _REWRITER_typedef_NSURLRequest
#define _REWRITER_typedef_NSURLRequest
typedef struct objc_object NSURLRequest;
typedef struct {} _objc_exc_NSURLRequest;
#endif
struct NSURLRequest_IMPL {
struct NSObject_IMPL NSObject_IVARS;
NSURLRequestInternal *_internal;
};
// + (instancetype)requestWithURL:(NSURL *)URL;
@property (class, readonly) BOOL supportsSecureCoding;
// + (instancetype)requestWithURL:(NSURL *)URL cachePolicy:(NSURLRequestCachePolicy)cachePolicy timeoutInterval:(NSTimeInterval)timeoutInterval;
// - (instancetype)initWithURL:(NSURL *)URL;
// - (instancetype)initWithURL:(NSURL *)URL cachePolicy:(NSURLRequestCachePolicy)cachePolicy timeoutInterval:(NSTimeInterval)timeoutInterval __attribute__((objc_designated_initializer));
// @property (nullable, readonly, copy) NSURL *URL;
// @property (readonly) NSURLRequestCachePolicy cachePolicy;
// @property (readonly) NSTimeInterval timeoutInterval;
// @property (nullable, readonly, copy) NSURL *mainDocumentURL;
// @property (readonly) NSURLRequestNetworkServiceType networkServiceType __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly) BOOL allowsCellularAccess __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly) BOOL allowsExpensiveNetworkAccess __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// @property (readonly) BOOL allowsConstrainedNetworkAccess __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
/* @end */
#ifndef _REWRITER_typedef_NSMutableURLRequest
#define _REWRITER_typedef_NSMutableURLRequest
typedef struct objc_object NSMutableURLRequest;
typedef struct {} _objc_exc_NSMutableURLRequest;
#endif
struct NSMutableURLRequest_IMPL {
struct NSURLRequest_IMPL NSURLRequest_IVARS;
};
// @property (nullable, copy) NSURL *URL;
// @property NSURLRequestCachePolicy cachePolicy;
// @property NSTimeInterval timeoutInterval;
// @property (nullable, copy) NSURL *mainDocumentURL;
// @property NSURLRequestNetworkServiceType networkServiceType __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property BOOL allowsCellularAccess __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property BOOL allowsExpensiveNetworkAccess __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// @property BOOL allowsConstrainedNetworkAccess __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
/* @end */
// @interface NSURLRequest (NSHTTPURLRequest)
// @property (nullable, readonly, copy) NSString *HTTPMethod;
// @property (nullable, readonly, copy) NSDictionary<NSString *, NSString *> *allHTTPHeaderFields;
// - (nullable NSString *)valueForHTTPHeaderField:(NSString *)field;
// @property (nullable, readonly, copy) NSData *HTTPBody;
// @property (nullable, readonly, retain) NSInputStream *HTTPBodyStream;
// @property (readonly) BOOL HTTPShouldHandleCookies;
// @property (readonly) BOOL HTTPShouldUsePipelining __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSMutableURLRequest (NSMutableHTTPURLRequest)
// @property (copy) NSString *HTTPMethod;
// @property (nullable, copy) NSDictionary<NSString *, NSString *> *allHTTPHeaderFields;
// - (void)setValue:(nullable NSString *)value forHTTPHeaderField:(NSString *)field;
// - (void)addValue:(NSString *)value forHTTPHeaderField:(NSString *)field;
// @property (nullable, copy) NSData *HTTPBody;
// @property (nullable, retain) NSInputStream *HTTPBodyStream;
// @property BOOL HTTPShouldHandleCookies;
// @property BOOL HTTPShouldUsePipelining __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
#pragma clang assume_nonnull end
// @class NSDictionary;
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
// @class NSURL;
#ifndef _REWRITER_typedef_NSURL
#define _REWRITER_typedef_NSURL
typedef struct objc_object NSURL;
typedef struct {} _objc_exc_NSURL;
#endif
// @class NSURLRequest;
#ifndef _REWRITER_typedef_NSURLRequest
#define _REWRITER_typedef_NSURLRequest
typedef struct objc_object NSURLRequest;
typedef struct {} _objc_exc_NSURLRequest;
#endif
// @class NSURLResponseInternal;
#ifndef _REWRITER_typedef_NSURLResponseInternal
#define _REWRITER_typedef_NSURLResponseInternal
typedef struct objc_object NSURLResponseInternal;
typedef struct {} _objc_exc_NSURLResponseInternal;
#endif
#pragma clang assume_nonnull begin
#ifndef _REWRITER_typedef_NSURLResponse
#define _REWRITER_typedef_NSURLResponse
typedef struct objc_object NSURLResponse;
typedef struct {} _objc_exc_NSURLResponse;
#endif
struct NSURLResponse_IMPL {
struct NSObject_IMPL NSObject_IVARS;
NSURLResponseInternal *_internal;
};
// - (instancetype)initWithURL:(NSURL *)URL MIMEType:(nullable NSString *)MIMEType expectedContentLength:(NSInteger)length textEncodingName:(nullable NSString *)name __attribute__((objc_designated_initializer));
// @property (nullable, readonly, copy) NSURL *URL;
// @property (nullable, readonly, copy) NSString *MIMEType;
// @property (readonly) long long expectedContentLength;
// @property (nullable, readonly, copy) NSString *textEncodingName;
// @property (nullable, readonly, copy) NSString *suggestedFilename;
/* @end */
// @class NSHTTPURLResponseInternal;
#ifndef _REWRITER_typedef_NSHTTPURLResponseInternal
#define _REWRITER_typedef_NSHTTPURLResponseInternal
typedef struct objc_object NSHTTPURLResponseInternal;
typedef struct {} _objc_exc_NSHTTPURLResponseInternal;
#endif
#ifndef _REWRITER_typedef_NSHTTPURLResponse
#define _REWRITER_typedef_NSHTTPURLResponse
typedef struct objc_object NSHTTPURLResponse;
typedef struct {} _objc_exc_NSHTTPURLResponse;
#endif
struct NSHTTPURLResponse_IMPL {
struct NSURLResponse_IMPL NSURLResponse_IVARS;
NSHTTPURLResponseInternal *_httpInternal;
};
// - (nullable instancetype)initWithURL:(NSURL *)url statusCode:(NSInteger)statusCode HTTPVersion:(nullable NSString *)HTTPVersion headerFields:(nullable NSDictionary<NSString *, NSString *> *)headerFields __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly) NSInteger statusCode;
// @property (readonly, copy) NSDictionary *allHeaderFields;
// - (nullable NSString *)valueForHTTPHeaderField:(NSString *)field __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// + (NSString *)localizedStringForStatusCode:(NSInteger)statusCode;
/* @end */
#pragma clang assume_nonnull end
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSData
#define _REWRITER_typedef_NSData
typedef struct objc_object NSData;
typedef struct {} _objc_exc_NSData;
#endif
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
#ifndef _REWRITER_typedef_NSMutableDictionary
#define _REWRITER_typedef_NSMutableDictionary
typedef struct objc_object NSMutableDictionary;
typedef struct {} _objc_exc_NSMutableDictionary;
#endif
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#ifndef _REWRITER_typedef_NSURL
#define _REWRITER_typedef_NSURL
typedef struct objc_object NSURL;
typedef struct {} _objc_exc_NSURL;
#endif
#pragma clang assume_nonnull begin
extern "C" NSString * const NSGlobalDomain;
extern "C" NSString * const NSArgumentDomain;
extern "C" NSString * const NSRegistrationDomain;
#ifndef _REWRITER_typedef_NSUserDefaults
#define _REWRITER_typedef_NSUserDefaults
typedef struct objc_object NSUserDefaults;
typedef struct {} _objc_exc_NSUserDefaults;
#endif
struct NSUserDefaults_IMPL {
struct NSObject_IMPL NSObject_IVARS;
id _kvo_;
CFStringRef _identifier_;
CFStringRef _container_;
void *_reserved[2];
};
@property (class, readonly, strong) NSUserDefaults *standardUserDefaults;
// + (void)resetStandardUserDefaults;
// - (instancetype)init;
// - (nullable instancetype)initWithSuiteName:(nullable NSString *)suitename __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((objc_designated_initializer));
// - (nullable id)initWithUser:(NSString *)username __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Use -init instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Use -init instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -init instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -init instead")));
// - (nullable id)objectForKey:(NSString *)defaultName;
// - (void)setObject:(nullable id)value forKey:(NSString *)defaultName;
// - (void)removeObjectForKey:(NSString *)defaultName;
// - (nullable NSString *)stringForKey:(NSString *)defaultName;
// - (nullable NSArray *)arrayForKey:(NSString *)defaultName;
// - (nullable NSDictionary<NSString *, id> *)dictionaryForKey:(NSString *)defaultName;
// - (nullable NSData *)dataForKey:(NSString *)defaultName;
// - (nullable NSArray<NSString *> *)stringArrayForKey:(NSString *)defaultName;
// - (NSInteger)integerForKey:(NSString *)defaultName;
// - (float)floatForKey:(NSString *)defaultName;
// - (double)doubleForKey:(NSString *)defaultName;
// - (BOOL)boolForKey:(NSString *)defaultName;
// - (nullable NSURL *)URLForKey:(NSString *)defaultName __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)setInteger:(NSInteger)value forKey:(NSString *)defaultName;
// - (void)setFloat:(float)value forKey:(NSString *)defaultName;
// - (void)setDouble:(double)value forKey:(NSString *)defaultName;
// - (void)setBool:(BOOL)value forKey:(NSString *)defaultName;
// - (void)setURL:(nullable NSURL *)url forKey:(NSString *)defaultName __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)registerDefaults:(NSDictionary<NSString *, id> *)registrationDictionary;
// - (void)addSuiteNamed:(NSString *)suiteName;
// - (void)removeSuiteNamed:(NSString *)suiteName;
// - (NSDictionary<NSString *, id> *)dictionaryRepresentation;
// @property (readonly, copy) NSArray<NSString *> *volatileDomainNames;
// - (NSDictionary<NSString *, id> *)volatileDomainForName:(NSString *)domainName;
// - (void)setVolatileDomain:(NSDictionary<NSString *, id> *)domain forName:(NSString *)domainName;
// - (void)removeVolatileDomainForName:(NSString *)domainName;
// - (NSArray *)persistentDomainNames __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Not recommended"))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Not recommended"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Not recommended"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Not recommended")));
// - (nullable NSDictionary<NSString *, id> *)persistentDomainForName:(NSString *)domainName;
// - (void)setPersistentDomain:(NSDictionary<NSString *, id> *)domain forName:(NSString *)domainName;
// - (void)removePersistentDomainForName:(NSString *)domainName;
// - (BOOL)synchronize;
// - (BOOL)objectIsForcedForKey:(NSString *)key;
// - (BOOL)objectIsForcedForKey:(NSString *)key inDomain:(NSString *)domain;
/* @end */
extern "C" NSNotificationName const NSUserDefaultsSizeLimitExceededNotification __attribute__((availability(ios,introduced=9.3))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
extern "C" NSNotificationName const NSUbiquitousUserDefaultsNoCloudAccountNotification __attribute__((availability(ios,introduced=9.3))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
extern "C" NSNotificationName const NSUbiquitousUserDefaultsDidChangeAccountsNotification __attribute__((availability(ios,introduced=9.3))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
extern "C" NSNotificationName const NSUbiquitousUserDefaultsCompletedInitialSyncNotification __attribute__((availability(ios,introduced=9.3))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
extern "C" NSNotificationName const NSUserDefaultsDidChangeNotification;
#pragma clang assume_nonnull end
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#pragma clang assume_nonnull begin
typedef NSString *NSValueTransformerName __attribute__((swift_wrapper(struct)));
extern "C" NSValueTransformerName const NSNegateBooleanTransformerName __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSValueTransformerName const NSIsNilTransformerName __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSValueTransformerName const NSIsNotNilTransformerName __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSValueTransformerName const NSUnarchiveFromDataTransformerName __attribute__((availability(macos,introduced=10.3,deprecated=10.14,replacement="NSSecureUnarchiveFromDataTransformerName"))) __attribute__((availability(ios,introduced=3.0,deprecated=12.0,replacement="NSSecureUnarchiveFromDataTransformerName"))) __attribute__((availability(watchos,introduced=2.0,deprecated=5.0,replacement="NSSecureUnarchiveFromDataTransformerName"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,replacement="NSSecureUnarchiveFromDataTransformerName")));
extern "C" NSValueTransformerName const NSKeyedUnarchiveFromDataTransformerName __attribute__((availability(macos,introduced=10.3,deprecated=10.14,replacement="NSSecureUnarchiveFromDataTransformerName"))) __attribute__((availability(ios,introduced=3.0,deprecated=12.0,replacement="NSSecureUnarchiveFromDataTransformerName"))) __attribute__((availability(watchos,introduced=2.0,deprecated=5.0,replacement="NSSecureUnarchiveFromDataTransformerName"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,replacement="NSSecureUnarchiveFromDataTransformerName")));
extern "C" NSValueTransformerName const NSSecureUnarchiveFromDataTransformerName __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)));
__attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSValueTransformer
#define _REWRITER_typedef_NSValueTransformer
typedef struct objc_object NSValueTransformer;
typedef struct {} _objc_exc_NSValueTransformer;
#endif
struct NSValueTransformer_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// + (void)setValueTransformer:(nullable NSValueTransformer *)transformer forName:(NSValueTransformerName)name;
// + (nullable NSValueTransformer *)valueTransformerForName:(NSValueTransformerName)name;
// + (NSArray<NSValueTransformerName> *)valueTransformerNames;
// + (Class)transformedValueClass;
// + (BOOL)allowsReverseTransformation;
// - (nullable id)transformedValue:(nullable id)value;
// - (nullable id)reverseTransformedValue:(nullable id)value;
/* @end */
__attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0)))
#ifndef _REWRITER_typedef_NSSecureUnarchiveFromDataTransformer
#define _REWRITER_typedef_NSSecureUnarchiveFromDataTransformer
typedef struct objc_object NSSecureUnarchiveFromDataTransformer;
typedef struct {} _objc_exc_NSSecureUnarchiveFromDataTransformer;
#endif
struct NSSecureUnarchiveFromDataTransformer_IMPL {
struct NSValueTransformer_IMPL NSValueTransformer_IVARS;
};
@property (class, readonly, copy) NSArray<Class> *allowedTopLevelClasses;
/* @end */
#pragma clang assume_nonnull end
// @class NSData;
#ifndef _REWRITER_typedef_NSData
#define _REWRITER_typedef_NSData
typedef struct objc_object NSData;
typedef struct {} _objc_exc_NSData;
#endif
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
#ifndef _REWRITER_typedef_NSError
#define _REWRITER_typedef_NSError
typedef struct objc_object NSError;
typedef struct {} _objc_exc_NSError;
#endif
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#ifndef _REWRITER_typedef_NSURL
#define _REWRITER_typedef_NSURL
typedef struct objc_object NSURL;
typedef struct {} _objc_exc_NSURL;
#endif
#ifndef _REWRITER_typedef_NSInputStream
#define _REWRITER_typedef_NSInputStream
typedef struct objc_object NSInputStream;
typedef struct {} _objc_exc_NSInputStream;
#endif
#ifndef _REWRITER_typedef_NSSet
#define _REWRITER_typedef_NSSet
typedef struct objc_object NSSet;
typedef struct {} _objc_exc_NSSet;
#endif
// @protocol NSXMLParserDelegate;
#pragma clang assume_nonnull begin
__attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
typedef NSUInteger NSXMLParserExternalEntityResolvingPolicy; enum {
NSXMLParserResolveExternalEntitiesNever = 0,
NSXMLParserResolveExternalEntitiesNoNetwork,
NSXMLParserResolveExternalEntitiesSameOriginOnly,
NSXMLParserResolveExternalEntitiesAlways
};
#ifndef _REWRITER_typedef_NSXMLParser
#define _REWRITER_typedef_NSXMLParser
typedef struct objc_object NSXMLParser;
typedef struct {} _objc_exc_NSXMLParser;
#endif
struct NSXMLParser_IMPL {
struct NSObject_IMPL NSObject_IVARS;
id _reserved0;
id _delegate;
id _reserved1;
id _reserved2;
id _reserved3;
};
// - (nullable instancetype)initWithContentsOfURL:(NSURL *)url;
// - (instancetype)initWithData:(NSData *)data __attribute__((objc_designated_initializer));
// - (instancetype)initWithStream:(NSInputStream *)stream __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, assign) id <NSXMLParserDelegate> delegate;
// @property BOOL shouldProcessNamespaces;
// @property BOOL shouldReportNamespacePrefixes;
// @property NSXMLParserExternalEntityResolvingPolicy externalEntityResolvingPolicy __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, copy) NSSet<NSURL *> *allowedExternalEntityURLs __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)parse;
// - (void)abortParsing;
// @property (nullable, readonly, copy) NSError *parserError;
// @property BOOL shouldResolveExternalEntities;
/* @end */
// @interface NSXMLParser (NSXMLParserLocatorAdditions)
// @property (nullable, readonly, copy) NSString *publicID;
// @property (nullable, readonly, copy) NSString *systemID;
// @property (readonly) NSInteger lineNumber;
// @property (readonly) NSInteger columnNumber;
/* @end */
// @protocol NSXMLParserDelegate <NSObject>
/* @optional */
// - (void)parserDidStartDocument:(NSXMLParser *)parser;
// - (void)parserDidEndDocument:(NSXMLParser *)parser;
// - (void)parser:(NSXMLParser *)parser foundNotationDeclarationWithName:(NSString *)name publicID:(nullable NSString *)publicID systemID:(nullable NSString *)systemID;
// - (void)parser:(NSXMLParser *)parser foundUnparsedEntityDeclarationWithName:(NSString *)name publicID:(nullable NSString *)publicID systemID:(nullable NSString *)systemID notationName:(nullable NSString *)notationName;
// - (void)parser:(NSXMLParser *)parser foundAttributeDeclarationWithName:(NSString *)attributeName forElement:(NSString *)elementName type:(nullable NSString *)type defaultValue:(nullable NSString *)defaultValue;
// - (void)parser:(NSXMLParser *)parser foundElementDeclarationWithName:(NSString *)elementName model:(NSString *)model;
// - (void)parser:(NSXMLParser *)parser foundInternalEntityDeclarationWithName:(NSString *)name value:(nullable NSString *)value;
// - (void)parser:(NSXMLParser *)parser foundExternalEntityDeclarationWithName:(NSString *)name publicID:(nullable NSString *)publicID systemID:(nullable NSString *)systemID;
// - (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(nullable NSString *)namespaceURI qualifiedName:(nullable NSString *)qName attributes:(NSDictionary<NSString *, NSString *> *)attributeDict;
// - (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(nullable NSString *)namespaceURI qualifiedName:(nullable NSString *)qName;
// - (void)parser:(NSXMLParser *)parser didStartMappingPrefix:(NSString *)prefix toURI:(NSString *)namespaceURI;
// - (void)parser:(NSXMLParser *)parser didEndMappingPrefix:(NSString *)prefix;
// - (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string;
// - (void)parser:(NSXMLParser *)parser foundIgnorableWhitespace:(NSString *)whitespaceString;
// - (void)parser:(NSXMLParser *)parser foundProcessingInstructionWithTarget:(NSString *)target data:(nullable NSString *)data;
// - (void)parser:(NSXMLParser *)parser foundComment:(NSString *)comment;
// - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock;
// - (nullable NSData *)parser:(NSXMLParser *)parser resolveExternalEntityName:(NSString *)name systemID:(nullable NSString *)systemID;
// - (void)parser:(NSXMLParser *)parser parseErrorOccurred:(NSError *)parseError;
// - (void)parser:(NSXMLParser *)parser validationErrorOccurred:(NSError *)validationError;
/* @end */
extern "C" NSErrorDomain const NSXMLParserErrorDomain __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef NSInteger NSXMLParserError; enum {
NSXMLParserInternalError = 1,
NSXMLParserOutOfMemoryError = 2,
NSXMLParserDocumentStartError = 3,
NSXMLParserEmptyDocumentError = 4,
NSXMLParserPrematureDocumentEndError = 5,
NSXMLParserInvalidHexCharacterRefError = 6,
NSXMLParserInvalidDecimalCharacterRefError = 7,
NSXMLParserInvalidCharacterRefError = 8,
NSXMLParserInvalidCharacterError = 9,
NSXMLParserCharacterRefAtEOFError = 10,
NSXMLParserCharacterRefInPrologError = 11,
NSXMLParserCharacterRefInEpilogError = 12,
NSXMLParserCharacterRefInDTDError = 13,
NSXMLParserEntityRefAtEOFError = 14,
NSXMLParserEntityRefInPrologError = 15,
NSXMLParserEntityRefInEpilogError = 16,
NSXMLParserEntityRefInDTDError = 17,
NSXMLParserParsedEntityRefAtEOFError = 18,
NSXMLParserParsedEntityRefInPrologError = 19,
NSXMLParserParsedEntityRefInEpilogError = 20,
NSXMLParserParsedEntityRefInInternalSubsetError = 21,
NSXMLParserEntityReferenceWithoutNameError = 22,
NSXMLParserEntityReferenceMissingSemiError = 23,
NSXMLParserParsedEntityRefNoNameError = 24,
NSXMLParserParsedEntityRefMissingSemiError = 25,
NSXMLParserUndeclaredEntityError = 26,
NSXMLParserUnparsedEntityError = 28,
NSXMLParserEntityIsExternalError = 29,
NSXMLParserEntityIsParameterError = 30,
NSXMLParserUnknownEncodingError = 31,
NSXMLParserEncodingNotSupportedError = 32,
NSXMLParserStringNotStartedError = 33,
NSXMLParserStringNotClosedError = 34,
NSXMLParserNamespaceDeclarationError = 35,
NSXMLParserEntityNotStartedError = 36,
NSXMLParserEntityNotFinishedError = 37,
NSXMLParserLessThanSymbolInAttributeError = 38,
NSXMLParserAttributeNotStartedError = 39,
NSXMLParserAttributeNotFinishedError = 40,
NSXMLParserAttributeHasNoValueError = 41,
NSXMLParserAttributeRedefinedError = 42,
NSXMLParserLiteralNotStartedError = 43,
NSXMLParserLiteralNotFinishedError = 44,
NSXMLParserCommentNotFinishedError = 45,
NSXMLParserProcessingInstructionNotStartedError = 46,
NSXMLParserProcessingInstructionNotFinishedError = 47,
NSXMLParserNotationNotStartedError = 48,
NSXMLParserNotationNotFinishedError = 49,
NSXMLParserAttributeListNotStartedError = 50,
NSXMLParserAttributeListNotFinishedError = 51,
NSXMLParserMixedContentDeclNotStartedError = 52,
NSXMLParserMixedContentDeclNotFinishedError = 53,
NSXMLParserElementContentDeclNotStartedError = 54,
NSXMLParserElementContentDeclNotFinishedError = 55,
NSXMLParserXMLDeclNotStartedError = 56,
NSXMLParserXMLDeclNotFinishedError = 57,
NSXMLParserConditionalSectionNotStartedError = 58,
NSXMLParserConditionalSectionNotFinishedError = 59,
NSXMLParserExternalSubsetNotFinishedError = 60,
NSXMLParserDOCTYPEDeclNotFinishedError = 61,
NSXMLParserMisplacedCDATAEndStringError = 62,
NSXMLParserCDATANotFinishedError = 63,
NSXMLParserMisplacedXMLDeclarationError = 64,
NSXMLParserSpaceRequiredError = 65,
NSXMLParserSeparatorRequiredError = 66,
NSXMLParserNMTOKENRequiredError = 67,
NSXMLParserNAMERequiredError = 68,
NSXMLParserPCDATARequiredError = 69,
NSXMLParserURIRequiredError = 70,
NSXMLParserPublicIdentifierRequiredError = 71,
NSXMLParserLTRequiredError = 72,
NSXMLParserGTRequiredError = 73,
NSXMLParserLTSlashRequiredError = 74,
NSXMLParserEqualExpectedError = 75,
NSXMLParserTagNameMismatchError = 76,
NSXMLParserUnfinishedTagError = 77,
NSXMLParserStandaloneValueError = 78,
NSXMLParserInvalidEncodingNameError = 79,
NSXMLParserCommentContainsDoubleHyphenError = 80,
NSXMLParserInvalidEncodingError = 81,
NSXMLParserExternalStandaloneEntityError = 82,
NSXMLParserInvalidConditionalSectionError = 83,
NSXMLParserEntityValueRequiredError = 84,
NSXMLParserNotWellBalancedError = 85,
NSXMLParserExtraContentError = 86,
NSXMLParserInvalidCharacterInEntityError = 87,
NSXMLParserParsedEntityRefInInternalError = 88,
NSXMLParserEntityRefLoopError = 89,
NSXMLParserEntityBoundaryError = 90,
NSXMLParserInvalidURIError = 91,
NSXMLParserURIFragmentError = 92,
NSXMLParserNoDTDError = 94,
NSXMLParserDelegateAbortedParseError = 512
};
#pragma clang assume_nonnull end
extern "C" {
typedef uid_t au_id_t;
typedef pid_t au_asid_t;
typedef u_int16_t au_event_t;
typedef u_int16_t au_emod_t;
typedef u_int32_t au_class_t;
typedef u_int64_t au_asflgs_t __attribute__ ((aligned(8)));
typedef unsigned char au_ctlmode_t;
struct au_tid {
dev_t port;
u_int32_t machine;
};
typedef struct au_tid au_tid_t;
struct au_tid_addr {
dev_t at_port;
u_int32_t at_type;
u_int32_t at_addr[4];
};
typedef struct au_tid_addr au_tid_addr_t;
struct au_mask {
unsigned int am_success;
unsigned int am_failure;
};
typedef struct au_mask au_mask_t;
struct auditinfo {
au_id_t ai_auid;
au_mask_t ai_mask;
au_tid_t ai_termid;
au_asid_t ai_asid;
};
typedef struct auditinfo auditinfo_t;
struct auditinfo_addr {
au_id_t ai_auid;
au_mask_t ai_mask;
au_tid_addr_t ai_termid;
au_asid_t ai_asid;
au_asflgs_t ai_flags;
};
typedef struct auditinfo_addr auditinfo_addr_t;
struct auditpinfo {
pid_t ap_pid;
au_id_t ap_auid;
au_mask_t ap_mask;
au_tid_t ap_termid;
au_asid_t ap_asid;
};
typedef struct auditpinfo auditpinfo_t;
struct auditpinfo_addr {
pid_t ap_pid;
au_id_t ap_auid;
au_mask_t ap_mask;
au_tid_addr_t ap_termid;
au_asid_t ap_asid;
au_asflgs_t ap_flags;
};
typedef struct auditpinfo_addr auditpinfo_addr_t;
struct au_session {
auditinfo_addr_t *as_aia_p;
au_mask_t as_mask;
};
typedef struct au_session au_session_t;
struct au_expire_after {
time_t age;
size_t size;
unsigned char op_type;
};
typedef struct au_expire_after au_expire_after_t;
typedef struct au_token token_t;
struct au_qctrl {
int aq_hiwater;
int aq_lowater;
int aq_bufsz;
int aq_delay;
int aq_minfree;
};
typedef struct au_qctrl au_qctrl_t;
struct audit_stat {
unsigned int as_version;
unsigned int as_numevent;
int as_generated;
int as_nonattrib;
int as_kernel;
int as_audit;
int as_auditctl;
int as_enqueue;
int as_written;
int as_wblocked;
int as_rblocked;
int as_dropped;
int as_totalsize;
unsigned int as_memused;
};
typedef struct audit_stat au_stat_t;
struct audit_fstat {
u_int64_t af_filesz;
u_int64_t af_currsz;
};
typedef struct audit_fstat au_fstat_t;
struct au_evclass_map {
au_event_t ec_number;
au_class_t ec_class;
};
typedef struct au_evclass_map au_evclass_map_t;
int audit(const void *, int);
int auditon(int, void *, int);
int auditctl(const char *);
int getauid(au_id_t *);
int setauid(const au_id_t *);
int getaudit_addr(struct auditinfo_addr *, int);
int setaudit_addr(const struct auditinfo_addr *, int);
int getaudit(struct auditinfo *)
__attribute__((availability(ios,introduced=2.0,deprecated=6.0)));
int setaudit(const struct auditinfo *)
__attribute__((availability(ios,introduced=2.0,deprecated=6.0)));
mach_port_name_t audit_session_self(void);
au_asid_t audit_session_join(mach_port_name_t port);
int audit_session_port(au_asid_t asid, mach_port_name_t *portname);
}
// @class NSMutableDictionary;
#ifndef _REWRITER_typedef_NSMutableDictionary
#define _REWRITER_typedef_NSMutableDictionary
typedef struct objc_object NSMutableDictionary;
typedef struct {} _objc_exc_NSMutableDictionary;
#endif
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#ifndef _REWRITER_typedef_NSOperationQueue
#define _REWRITER_typedef_NSOperationQueue
typedef struct objc_object NSOperationQueue;
typedef struct {} _objc_exc_NSOperationQueue;
#endif
#ifndef _REWRITER_typedef_NSSet
#define _REWRITER_typedef_NSSet
typedef struct objc_object NSSet;
typedef struct {} _objc_exc_NSSet;
#endif
#ifndef _REWRITER_typedef_NSLock
#define _REWRITER_typedef_NSLock
typedef struct objc_object NSLock;
typedef struct {} _objc_exc_NSLock;
#endif
#ifndef _REWRITER_typedef_NSError
#define _REWRITER_typedef_NSError
typedef struct objc_object NSError;
typedef struct {} _objc_exc_NSError;
#endif
// @class NSXPCConnection;
#ifndef _REWRITER_typedef_NSXPCConnection
#define _REWRITER_typedef_NSXPCConnection
typedef struct objc_object NSXPCConnection;
typedef struct {} _objc_exc_NSXPCConnection;
#endif
#ifndef _REWRITER_typedef_NSXPCListener
#define _REWRITER_typedef_NSXPCListener
typedef struct objc_object NSXPCListener;
typedef struct {} _objc_exc_NSXPCListener;
#endif
#ifndef _REWRITER_typedef_NSXPCInterface
#define _REWRITER_typedef_NSXPCInterface
typedef struct objc_object NSXPCInterface;
typedef struct {} _objc_exc_NSXPCInterface;
#endif
#ifndef _REWRITER_typedef_NSXPCListenerEndpoint
#define _REWRITER_typedef_NSXPCListenerEndpoint
typedef struct objc_object NSXPCListenerEndpoint;
typedef struct {} _objc_exc_NSXPCListenerEndpoint;
#endif
// @protocol NSXPCListenerDelegate;
#pragma clang assume_nonnull begin
// @protocol NSXPCProxyCreating
// - (id)remoteObjectProxy;
// - (id)remoteObjectProxyWithErrorHandler:(void (^)(NSError *error))handler;
/* @optional */
// - (id)synchronousRemoteObjectProxyWithErrorHandler:(void (^)(NSError *error))handler __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
typedef NSUInteger NSXPCConnectionOptions; enum {
NSXPCConnectionPrivileged = (1 << 12UL)
} __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
__attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSXPCConnection
#define _REWRITER_typedef_NSXPCConnection
typedef struct objc_object NSXPCConnection;
typedef struct {} _objc_exc_NSXPCConnection;
#endif
struct NSXPCConnection_IMPL {
struct NSObject_IMPL NSObject_IVARS;
void *_xconnection;
id _repliesExpected;
dispatch_queue_t _userQueue;
uint32_t _state;
uint32_t _state2;
void (*_interruptionHandler)();
void (*_invalidationHandler)();
id _exportInfo;
id _repliesRequested;
id _importInfo;
id _otherInfo;
id _reserved1;
NSXPCInterface *_remoteObjectInterface;
NSString *_serviceName;
NSXPCListenerEndpoint *_endpoint;
id _eCache;
id _dCache;
};
// - (instancetype)initWithServiceName:(NSString *)serviceName __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// @property (nullable, readonly, copy) NSString *serviceName;
// - (instancetype)initWithMachServiceName:(NSString *)name options:(NSXPCConnectionOptions)options __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// - (instancetype)initWithListenerEndpoint:(NSXPCListenerEndpoint *)endpoint;
// @property (readonly, retain) NSXPCListenerEndpoint *endpoint;
// @property (nullable, retain) NSXPCInterface *exportedInterface;
// @property (nullable, retain) id exportedObject;
// @property (nullable, retain) NSXPCInterface *remoteObjectInterface;
// @property (readonly, retain) id remoteObjectProxy;
// - (id)remoteObjectProxyWithErrorHandler:(void (^)(NSError *error))handler;
// - (id)synchronousRemoteObjectProxyWithErrorHandler:(void (^)(NSError *error))handler __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, copy) void (^interruptionHandler)(void);
// @property (nullable, copy) void (^invalidationHandler)(void);
// - (void)resume;
// - (void)suspend;
// - (void)invalidate;
// @property (readonly) au_asid_t auditSessionIdentifier;
// @property (readonly) pid_t processIdentifier;
// @property (readonly) uid_t effectiveUserIdentifier;
// @property (readonly) gid_t effectiveGroupIdentifier;
// + (nullable NSXPCConnection *)currentConnection __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)scheduleSendBarrierBlock:(void (^)(void))block __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
/* @end */
__attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSXPCListener
#define _REWRITER_typedef_NSXPCListener
typedef struct objc_object NSXPCListener;
typedef struct {} _objc_exc_NSXPCListener;
#endif
struct NSXPCListener_IMPL {
struct NSObject_IMPL NSObject_IVARS;
void *_xconnection;
dispatch_queue_t _userQueue;
void *reserved0;
id _delegate;
NSString *_serviceName;
uint64_t _state;
id _reserved1;
id _reserved2;
};
// + (NSXPCListener *)serviceListener;
// + (NSXPCListener *)anonymousListener;
// - (instancetype)initWithMachServiceName:(NSString *)name __attribute__((objc_designated_initializer)) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// @property (nullable, weak) id <NSXPCListenerDelegate> delegate;
// @property (readonly, retain) NSXPCListenerEndpoint *endpoint;
// - (void)resume;
// - (void)suspend;
// - (void)invalidate;
/* @end */
// @protocol NSXPCListenerDelegate <NSObject>
/* @optional */
// - (BOOL)listener:(NSXPCListener *)listener shouldAcceptNewConnection:(NSXPCConnection *)newConnection;
/* @end */
__attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSXPCInterface
#define _REWRITER_typedef_NSXPCInterface
typedef struct objc_object NSXPCInterface;
typedef struct {} _objc_exc_NSXPCInterface;
#endif
struct NSXPCInterface_IMPL {
struct NSObject_IMPL NSObject_IVARS;
Protocol *_protocol;
void *_reserved2;
id _reserved1;
};
// + (NSXPCInterface *)interfaceWithProtocol:(Protocol *)protocol;
// @property (assign) Protocol *protocol;
// - (void)setClasses:(NSSet<Class> *)classes forSelector:(SEL)sel argumentIndex:(NSUInteger)arg ofReply:(BOOL)ofReply;
// - (NSSet<Class> *)classesForSelector:(SEL)sel argumentIndex:(NSUInteger)arg ofReply:(BOOL)ofReply;
// - (void)setInterface:(NSXPCInterface *)ifc forSelector:(SEL)sel argumentIndex:(NSUInteger)arg ofReply:(BOOL)ofReply;
// - (nullable NSXPCInterface *)interfaceForSelector:(SEL)sel argumentIndex:(NSUInteger)arg ofReply:(BOOL)ofReply;
/* @end */
__attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSXPCListenerEndpoint
#define _REWRITER_typedef_NSXPCListenerEndpoint
typedef struct objc_object NSXPCListenerEndpoint;
typedef struct {} _objc_exc_NSXPCListenerEndpoint;
#endif
struct NSXPCListenerEndpoint_IMPL {
struct NSObject_IMPL NSObject_IVARS;
void *_internal;
};
/* @end */
__attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSXPCCoder
#define _REWRITER_typedef_NSXPCCoder
typedef struct objc_object NSXPCCoder;
typedef struct {} _objc_exc_NSXPCCoder;
#endif
struct NSXPCCoder_IMPL {
struct NSCoder_IMPL NSCoder_IVARS;
id _userInfo;
id _reserved1;
};
// @property (nullable, retain) id <NSObject> userInfo;
// @property (nullable, readonly, strong) NSXPCConnection *connection __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
/* @end */
#pragma clang assume_nonnull end
enum {
NSFileNoSuchFileError = 4,
NSFileLockingError = 255,
NSFileReadUnknownError = 256,
NSFileReadNoPermissionError = 257,
NSFileReadInvalidFileNameError = 258,
NSFileReadCorruptFileError = 259,
NSFileReadNoSuchFileError = 260,
NSFileReadInapplicableStringEncodingError = 261,
NSFileReadUnsupportedSchemeError = 262,
NSFileReadTooLargeError __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 263,
NSFileReadUnknownStringEncodingError __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 264,
NSFileWriteUnknownError = 512,
NSFileWriteNoPermissionError = 513,
NSFileWriteInvalidFileNameError = 514,
NSFileWriteFileExistsError __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 516,
NSFileWriteInapplicableStringEncodingError = 517,
NSFileWriteUnsupportedSchemeError = 518,
NSFileWriteOutOfSpaceError = 640,
NSFileWriteVolumeReadOnlyError __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 642,
NSFileManagerUnmountUnknownError __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 768,
NSFileManagerUnmountBusyError __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 769,
NSKeyValueValidationError = 1024,
NSFormattingError = 2048,
NSUserCancelledError = 3072,
NSFeatureUnsupportedError __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 3328,
NSExecutableNotLoadableError __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 3584,
NSExecutableArchitectureMismatchError __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 3585,
NSExecutableRuntimeMismatchError __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 3586,
NSExecutableLoadError __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 3587,
NSExecutableLinkError __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 3588,
NSFileErrorMinimum = 0,
NSFileErrorMaximum = 1023,
NSValidationErrorMinimum = 1024,
NSValidationErrorMaximum = 2047,
NSExecutableErrorMinimum __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 3584,
NSExecutableErrorMaximum __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 3839,
NSFormattingErrorMinimum = 2048,
NSFormattingErrorMaximum = 2559,
NSPropertyListReadCorruptError __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 3840,
NSPropertyListReadUnknownVersionError __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 3841,
NSPropertyListReadStreamError __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 3842,
NSPropertyListWriteStreamError __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 3851,
NSPropertyListWriteInvalidError __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 3852,
NSPropertyListErrorMinimum __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 3840,
NSPropertyListErrorMaximum __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4095,
NSXPCConnectionInterrupted __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4097,
NSXPCConnectionInvalid __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4099,
NSXPCConnectionReplyInvalid __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4101,
NSXPCConnectionErrorMinimum __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4096,
NSXPCConnectionErrorMaximum __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4224,
NSUbiquitousFileUnavailableError __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4353,
NSUbiquitousFileNotUploadedDueToQuotaError __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4354,
NSUbiquitousFileUbiquityServerNotAvailable __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4355,
NSUbiquitousFileErrorMinimum __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4352,
NSUbiquitousFileErrorMaximum __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4607,
NSUserActivityHandoffFailedError __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4608,
NSUserActivityConnectionUnavailableError __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4609,
NSUserActivityRemoteApplicationTimedOutError __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4610,
NSUserActivityHandoffUserInfoTooLargeError __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4611,
NSUserActivityErrorMinimum __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4608,
NSUserActivityErrorMaximum __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4863,
NSCoderReadCorruptError __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4864,
NSCoderValueNotFoundError __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4865,
NSCoderInvalidValueError __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))) = 4866,
NSCoderErrorMinimum __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4864,
NSCoderErrorMaximum __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4991,
NSBundleErrorMinimum __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4992,
NSBundleErrorMaximum __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 5119,
NSBundleOnDemandResourceOutOfSpaceError __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))) = 4992,
NSBundleOnDemandResourceExceededMaximumSizeError __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))) = 4993,
NSBundleOnDemandResourceInvalidTagError __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))) = 4994,
NSCloudSharingNetworkFailureError __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 5120,
NSCloudSharingQuotaExceededError __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 5121,
NSCloudSharingTooManyParticipantsError __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 5122,
NSCloudSharingConflictError __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 5123,
NSCloudSharingNoPermissionError __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 5124,
NSCloudSharingOtherError __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 5375,
NSCloudSharingErrorMinimum __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 5120,
NSCloudSharingErrorMaximum __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 5375,
NSCompressionFailedError __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) = 5376,
NSDecompressionFailedError __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) = 5377,
NSCompressionErrorMinimum __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) = 5376,
NSCompressionErrorMaximum __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) = 5503,
};
#pragma clang assume_nonnull begin
typedef NSUInteger NSByteCountFormatterUnits; enum {
NSByteCountFormatterUseDefault = 0,
NSByteCountFormatterUseBytes = 1UL << 0,
NSByteCountFormatterUseKB = 1UL << 1,
NSByteCountFormatterUseMB = 1UL << 2,
NSByteCountFormatterUseGB = 1UL << 3,
NSByteCountFormatterUseTB = 1UL << 4,
NSByteCountFormatterUsePB = 1UL << 5,
NSByteCountFormatterUseEB = 1UL << 6,
NSByteCountFormatterUseZB = 1UL << 7,
NSByteCountFormatterUseYBOrHigher = 0x0FFUL << 8,
NSByteCountFormatterUseAll = 0x0FFFFUL
};
typedef NSInteger NSByteCountFormatterCountStyle; enum {
NSByteCountFormatterCountStyleFile = 0,
NSByteCountFormatterCountStyleMemory = 1,
NSByteCountFormatterCountStyleDecimal = 2,
NSByteCountFormatterCountStyleBinary = 3
};
__attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSByteCountFormatter
#define _REWRITER_typedef_NSByteCountFormatter
typedef struct objc_object NSByteCountFormatter;
typedef struct {} _objc_exc_NSByteCountFormatter;
#endif
struct NSByteCountFormatter_IMPL {
struct NSFormatter_IMPL NSFormatter_IVARS;
unsigned int _allowedUnits;
char _countStyle;
BOOL _allowsNonnumericFormatting;
BOOL _includesUnit;
BOOL _includesCount;
BOOL _includesActualByteCount;
BOOL _adaptive;
BOOL _zeroPadsFractionDigits;
int _formattingContext;
int _reserved[5];
};
// + (NSString *)stringFromByteCount:(long long)byteCount countStyle:(NSByteCountFormatterCountStyle)countStyle;
// - (NSString *)stringFromByteCount:(long long)byteCount;
// + (NSString *)stringFromMeasurement:(NSMeasurement<NSUnitInformationStorage *> *)measurement countStyle:(NSByteCountFormatterCountStyle)countStyle __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0)));
// - (NSString *)stringFromMeasurement:(NSMeasurement<NSUnitInformationStorage *> *)measurement __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0)));
// - (nullable NSString *)stringForObjectValue:(nullable id)obj;
// @property NSByteCountFormatterUnits allowedUnits;
// @property NSByteCountFormatterCountStyle countStyle;
// @property BOOL allowsNonnumericFormatting;
// @property BOOL includesUnit;
// @property BOOL includesCount;
// @property BOOL includesActualByteCount;
// @property (getter=isAdaptive) BOOL adaptive;
// @property BOOL zeroPadsFractionDigits;
// @property NSFormattingContext formattingContext __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
#pragma clang assume_nonnull end
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
// @protocol NSCacheDelegate;
#pragma clang assume_nonnull begin
__attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSCache
#define _REWRITER_typedef_NSCache
typedef struct objc_object NSCache;
typedef struct {} _objc_exc_NSCache;
#endif
struct NSCache_IMPL {
struct NSObject_IMPL NSObject_IVARS;
id _delegate;
void *_private[5];
void *_reserved;
};
// @property (copy) NSString *name;
// @property (nullable, assign) id<NSCacheDelegate> delegate;
// - (nullable ObjectType)objectForKey:(KeyType)key;
// - (void)setObject:(ObjectType)obj forKey:(KeyType)key;
// - (void)setObject:(ObjectType)obj forKey:(KeyType)key cost:(NSUInteger)g;
// - (void)removeObjectForKey:(KeyType)key;
// - (void)removeAllObjects;
// @property NSUInteger totalCostLimit;
// @property NSUInteger countLimit;
// @property BOOL evictsObjectsWithDiscardedContent;
/* @end */
// @protocol NSCacheDelegate <NSObject>
/* @optional */
// - (void)cache:(NSCache *)cache willEvictObject:(id)obj;
/* @end */
#pragma clang assume_nonnull end
// @class NSDictionary;
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#pragma clang assume_nonnull begin
__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSPredicate
#define _REWRITER_typedef_NSPredicate
typedef struct objc_object NSPredicate;
typedef struct {} _objc_exc_NSPredicate;
#endif
struct _predicateFlags {
unsigned int _evaluationBlocked : 1;
unsigned int _reservedPredicateFlags : 31;
} ;
struct NSPredicate_IMPL {
struct NSObject_IMPL NSObject_IVARS;
struct _predicateFlags _predicateFlags;
uint32_t reserved;
};
// + (NSPredicate *)predicateWithFormat:(NSString *)predicateFormat argumentArray:(nullable NSArray *)arguments;
// + (NSPredicate *)predicateWithFormat:(NSString *)predicateFormat, ...;
// + (NSPredicate *)predicateWithFormat:(NSString *)predicateFormat arguments:(va_list)argList;
// + (nullable NSPredicate *)predicateFromMetadataQueryString:(NSString *)queryString __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// + (NSPredicate *)predicateWithValue:(BOOL)value;
// + (NSPredicate*)predicateWithBlock:(BOOL (^)(id _Nullable evaluatedObject, NSDictionary<NSString *, id> * _Nullable bindings))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSString *predicateFormat;
// - (instancetype)predicateWithSubstitutionVariables:(NSDictionary<NSString *, id> *)variables;
// - (BOOL)evaluateWithObject:(nullable id)object;
// - (BOOL)evaluateWithObject:(nullable id)object substitutionVariables:(nullable NSDictionary<NSString *, id> *)bindings __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)allowEvaluation __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSArray<ObjectType> (NSPredicateSupport)
// - (NSArray<ObjectType> *)filteredArrayUsingPredicate:(NSPredicate *)predicate;
/* @end */
// @interface NSMutableArray<ObjectType> (NSPredicateSupport)
// - (void)filterUsingPredicate:(NSPredicate *)predicate;
/* @end */
// @interface NSSet<ObjectType> (NSPredicateSupport)
// - (NSSet<ObjectType> *)filteredSetUsingPredicate:(NSPredicate *)predicate __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSMutableSet<ObjectType> (NSPredicateSupport)
// - (void)filterUsingPredicate:(NSPredicate *)predicate __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSOrderedSet<ObjectType> (NSPredicateSupport)
// - (NSOrderedSet<ObjectType> *)filteredOrderedSetUsingPredicate:(NSPredicate *)p __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSMutableOrderedSet<ObjectType> (NSPredicateSupport)
// - (void)filterUsingPredicate:(NSPredicate *)p __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
typedef NSUInteger NSComparisonPredicateOptions; enum {
NSCaseInsensitivePredicateOption = 0x01,
NSDiacriticInsensitivePredicateOption = 0x02,
NSNormalizedPredicateOption __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 0x04,
};
typedef NSUInteger NSComparisonPredicateModifier; enum {
NSDirectPredicateModifier = 0,
NSAllPredicateModifier,
NSAnyPredicateModifier
};
typedef NSUInteger NSPredicateOperatorType; enum {
NSLessThanPredicateOperatorType = 0,
NSLessThanOrEqualToPredicateOperatorType,
NSGreaterThanPredicateOperatorType,
NSGreaterThanOrEqualToPredicateOperatorType,
NSEqualToPredicateOperatorType,
NSNotEqualToPredicateOperatorType,
NSMatchesPredicateOperatorType,
NSLikePredicateOperatorType,
NSBeginsWithPredicateOperatorType,
NSEndsWithPredicateOperatorType,
NSInPredicateOperatorType,
NSCustomSelectorPredicateOperatorType,
NSContainsPredicateOperatorType __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 99,
NSBetweenPredicateOperatorType __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
};
// @class NSPredicateOperator;
#ifndef _REWRITER_typedef_NSPredicateOperator
#define _REWRITER_typedef_NSPredicateOperator
typedef struct objc_object NSPredicateOperator;
typedef struct {} _objc_exc_NSPredicateOperator;
#endif
// @class NSExpression;
#ifndef _REWRITER_typedef_NSExpression
#define _REWRITER_typedef_NSExpression
typedef struct objc_object NSExpression;
typedef struct {} _objc_exc_NSExpression;
#endif
__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSComparisonPredicate
#define _REWRITER_typedef_NSComparisonPredicate
typedef struct objc_object NSComparisonPredicate;
typedef struct {} _objc_exc_NSComparisonPredicate;
#endif
struct NSComparisonPredicate_IMPL {
struct NSPredicate_IMPL NSPredicate_IVARS;
void *_reserved2;
NSPredicateOperator *_predicateOperator;
NSExpression *_lhs;
NSExpression *_rhs;
};
// + (NSComparisonPredicate *)predicateWithLeftExpression:(NSExpression *)lhs rightExpression:(NSExpression *)rhs modifier:(NSComparisonPredicateModifier)modifier type:(NSPredicateOperatorType)type options:(NSComparisonPredicateOptions)options;
// + (NSComparisonPredicate *)predicateWithLeftExpression:(NSExpression *)lhs rightExpression:(NSExpression *)rhs customSelector:(SEL)selector;
// - (instancetype)initWithLeftExpression:(NSExpression *)lhs rightExpression:(NSExpression *)rhs modifier:(NSComparisonPredicateModifier)modifier type:(NSPredicateOperatorType)type options:(NSComparisonPredicateOptions)options __attribute__((objc_designated_initializer));
// - (instancetype)initWithLeftExpression:(NSExpression *)lhs rightExpression:(NSExpression *)rhs customSelector:(SEL)selector __attribute__((objc_designated_initializer));
// - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer));
// @property (readonly) NSPredicateOperatorType predicateOperatorType;
// @property (readonly) NSComparisonPredicateModifier comparisonPredicateModifier;
// @property (readonly, retain) NSExpression *leftExpression;
// @property (readonly, retain) NSExpression *rightExpression;
// @property (nullable, readonly) SEL customSelector;
// @property (readonly) NSComparisonPredicateOptions options;
/* @end */
#pragma clang assume_nonnull end
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#pragma clang assume_nonnull begin
typedef NSUInteger NSCompoundPredicateType; enum {
NSNotPredicateType = 0,
NSAndPredicateType,
NSOrPredicateType,
};
__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSCompoundPredicate
#define _REWRITER_typedef_NSCompoundPredicate
typedef struct objc_object NSCompoundPredicate;
typedef struct {} _objc_exc_NSCompoundPredicate;
#endif
struct NSCompoundPredicate_IMPL {
struct NSPredicate_IMPL NSPredicate_IVARS;
void *_reserved2;
NSUInteger _type;
NSArray *_subpredicates;
};
// - (instancetype)initWithType:(NSCompoundPredicateType)type subpredicates:(NSArray<NSPredicate *> *)subpredicates __attribute__((objc_designated_initializer));
// - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer));
// @property (readonly) NSCompoundPredicateType compoundPredicateType;
// @property (readonly, copy) NSArray *subpredicates;
// + (NSCompoundPredicate *)andPredicateWithSubpredicates:(NSArray<NSPredicate *> *)subpredicates __attribute__((swift_name("init(andPredicateWithSubpredicates:)")));
// + (NSCompoundPredicate *)orPredicateWithSubpredicates:(NSArray<NSPredicate *> *)subpredicates __attribute__((swift_name("init(orPredicateWithSubpredicates:)")));
// + (NSCompoundPredicate *)notPredicateWithSubpredicate:(NSPredicate *)predicate __attribute__((swift_name("init(notPredicateWithSubpredicate:)")));
/* @end */
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
typedef NSInteger NSDateComponentsFormatterUnitsStyle; enum {
NSDateComponentsFormatterUnitsStylePositional = 0,
NSDateComponentsFormatterUnitsStyleAbbreviated,
NSDateComponentsFormatterUnitsStyleShort,
NSDateComponentsFormatterUnitsStyleFull,
NSDateComponentsFormatterUnitsStyleSpellOut,
NSDateComponentsFormatterUnitsStyleBrief __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
};
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
typedef NSUInteger NSDateComponentsFormatterZeroFormattingBehavior; enum {
NSDateComponentsFormatterZeroFormattingBehaviorNone = (0),
NSDateComponentsFormatterZeroFormattingBehaviorDefault = (1 << 0),
NSDateComponentsFormatterZeroFormattingBehaviorDropLeading = (1 << 1),
NSDateComponentsFormatterZeroFormattingBehaviorDropMiddle = (1 << 2),
NSDateComponentsFormatterZeroFormattingBehaviorDropTrailing = (1 << 3),
NSDateComponentsFormatterZeroFormattingBehaviorDropAll = (NSDateComponentsFormatterZeroFormattingBehaviorDropLeading | NSDateComponentsFormatterZeroFormattingBehaviorDropMiddle | NSDateComponentsFormatterZeroFormattingBehaviorDropTrailing),
NSDateComponentsFormatterZeroFormattingBehaviorPad = (1 << 16),
};
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSDateComponentsFormatter
#define _REWRITER_typedef_NSDateComponentsFormatter
typedef struct objc_object NSDateComponentsFormatter;
typedef struct {} _objc_exc_NSDateComponentsFormatter;
#endif
struct NSDateComponentsFormatter_IMPL {
struct NSFormatter_IMPL NSFormatter_IVARS;
pthread_mutex_t _lock;
void *_fmt;
void *_unused;
NSString *_fmtLocaleIdent;
NSCalendar *_calendar;
NSDate *_referenceDate;
NSNumberFormatter *_unitFormatter;
NSCalendarUnit _allowedUnits;
NSFormattingContext _formattingContext;
NSDateComponentsFormatterUnitsStyle _unitsStyle;
NSDateComponentsFormatterZeroFormattingBehavior _zeroFormattingBehavior;
NSInteger _maximumUnitCount;
BOOL _allowsFractionalUnits;
BOOL _collapsesLargestUnit;
BOOL _includesApproximationPhrase;
BOOL _includesTimeRemainingPhrase;
void *_reserved;
};
// - (nullable NSString *)stringForObjectValue:(nullable id)obj;
// - (nullable NSString *)stringFromDateComponents:(NSDateComponents *)components;
// - (nullable NSString *)stringFromDate:(NSDate *)startDate toDate:(NSDate *)endDate;
// - (nullable NSString *)stringFromTimeInterval:(NSTimeInterval)ti;
// + (nullable NSString *)localizedStringFromDateComponents:(NSDateComponents *)components unitsStyle:(NSDateComponentsFormatterUnitsStyle) unitsStyle;
// @property NSDateComponentsFormatterUnitsStyle unitsStyle;
// @property NSCalendarUnit allowedUnits;
// @property NSDateComponentsFormatterZeroFormattingBehavior zeroFormattingBehavior;
// @property (nullable, copy) NSCalendar *calendar;
// @property (nullable, copy) NSDate *referenceDate __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// @property BOOL allowsFractionalUnits;
// @property NSInteger maximumUnitCount;
// @property BOOL collapsesLargestUnit;
// @property BOOL includesApproximationPhrase;
// @property BOOL includesTimeRemainingPhrase;
// @property NSFormattingContext formattingContext;
// - (BOOL)getObjectValue:(out id _Nullable * _Nullable)obj forString:(NSString *)string errorDescription:(out NSString * _Nullable * _Nullable)error;
/* @end */
#pragma clang assume_nonnull end
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
// @class NSMutableDictionary;
#ifndef _REWRITER_typedef_NSMutableDictionary
#define _REWRITER_typedef_NSMutableDictionary
typedef struct objc_object NSMutableDictionary;
typedef struct {} _objc_exc_NSMutableDictionary;
#endif
// @class NSPredicate;
#ifndef _REWRITER_typedef_NSPredicate
#define _REWRITER_typedef_NSPredicate
typedef struct objc_object NSPredicate;
typedef struct {} _objc_exc_NSPredicate;
#endif
#pragma clang assume_nonnull begin
typedef NSUInteger NSExpressionType; enum {
NSConstantValueExpressionType = 0,
NSEvaluatedObjectExpressionType,
NSVariableExpressionType,
NSKeyPathExpressionType,
NSFunctionExpressionType,
NSUnionSetExpressionType __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))),
NSIntersectSetExpressionType __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))),
NSMinusSetExpressionType __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))),
NSSubqueryExpressionType __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 13,
NSAggregateExpressionType __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 14,
NSAnyKeyExpressionType __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 15,
NSBlockExpressionType = 19,
NSConditionalExpressionType __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 20
};
__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSExpression
#define _REWRITER_typedef_NSExpression
typedef struct objc_object NSExpression;
typedef struct {} _objc_exc_NSExpression;
#endif
struct _expressionFlags {
unsigned int _evaluationBlocked : 1;
unsigned int _reservedExpressionFlags : 31;
} ;
struct NSExpression_IMPL {
struct NSObject_IMPL NSObject_IVARS;
struct _expressionFlags _expressionFlags;
uint32_t reserved;
NSExpressionType _expressionType;
};
// + (NSExpression *)expressionWithFormat:(NSString *)expressionFormat argumentArray:(NSArray *)arguments __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSExpression *)expressionWithFormat:(NSString *)expressionFormat, ... __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSExpression *)expressionWithFormat:(NSString *)expressionFormat arguments:(va_list)argList __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSExpression *)expressionForConstantValue:(nullable id)obj;
// + (NSExpression *)expressionForEvaluatedObject;
// + (NSExpression *)expressionForVariable:(NSString *)string;
// + (NSExpression *)expressionForKeyPath:(NSString *)keyPath;
// + (NSExpression *)expressionForFunction:(NSString *)name arguments:(NSArray *)parameters;
// + (NSExpression *)expressionForAggregate:(NSArray<NSExpression *> *)subexpressions __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSExpression *)expressionForUnionSet:(NSExpression *)left with:(NSExpression *)right __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSExpression *)expressionForIntersectSet:(NSExpression *)left with:(NSExpression *)right __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSExpression *)expressionForMinusSet:(NSExpression *)left with:(NSExpression *)right __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSExpression *)expressionForSubquery:(NSExpression *)expression usingIteratorVariable:(NSString *)variable predicate:(NSPredicate *)predicate __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSExpression *)expressionForFunction:(NSExpression *)target selectorName:(NSString *)name arguments:(nullable NSArray *)parameters __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSExpression *)expressionForAnyKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSExpression *)expressionForBlock:(id (^)(id _Nullable evaluatedObject, NSArray<NSExpression *> *expressions, NSMutableDictionary * _Nullable context))block arguments:(nullable NSArray<NSExpression *> *)arguments __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSExpression *)expressionForConditional:(NSPredicate *)predicate trueExpression:(NSExpression *)trueExpression falseExpression:(NSExpression *)falseExpression __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (instancetype)initWithExpressionType:(NSExpressionType)type __attribute__((objc_designated_initializer));
// - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer));
// @property (readonly) NSExpressionType expressionType;
// @property (nullable, readonly, retain) id constantValue;
// @property (readonly, copy) NSString *keyPath;
// @property (readonly, copy) NSString *function;
// @property (readonly, copy) NSString *variable;
// @property (readonly, copy) NSExpression *operand;
// @property (nullable, readonly, copy) NSArray<NSExpression *> *arguments;
// @property (readonly, retain) id collection __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSPredicate *predicate __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSExpression *leftExpression __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSExpression *rightExpression __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSExpression *trueExpression __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSExpression *falseExpression __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) id (^expressionBlock)(id _Nullable, NSArray<NSExpression *> *, NSMutableDictionary * _Nullable) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable id)expressionValueWithObject:(nullable id)object context:(nullable NSMutableDictionary *)context;
// - (void)allowEvaluation __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSExtensionContext
#define _REWRITER_typedef_NSExtensionContext
typedef struct objc_object NSExtensionContext;
typedef struct {} _objc_exc_NSExtensionContext;
#endif
struct NSExtensionContext_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// @property(readonly, copy, nonatomic) NSArray *inputItems;
// - (void)completeRequestReturningItems:(nullable NSArray *)items completionHandler:(void(^ _Nullable)(BOOL expired))completionHandler;
// - (void)cancelRequestWithError:(NSError *)error;
// - (void)openURL:(NSURL *)URL completionHandler:(void (^ _Nullable)(BOOL success))completionHandler;
/* @end */
extern "C" NSString * _Null_unspecified const NSExtensionItemsAndErrorsKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * _Null_unspecified const NSExtensionHostWillEnterForegroundNotification __attribute__((availability(ios,introduced=8.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
extern "C" NSString * _Null_unspecified const NSExtensionHostDidEnterBackgroundNotification __attribute__((availability(ios,introduced=8.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
extern "C" NSString * _Null_unspecified const NSExtensionHostWillResignActiveNotification __attribute__((availability(ios,introduced=8.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
extern "C" NSString * _Null_unspecified const NSExtensionHostDidBecomeActiveNotification __attribute__((availability(ios,introduced=8.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSExtensionItem
#define _REWRITER_typedef_NSExtensionItem
typedef struct objc_object NSExtensionItem;
typedef struct {} _objc_exc_NSExtensionItem;
#endif
struct NSExtensionItem_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// @property(nullable, copy, nonatomic) NSAttributedString *attributedTitle;
// @property(nullable, copy, nonatomic) NSAttributedString *attributedContentText;
// @property(nullable, copy, nonatomic) NSArray<NSItemProvider *> *attachments;
// @property(nullable, copy, nonatomic) NSDictionary *userInfo;
/* @end */
extern "C" NSString * _Null_unspecified const NSExtensionItemAttributedTitleKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * _Null_unspecified const NSExtensionItemAttributedContentTextKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * _Null_unspecified const NSExtensionItemAttachmentsKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
// @class NSExtensionContext;
#ifndef _REWRITER_typedef_NSExtensionContext
#define _REWRITER_typedef_NSExtensionContext
typedef struct objc_object NSExtensionContext;
typedef struct {} _objc_exc_NSExtensionContext;
#endif
// @protocol NSExtensionRequestHandling <NSObject>
/* @required */
// - (void)beginRequestWithExtensionContext:(NSExtensionContext *)context;
/* @end */
#pragma clang assume_nonnull end
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSError
#define _REWRITER_typedef_NSError
typedef struct objc_object NSError;
typedef struct {} _objc_exc_NSError;
#endif
#ifndef _REWRITER_typedef_NSMutableDictionary
#define _REWRITER_typedef_NSMutableDictionary
typedef struct objc_object NSMutableDictionary;
typedef struct {} _objc_exc_NSMutableDictionary;
#endif
#ifndef _REWRITER_typedef_NSOperationQueue
#define _REWRITER_typedef_NSOperationQueue
typedef struct objc_object NSOperationQueue;
typedef struct {} _objc_exc_NSOperationQueue;
#endif
#ifndef _REWRITER_typedef_NSSet
#define _REWRITER_typedef_NSSet
typedef struct objc_object NSSet;
typedef struct {} _objc_exc_NSSet;
#endif
// @protocol NSFilePresenter;
#pragma clang assume_nonnull begin
typedef NSUInteger NSFileCoordinatorReadingOptions; enum {
NSFileCoordinatorReadingWithoutChanges = 1 << 0,
NSFileCoordinatorReadingResolvesSymbolicLink = 1 << 1,
NSFileCoordinatorReadingImmediatelyAvailableMetadataOnly __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 1 << 2,
NSFileCoordinatorReadingForUploading __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 1 << 3,
};
typedef NSUInteger NSFileCoordinatorWritingOptions; enum {
NSFileCoordinatorWritingForDeleting = 1 << 0,
NSFileCoordinatorWritingForMoving = 1 << 1,
NSFileCoordinatorWritingForMerging = 1 << 2,
NSFileCoordinatorWritingForReplacing = 1 << 3,
NSFileCoordinatorWritingContentIndependentMetadataOnly __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 1 << 4
};
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSFileAccessIntent
#define _REWRITER_typedef_NSFileAccessIntent
typedef struct objc_object NSFileAccessIntent;
typedef struct {} _objc_exc_NSFileAccessIntent;
#endif
struct NSFileAccessIntent_IMPL {
struct NSObject_IMPL NSObject_IVARS;
NSURL *_url;
BOOL _isRead;
NSInteger _options;
};
// + (instancetype)readingIntentWithURL:(NSURL *)url options:(NSFileCoordinatorReadingOptions)options;
// + (instancetype)writingIntentWithURL:(NSURL *)url options:(NSFileCoordinatorWritingOptions)options;
// @property (readonly, copy) NSURL *URL;
/* @end */
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSFileCoordinator
#define _REWRITER_typedef_NSFileCoordinator
typedef struct objc_object NSFileCoordinator;
typedef struct {} _objc_exc_NSFileCoordinator;
#endif
struct NSFileCoordinator_IMPL {
struct NSObject_IMPL NSObject_IVARS;
id _accessArbiter;
id _fileReactor;
id _purposeID;
NSURL *_recentFilePresenterURL;
id _accessClaimIDOrIDs;
BOOL _isCancelled;
NSMutableDictionary *_movedItems;
};
// + (void)addFilePresenter:(id<NSFilePresenter>)filePresenter;
// + (void)removeFilePresenter:(id<NSFilePresenter>)filePresenter;
@property (class, readonly, copy) NSArray<id<NSFilePresenter>> *filePresenters;
// - (instancetype)initWithFilePresenter:(nullable id<NSFilePresenter>)filePresenterOrNil __attribute__((objc_designated_initializer));
// @property (copy) NSString *purposeIdentifier __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)coordinateAccessWithIntents:(NSArray<NSFileAccessIntent *> *)intents queue:(NSOperationQueue *)queue byAccessor:(void (^)(NSError * _Nullable error))accessor __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)coordinateReadingItemAtURL:(NSURL *)url options:(NSFileCoordinatorReadingOptions)options error:(NSError **)outError byAccessor:(void (__attribute__((noescape)) ^)(NSURL *newURL))reader;
// - (void)coordinateWritingItemAtURL:(NSURL *)url options:(NSFileCoordinatorWritingOptions)options error:(NSError **)outError byAccessor:(void (__attribute__((noescape)) ^)(NSURL *newURL))writer;
// - (void)coordinateReadingItemAtURL:(NSURL *)readingURL options:(NSFileCoordinatorReadingOptions)readingOptions writingItemAtURL:(NSURL *)writingURL options:(NSFileCoordinatorWritingOptions)writingOptions error:(NSError **)outError byAccessor:(void (__attribute__((noescape)) ^)(NSURL *newReadingURL, NSURL *newWritingURL))readerWriter;
// - (void)coordinateWritingItemAtURL:(NSURL *)url1 options:(NSFileCoordinatorWritingOptions)options1 writingItemAtURL:(NSURL *)url2 options:(NSFileCoordinatorWritingOptions)options2 error:(NSError **)outError byAccessor:(void (__attribute__((noescape)) ^)(NSURL *newURL1, NSURL *newURL2))writer;
// - (void)prepareForReadingItemsAtURLs:(NSArray<NSURL *> *)readingURLs options:(NSFileCoordinatorReadingOptions)readingOptions writingItemsAtURLs:(NSArray<NSURL *> *)writingURLs options:(NSFileCoordinatorWritingOptions)writingOptions error:(NSError **)outError byAccessor:(void (__attribute__((noescape)) ^)(void (^completionHandler)(void)))batchAccessor;
// - (void)itemAtURL:(NSURL *)oldURL willMoveToURL:(NSURL *)newURL __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)itemAtURL:(NSURL *)oldURL didMoveToURL:(NSURL *)newURL;
// - (void)itemAtURL:(NSURL *)url didChangeUbiquityAttributes:(NSSet <NSURLResourceKey> *)attributes __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// - (void)cancel;
/* @end */
#pragma clang assume_nonnull end
// @class NSError;
#ifndef _REWRITER_typedef_NSError
#define _REWRITER_typedef_NSError
typedef struct objc_object NSError;
typedef struct {} _objc_exc_NSError;
#endif
#ifndef _REWRITER_typedef_NSFileVersion
#define _REWRITER_typedef_NSFileVersion
typedef struct objc_object NSFileVersion;
typedef struct {} _objc_exc_NSFileVersion;
#endif
#ifndef _REWRITER_typedef_NSOperationQueue
#define _REWRITER_typedef_NSOperationQueue
typedef struct objc_object NSOperationQueue;
typedef struct {} _objc_exc_NSOperationQueue;
#endif
#ifndef _REWRITER_typedef_NSSet
#define _REWRITER_typedef_NSSet
typedef struct objc_object NSSet;
typedef struct {} _objc_exc_NSSet;
#endif
#pragma clang assume_nonnull begin
// @protocol NSFilePresenter<NSObject>
/* @required */
// @property (nullable, readonly, copy) NSURL *presentedItemURL;
// @property (readonly, retain) NSOperationQueue *presentedItemOperationQueue;
/* @optional */
// @property (nullable, readonly, copy) NSURL *primaryPresentedItemURL __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// - (void)relinquishPresentedItemToReader:(void (^)(void (^ _Nullable reacquirer)(void)))reader;
// - (void)relinquishPresentedItemToWriter:(void (^)(void (^ _Nullable reacquirer)(void)))writer;
// - (void)savePresentedItemChangesWithCompletionHandler:(void (^)(NSError * _Nullable errorOrNil))completionHandler;
// - (void)accommodatePresentedItemDeletionWithCompletionHandler:(void (^)(NSError * _Nullable errorOrNil))completionHandler;
// - (void)presentedItemDidMoveToURL:(NSURL *)newURL;
// - (void)presentedItemDidChange;
// - (void)presentedItemDidChangeUbiquityAttributes:(NSSet<NSURLResourceKey> *)attributes __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// @property (readonly, strong) NSSet<NSURLResourceKey> *observedPresentedItemUbiquityAttributes __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// - (void)presentedItemDidGainVersion:(NSFileVersion *)version;
// - (void)presentedItemDidLoseVersion:(NSFileVersion *)version;
// - (void)presentedItemDidResolveConflictVersion:(NSFileVersion *)version;
// - (void)accommodatePresentedSubitemDeletionAtURL:(NSURL *)url completionHandler:(void (^)(NSError * _Nullable errorOrNil))completionHandler;
// - (void)presentedSubitemDidAppearAtURL:(NSURL *)url;
// - (void)presentedSubitemAtURL:(NSURL *)oldURL didMoveToURL:(NSURL *)newURL;
// - (void)presentedSubitemDidChangeAtURL:(NSURL *)url;
// - (void)presentedSubitemAtURL:(NSURL *)url didGainVersion:(NSFileVersion *)version;
// - (void)presentedSubitemAtURL:(NSURL *)url didLoseVersion:(NSFileVersion *)version;
// - (void)presentedSubitemAtURL:(NSURL *)url didResolveConflictVersion:(NSFileVersion *)version;
/* @end */
#pragma clang assume_nonnull end
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSDate
#define _REWRITER_typedef_NSDate
typedef struct objc_object NSDate;
typedef struct {} _objc_exc_NSDate;
#endif
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
#ifndef _REWRITER_typedef_NSError
#define _REWRITER_typedef_NSError
typedef struct objc_object NSError;
typedef struct {} _objc_exc_NSError;
#endif
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#ifndef _REWRITER_typedef_NSURL
#define _REWRITER_typedef_NSURL
typedef struct objc_object NSURL;
typedef struct {} _objc_exc_NSURL;
#endif
#ifndef _REWRITER_typedef_NSPersonNameComponents
#define _REWRITER_typedef_NSPersonNameComponents
typedef struct objc_object NSPersonNameComponents;
typedef struct {} _objc_exc_NSPersonNameComponents;
#endif
#pragma clang assume_nonnull begin
typedef NSUInteger NSFileVersionAddingOptions; enum {
NSFileVersionAddingByMoving = 1 << 0
};
typedef NSUInteger NSFileVersionReplacingOptions; enum {
NSFileVersionReplacingByMoving = 1 << 0
};
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSFileVersion
#define _REWRITER_typedef_NSFileVersion
typedef struct objc_object NSFileVersion;
typedef struct {} _objc_exc_NSFileVersion;
#endif
struct NSFileVersion_IMPL {
struct NSObject_IMPL NSObject_IVARS;
NSURL *_fileURL;
id _addition;
id _deadVersionIdentifier;
id _nonLocalVersion;
NSURL *_contentsURL;
BOOL _isBackup;
NSString *_localizedName;
NSString *_localizedComputerName;
NSDate *_modificationDate;
BOOL _isResolved;
BOOL _contentsURLIsAccessed;
id _reserved;
NSString *_name;
};
// + (nullable NSFileVersion *)currentVersionOfItemAtURL:(NSURL *)url;
// + (nullable NSArray<NSFileVersion *> *)otherVersionsOfItemAtURL:(NSURL *)url;
// + (nullable NSArray<NSFileVersion *> *)unresolvedConflictVersionsOfItemAtURL:(NSURL *)url;
// + (void)getNonlocalVersionsOfItemAtURL:(NSURL *)url completionHandler:(void (^)(NSArray<NSFileVersion *> * _Nullable nonlocalFileVersions, NSError * _Nullable error))completionHandler __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (nullable NSFileVersion *)versionOfItemAtURL:(NSURL *)url forPersistentIdentifier:(id)persistentIdentifier;
// + (nullable NSFileVersion *)addVersionOfItemAtURL:(NSURL *)url withContentsOfURL:(NSURL *)contentsURL options:(NSFileVersionAddingOptions)options error:(NSError **)outError __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// + (NSURL *)temporaryDirectoryURLForNewVersionOfItemAtURL:(NSURL *)url __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// @property (readonly, copy) NSURL *URL;
// @property (nullable, readonly, copy) NSString *localizedName;
// @property (nullable, readonly, copy) NSString *localizedNameOfSavingComputer;
// @property (nullable, readonly, copy) NSPersonNameComponents *originatorNameComponents __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// @property (nullable, readonly, copy) NSDate *modificationDate;
// @property (readonly, retain) id<NSCoding> persistentIdentifier;
// @property (readonly, getter=isConflict) BOOL conflict;
// @property (getter=isResolved) BOOL resolved;
// @property (getter=isDiscardable) BOOL discardable __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// @property (readonly) BOOL hasLocalContents __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly) BOOL hasThumbnail __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSURL *)replaceItemAtURL:(NSURL *)url options:(NSFileVersionReplacingOptions)options error:(NSError **)error;
// - (BOOL)removeAndReturnError:(NSError **)outError;
// + (BOOL)removeOtherVersionsOfItemAtURL:(NSURL *)url error:(NSError **)outError;
/* @end */
#pragma clang assume_nonnull end
// @class NSData;
#ifndef _REWRITER_typedef_NSData
#define _REWRITER_typedef_NSData
typedef struct objc_object NSData;
typedef struct {} _objc_exc_NSData;
#endif
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
#ifndef _REWRITER_typedef_NSError
#define _REWRITER_typedef_NSError
typedef struct objc_object NSError;
typedef struct {} _objc_exc_NSError;
#endif
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#ifndef _REWRITER_typedef_NSURL
#define _REWRITER_typedef_NSURL
typedef struct objc_object NSURL;
typedef struct {} _objc_exc_NSURL;
#endif
#pragma clang assume_nonnull begin
typedef NSUInteger NSFileWrapperReadingOptions; enum {
NSFileWrapperReadingImmediate = 1 << 0,
NSFileWrapperReadingWithoutMapping = 1 << 1
} __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef NSUInteger NSFileWrapperWritingOptions; enum {
NSFileWrapperWritingAtomic = 1 << 0,
NSFileWrapperWritingWithNameUpdating = 1 << 1
} __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
__attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSFileWrapper
#define _REWRITER_typedef_NSFileWrapper
typedef struct objc_object NSFileWrapper;
typedef struct {} _objc_exc_NSFileWrapper;
#endif
struct NSFileWrapper_IMPL {
struct NSObject_IMPL NSObject_IVARS;
NSDictionary *_fileAttributes;
NSString *_preferredFileName;
NSString *_fileName;
id _contents;
id _icon;
id _moreVars;
};
// - (nullable instancetype)initWithURL:(NSURL *)url options:(NSFileWrapperReadingOptions)options error:(NSError **)outError __attribute__((objc_designated_initializer)) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (instancetype)initDirectoryWithFileWrappers:(NSDictionary<NSString *, NSFileWrapper *> *)childrenByPreferredName __attribute__((objc_designated_initializer));
// - (instancetype)initRegularFileWithContents:(NSData *)contents __attribute__((objc_designated_initializer));
// - (instancetype)initSymbolicLinkWithDestinationURL:(NSURL *)url __attribute__((objc_designated_initializer)) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable instancetype)initWithSerializedRepresentation:(NSData *)serializeRepresentation __attribute__((objc_designated_initializer));
// - (nullable instancetype)initWithCoder:(NSCoder *)inCoder __attribute__((objc_designated_initializer));
// @property (readonly, getter=isDirectory) BOOL directory;
// @property (readonly, getter=isRegularFile) BOOL regularFile;
// @property (readonly, getter=isSymbolicLink) BOOL symbolicLink;
// @property (nullable, copy) NSString *preferredFilename;
// @property (nullable, copy) NSString *filename;
// @property (copy) NSDictionary<NSString *, id> *fileAttributes;
// - (BOOL)matchesContentsOfURL:(NSURL *)url __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)readFromURL:(NSURL *)url options:(NSFileWrapperReadingOptions)options error:(NSError **)outError __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)writeToURL:(NSURL *)url options:(NSFileWrapperWritingOptions)options originalContentsURL:(nullable NSURL *)originalContentsURL error:(NSError **)outError __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) NSData *serializedRepresentation;
// - (NSString *)addFileWrapper:(NSFileWrapper *)child;
// - (NSString *)addRegularFileWithContents:(NSData *)data preferredFilename:(NSString *)fileName;
// - (void)removeFileWrapper:(NSFileWrapper *)child;
// @property (nullable, readonly, copy) NSDictionary<NSString *, NSFileWrapper *> *fileWrappers;
// - (nullable NSString *)keyForFileWrapper:(NSFileWrapper *)child;
// @property (nullable, readonly, copy) NSData *regularFileContents;
// @property (nullable, readonly, copy) NSURL *symbolicLinkDestinationURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
#pragma clang assume_nonnull end
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSOrthography
#define _REWRITER_typedef_NSOrthography
typedef struct objc_object NSOrthography;
typedef struct {} _objc_exc_NSOrthography;
#endif
#ifndef _REWRITER_typedef_NSValue
#define _REWRITER_typedef_NSValue
typedef struct objc_object NSValue;
typedef struct {} _objc_exc_NSValue;
#endif
#pragma clang assume_nonnull begin
typedef NSString *NSLinguisticTagScheme __attribute__((swift_wrapper(struct)));
extern "C" NSLinguisticTagScheme const NSLinguisticTagSchemeTokenType __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTagScheme const NSLinguisticTagSchemeLexicalClass __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTagScheme const NSLinguisticTagSchemeNameType __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTagScheme const NSLinguisticTagSchemeNameTypeOrLexicalClass __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTagScheme const NSLinguisticTagSchemeLemma __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTagScheme const NSLinguisticTagSchemeLanguage __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTagScheme const NSLinguisticTagSchemeScript __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef NSString *NSLinguisticTag __attribute__((swift_wrapper(struct)));
extern "C" NSLinguisticTag const NSLinguisticTagWord __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTag const NSLinguisticTagPunctuation __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTag const NSLinguisticTagWhitespace __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTag const NSLinguisticTagOther __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTag const NSLinguisticTagNoun __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTag const NSLinguisticTagVerb __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTag const NSLinguisticTagAdjective __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTag const NSLinguisticTagAdverb __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTag const NSLinguisticTagPronoun __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTag const NSLinguisticTagDeterminer __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTag const NSLinguisticTagParticle __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTag const NSLinguisticTagPreposition __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTag const NSLinguisticTagNumber __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTag const NSLinguisticTagConjunction __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTag const NSLinguisticTagInterjection __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTag const NSLinguisticTagClassifier __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTag const NSLinguisticTagIdiom __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTag const NSLinguisticTagOtherWord __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTag const NSLinguisticTagSentenceTerminator __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTag const NSLinguisticTagOpenQuote __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTag const NSLinguisticTagCloseQuote __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTag const NSLinguisticTagOpenParenthesis __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTag const NSLinguisticTagCloseParenthesis __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTag const NSLinguisticTagWordJoiner __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTag const NSLinguisticTagDash __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTag const NSLinguisticTagOtherPunctuation __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTag const NSLinguisticTagParagraphBreak __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTag const NSLinguisticTagOtherWhitespace __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTag const NSLinguisticTagPersonalName __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTag const NSLinguisticTagPlaceName __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSLinguisticTag const NSLinguisticTagOrganizationName __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef NSInteger NSLinguisticTaggerUnit; enum {
NSLinguisticTaggerUnitWord,
NSLinguisticTaggerUnitSentence,
NSLinguisticTaggerUnitParagraph,
NSLinguisticTaggerUnitDocument
};
typedef NSUInteger NSLinguisticTaggerOptions; enum {
NSLinguisticTaggerOmitWords = 1 << 0,
NSLinguisticTaggerOmitPunctuation = 1 << 1,
NSLinguisticTaggerOmitWhitespace = 1 << 2,
NSLinguisticTaggerOmitOther = 1 << 3,
NSLinguisticTaggerJoinNames = 1 << 4
};
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSLinguisticTagger
#define _REWRITER_typedef_NSLinguisticTagger
typedef struct objc_object NSLinguisticTagger;
typedef struct {} _objc_exc_NSLinguisticTagger;
#endif
struct NSLinguisticTagger_IMPL {
struct NSObject_IMPL NSObject_IVARS;
NSArray *_schemes;
NSUInteger _options;
NSString *_string;
id _orthographyArray;
id _tokenArray;
void *_reserved;
};
// - (instancetype)initWithTagSchemes:(NSArray<NSLinguisticTagScheme> *)tagSchemes options:(NSUInteger)opts __attribute__((objc_designated_initializer)) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSArray<NSLinguisticTagScheme> *tagSchemes __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, retain) NSString *string __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// + (NSArray<NSLinguisticTagScheme> *)availableTagSchemesForUnit:(NSLinguisticTaggerUnit)unit language:(NSString *)language __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// + (NSArray<NSLinguisticTagScheme> *)availableTagSchemesForLanguage:(NSString *)language __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)setOrthography:(nullable NSOrthography *)orthography range:(NSRange)range __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSOrthography *)orthographyAtIndex:(NSUInteger)charIndex effectiveRange:(nullable NSRangePointer)effectiveRange __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)stringEditedInRange:(NSRange)newRange changeInLength:(NSInteger)delta __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSRange)tokenRangeAtIndex:(NSUInteger)charIndex unit:(NSLinguisticTaggerUnit)unit __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// - (NSRange)sentenceRangeForRange:(NSRange)range __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)enumerateTagsInRange:(NSRange)range unit:(NSLinguisticTaggerUnit)unit scheme:(NSLinguisticTagScheme)scheme options:(NSLinguisticTaggerOptions)options usingBlock:(void (__attribute__((noescape)) ^)(NSLinguisticTag _Nullable tag, NSRange tokenRange, BOOL *stop))block __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// - (nullable NSLinguisticTag)tagAtIndex:(NSUInteger)charIndex unit:(NSLinguisticTaggerUnit)unit scheme:(NSLinguisticTagScheme)scheme tokenRange:(nullable NSRangePointer)tokenRange __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// - (NSArray<NSLinguisticTag> *)tagsInRange:(NSRange)range unit:(NSLinguisticTaggerUnit)unit scheme:(NSLinguisticTagScheme)scheme options:(NSLinguisticTaggerOptions)options tokenRanges:(NSArray<NSValue *> * _Nullable * _Nullable)tokenRanges __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// - (void)enumerateTagsInRange:(NSRange)range scheme:(NSLinguisticTagScheme)tagScheme options:(NSLinguisticTaggerOptions)opts usingBlock:(void (__attribute__((noescape)) ^)(NSLinguisticTag _Nullable tag, NSRange tokenRange, NSRange sentenceRange, BOOL *stop))block __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (nullable NSLinguisticTag)tagAtIndex:(NSUInteger)charIndex scheme:(NSLinguisticTagScheme)scheme tokenRange:(nullable NSRangePointer)tokenRange sentenceRange:(nullable NSRangePointer)sentenceRange __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSArray<NSString *> *)tagsInRange:(NSRange)range scheme:(NSString *)tagScheme options:(NSLinguisticTaggerOptions)opts tokenRanges:(NSArray<NSValue *> * _Nullable * _Nullable)tokenRanges __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) NSString *dominantLanguage __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// + (nullable NSString *)dominantLanguageForString:(NSString *)string __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// + (nullable NSLinguisticTag)tagForString:(NSString *)string atIndex:(NSUInteger)charIndex unit:(NSLinguisticTaggerUnit)unit scheme:(NSLinguisticTagScheme)scheme orthography:(nullable NSOrthography *)orthography tokenRange:(nullable NSRangePointer)tokenRange __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// + (NSArray<NSLinguisticTag> *)tagsForString:(NSString *)string range:(NSRange)range unit:(NSLinguisticTaggerUnit)unit scheme:(NSLinguisticTagScheme)scheme options:(NSLinguisticTaggerOptions)options orthography:(nullable NSOrthography *)orthography tokenRanges:(NSArray<NSValue *> * _Nullable * _Nullable)tokenRanges __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// + (void)enumerateTagsForString:(NSString *)string range:(NSRange)range unit:(NSLinguisticTaggerUnit)unit scheme:(NSLinguisticTagScheme)scheme options:(NSLinguisticTaggerOptions)options orthography:(nullable NSOrthography *)orthography usingBlock:(void (__attribute__((noescape)) ^)(NSLinguisticTag _Nullable tag, NSRange tokenRange, BOOL *stop))block __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// - (nullable NSArray<NSString *> *)possibleTagsAtIndex:(NSUInteger)charIndex scheme:(NSString *)tagScheme tokenRange:(nullable NSRangePointer)tokenRange sentenceRange:(nullable NSRangePointer)sentenceRange scores:(NSArray<NSValue *> * _Nullable * _Nullable)scores __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
// @interface NSString (NSLinguisticAnalysis)
// - (NSArray<NSLinguisticTag> *)linguisticTagsInRange:(NSRange)range scheme:(NSLinguisticTagScheme)scheme options:(NSLinguisticTaggerOptions)options orthography:(nullable NSOrthography *)orthography tokenRanges:(NSArray<NSValue *> * _Nullable * _Nullable)tokenRanges __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)enumerateLinguisticTagsInRange:(NSRange)range scheme:(NSLinguisticTagScheme)scheme options:(NSLinguisticTaggerOptions)options orthography:(nullable NSOrthography *)orthography usingBlock:(void (__attribute__((noescape)) ^)(NSLinguisticTag _Nullable tag, NSRange tokenRange, NSRange sentenceRange, BOOL *stop))block __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
#pragma clang assume_nonnull end
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#pragma clang assume_nonnull begin
extern "C" NSString * const NSMetadataItemFSNameKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataItemDisplayNameKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataItemURLKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataItemPathKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataItemFSSizeKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataItemFSCreationDateKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataItemFSContentChangeDateKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataItemContentTypeKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataItemContentTypeTreeKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataItemIsUbiquitousKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataUbiquitousItemHasUnresolvedConflictsKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataUbiquitousItemIsDownloadedKey __attribute__((availability(macos,introduced=10.7,deprecated=10.9,message="Use NSMetadataUbiquitousItemDownloadingStatusKey instead"))) __attribute__((availability(ios,introduced=5.0,deprecated=7.0,message="Use NSMetadataUbiquitousItemDownloadingStatusKey instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use NSMetadataUbiquitousItemDownloadingStatusKey instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use NSMetadataUbiquitousItemDownloadingStatusKey instead")));
extern "C" NSString * const NSMetadataUbiquitousItemDownloadingStatusKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataUbiquitousItemDownloadingStatusNotDownloaded __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataUbiquitousItemDownloadingStatusDownloaded __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataUbiquitousItemDownloadingStatusCurrent __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataUbiquitousItemIsDownloadingKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataUbiquitousItemIsUploadedKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataUbiquitousItemIsUploadingKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataUbiquitousItemPercentDownloadedKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataUbiquitousItemPercentUploadedKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataUbiquitousItemDownloadingErrorKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataUbiquitousItemUploadingErrorKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataUbiquitousItemDownloadRequestedKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataUbiquitousItemIsExternalDocumentKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataUbiquitousItemContainerDisplayNameKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataUbiquitousItemURLInLocalContainerKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataUbiquitousItemIsSharedKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataUbiquitousSharedItemCurrentUserRoleKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataUbiquitousSharedItemOwnerNameComponentsKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataUbiquitousSharedItemRoleOwner __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataUbiquitousSharedItemRoleParticipant __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataUbiquitousSharedItemPermissionsReadOnly __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataUbiquitousSharedItemPermissionsReadWrite __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemAttributeChangeDateKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemKeywordsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemTitleKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemAuthorsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemEditorsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemParticipantsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemProjectsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemDownloadedDateKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemWhereFromsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemCommentKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemCopyrightKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemLastUsedDateKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemContentCreationDateKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemContentModificationDateKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemDateAddedKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemDurationSecondsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemContactKeywordsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemVersionKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemPixelHeightKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemPixelWidthKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemPixelCountKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemColorSpaceKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemBitsPerSampleKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemFlashOnOffKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemFocalLengthKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemAcquisitionMakeKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemAcquisitionModelKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemISOSpeedKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemOrientationKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemLayerNamesKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemWhiteBalanceKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemApertureKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemProfileNameKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemResolutionWidthDPIKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemResolutionHeightDPIKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemExposureModeKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemExposureTimeSecondsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemEXIFVersionKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemCameraOwnerKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemFocalLength35mmKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemLensModelKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemEXIFGPSVersionKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemAltitudeKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemLatitudeKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemLongitudeKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemSpeedKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemTimestampKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemGPSTrackKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemImageDirectionKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemNamedLocationKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemGPSStatusKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemGPSMeasureModeKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemGPSDOPKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemGPSMapDatumKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemGPSDestLatitudeKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemGPSDestLongitudeKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemGPSDestBearingKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemGPSDestDistanceKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemGPSProcessingMethodKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemGPSAreaInformationKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemGPSDateStampKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemGPSDifferentalKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemCodecsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemMediaTypesKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemStreamableKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemTotalBitRateKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemVideoBitRateKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemAudioBitRateKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemDeliveryTypeKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemAlbumKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemHasAlphaChannelKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemRedEyeOnOffKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemMeteringModeKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemMaxApertureKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemFNumberKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemExposureProgramKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemExposureTimeStringKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemHeadlineKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemInstructionsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemCityKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemStateOrProvinceKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemCountryKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemTextContentKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemAudioSampleRateKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemAudioChannelCountKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemTempoKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemKeySignatureKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemTimeSignatureKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemAudioEncodingApplicationKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemComposerKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemLyricistKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemAudioTrackNumberKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemRecordingDateKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemMusicalGenreKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemIsGeneralMIDISequenceKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemRecordingYearKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemOrganizationsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemLanguagesKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemRightsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemPublishersKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemContributorsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemCoverageKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemSubjectKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemThemeKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemDescriptionKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemIdentifierKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemAudiencesKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemNumberOfPagesKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemPageWidthKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemPageHeightKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemSecurityMethodKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemCreatorKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemEncodingApplicationsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemDueDateKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemStarRatingKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemPhoneNumbersKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemEmailAddressesKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemInstantMessageAddressesKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemKindKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemRecipientsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemFinderCommentKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemFontsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemAppleLoopsRootKeyKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemAppleLoopsKeyFilterTypeKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemAppleLoopsLoopModeKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemAppleLoopDescriptorsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemMusicalInstrumentCategoryKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemMusicalInstrumentNameKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemCFBundleIdentifierKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemInformationKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemDirectorKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemProducerKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemGenreKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemPerformersKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemOriginalFormatKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemOriginalSourceKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemAuthorEmailAddressesKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemRecipientEmailAddressesKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemAuthorAddressesKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemRecipientAddressesKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemIsLikelyJunkKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemExecutableArchitecturesKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemExecutablePlatformKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemApplicationCategoriesKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataItemIsApplicationManagedKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
#pragma clang assume_nonnull end
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#ifndef _REWRITER_typedef_NSURL
#define _REWRITER_typedef_NSURL
typedef struct objc_object NSURL;
typedef struct {} _objc_exc_NSURL;
#endif
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
#ifndef _REWRITER_typedef_NSPredicate
#define _REWRITER_typedef_NSPredicate
typedef struct objc_object NSPredicate;
typedef struct {} _objc_exc_NSPredicate;
#endif
#ifndef _REWRITER_typedef_NSOperationQueue
#define _REWRITER_typedef_NSOperationQueue
typedef struct objc_object NSOperationQueue;
typedef struct {} _objc_exc_NSOperationQueue;
#endif
#ifndef _REWRITER_typedef_NSSortDescriptor
#define _REWRITER_typedef_NSSortDescriptor
typedef struct objc_object NSSortDescriptor;
typedef struct {} _objc_exc_NSSortDescriptor;
#endif
// @class NSMetadataItem;
#ifndef _REWRITER_typedef_NSMetadataItem
#define _REWRITER_typedef_NSMetadataItem
typedef struct objc_object NSMetadataItem;
typedef struct {} _objc_exc_NSMetadataItem;
#endif
#ifndef _REWRITER_typedef_NSMetadataQueryAttributeValueTuple
#define _REWRITER_typedef_NSMetadataQueryAttributeValueTuple
typedef struct objc_object NSMetadataQueryAttributeValueTuple;
typedef struct {} _objc_exc_NSMetadataQueryAttributeValueTuple;
#endif
#ifndef _REWRITER_typedef_NSMetadataQueryResultGroup
#define _REWRITER_typedef_NSMetadataQueryResultGroup
typedef struct objc_object NSMetadataQueryResultGroup;
typedef struct {} _objc_exc_NSMetadataQueryResultGroup;
#endif
// @protocol NSMetadataQueryDelegate;
#pragma clang assume_nonnull begin
__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSMetadataQuery
#define _REWRITER_typedef_NSMetadataQuery
typedef struct objc_object NSMetadataQuery;
typedef struct {} _objc_exc_NSMetadataQuery;
#endif
struct NSMetadataQuery_IMPL {
struct NSObject_IMPL NSObject_IVARS;
NSUInteger _flags;
NSTimeInterval _interval;
id _private[11];
void *_reserved;
};
// @property (nullable, assign) id<NSMetadataQueryDelegate> delegate;
// @property (nullable, copy) NSPredicate *predicate;
// @property (copy) NSArray<NSSortDescriptor *> *sortDescriptors;
// @property (copy) NSArray<NSString *> *valueListAttributes;
// @property (nullable, copy) NSArray<NSString *> *groupingAttributes;
// @property NSTimeInterval notificationBatchingInterval;
// @property (copy) NSArray *searchScopes;
// @property (nullable, copy) NSArray *searchItems __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, retain) NSOperationQueue *operationQueue __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (BOOL)startQuery;
// - (void)stopQuery;
// @property (readonly, getter=isStarted) BOOL started;
// @property (readonly, getter=isGathering) BOOL gathering;
// @property (readonly, getter=isStopped) BOOL stopped;
// - (void)disableUpdates;
// - (void)enableUpdates;
// @property (readonly) NSUInteger resultCount;
// - (id)resultAtIndex:(NSUInteger)idx;
// - (void)enumerateResultsUsingBlock:(void (__attribute__((noescape)) ^)(id result, NSUInteger idx, BOOL *stop))block __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)enumerateResultsWithOptions:(NSEnumerationOptions)opts usingBlock:(void (__attribute__((noescape)) ^)(id result, NSUInteger idx, BOOL *stop))block __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSArray *results;
// - (NSUInteger)indexOfResult:(id)result;
// @property (readonly, copy) NSDictionary<NSString *, NSArray<NSMetadataQueryAttributeValueTuple *> *> *valueLists;
// @property (readonly, copy) NSArray<NSMetadataQueryResultGroup *> *groupedResults;
// - (nullable id)valueOfAttribute:(NSString *)attrName forResultAtIndex:(NSUInteger)idx;
/* @end */
// @protocol NSMetadataQueryDelegate <NSObject>
/* @optional */
// - (id)metadataQuery:(NSMetadataQuery *)query replacementObjectForResultObject:(NSMetadataItem *)result;
// - (id)metadataQuery:(NSMetadataQuery *)query replacementValueForAttribute:(NSString *)attrName value:(id)attrValue;
/* @end */
extern "C" NSNotificationName const NSMetadataQueryDidStartGatheringNotification __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSNotificationName const NSMetadataQueryGatheringProgressNotification __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSNotificationName const NSMetadataQueryDidFinishGatheringNotification __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSNotificationName const NSMetadataQueryDidUpdateNotification __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataQueryUpdateAddedItemsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataQueryUpdateChangedItemsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataQueryUpdateRemovedItemsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataQueryResultContentRelevanceAttribute __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataQueryUserHomeScope __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataQueryLocalComputerScope __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataQueryNetworkScope __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataQueryIndexedLocalComputerScope __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataQueryIndexedNetworkScope __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
extern "C" NSString * const NSMetadataQueryUbiquitousDocumentsScope __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataQueryUbiquitousDataScope __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSMetadataItem
#define _REWRITER_typedef_NSMetadataItem
typedef struct objc_object NSMetadataItem;
typedef struct {} _objc_exc_NSMetadataItem;
#endif
struct NSMetadataItem_IMPL {
struct NSObject_IMPL NSObject_IVARS;
id _item;
void *_reserved;
};
// - (nullable instancetype)initWithURL:(NSURL *)url __attribute__((objc_designated_initializer)) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// - (nullable id)valueForAttribute:(NSString *)key;
// - (nullable NSDictionary<NSString *, id> *)valuesForAttributes:(NSArray<NSString *> *)keys;
// @property (readonly, copy) NSArray<NSString *> *attributes;
/* @end */
__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSMetadataQueryAttributeValueTuple
#define _REWRITER_typedef_NSMetadataQueryAttributeValueTuple
typedef struct objc_object NSMetadataQueryAttributeValueTuple;
typedef struct {} _objc_exc_NSMetadataQueryAttributeValueTuple;
#endif
struct NSMetadataQueryAttributeValueTuple_IMPL {
struct NSObject_IMPL NSObject_IVARS;
id _attr;
id _value;
NSUInteger _count;
void *_reserved;
};
// @property (readonly, copy) NSString *attribute;
// @property (nullable, readonly, retain) id value;
// @property (readonly) NSUInteger count;
/* @end */
__attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSMetadataQueryResultGroup
#define _REWRITER_typedef_NSMetadataQueryResultGroup
typedef struct objc_object NSMetadataQueryResultGroup;
typedef struct {} _objc_exc_NSMetadataQueryResultGroup;
#endif
struct NSMetadataQueryResultGroup_IMPL {
struct NSObject_IMPL NSObject_IVARS;
id _private[9];
NSUInteger _private2[1];
void *_reserved;
};
// @property (readonly, copy) NSString *attribute;
// @property (readonly, retain) id value;
// @property (nullable, readonly, copy) NSArray<NSMetadataQueryResultGroup *> *subgroups;
// @property (readonly) NSUInteger resultCount;
// - (id)resultAtIndex:(NSUInteger)idx;
// @property (readonly, copy) NSArray *results;
/* @end */
#pragma clang assume_nonnull end
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSData
#define _REWRITER_typedef_NSData
typedef struct objc_object NSData;
typedef struct {} _objc_exc_NSData;
#endif
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
#ifndef _REWRITER_typedef_NSInputStream
#define _REWRITER_typedef_NSInputStream
typedef struct objc_object NSInputStream;
typedef struct {} _objc_exc_NSInputStream;
#endif
#ifndef _REWRITER_typedef_NSNumber
#define _REWRITER_typedef_NSNumber
typedef struct objc_object NSNumber;
typedef struct {} _objc_exc_NSNumber;
#endif
#ifndef _REWRITER_typedef_NSOutputStream
#define _REWRITER_typedef_NSOutputStream
typedef struct objc_object NSOutputStream;
typedef struct {} _objc_exc_NSOutputStream;
#endif
#ifndef _REWRITER_typedef_NSRunLoop
#define _REWRITER_typedef_NSRunLoop
typedef struct objc_object NSRunLoop;
typedef struct {} _objc_exc_NSRunLoop;
#endif
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
// @protocol NSNetServiceDelegate, NSNetServiceBrowserDelegate;
#pragma clang assume_nonnull begin
extern "C" NSString * const NSNetServicesErrorCode;
extern "C" NSErrorDomain const NSNetServicesErrorDomain;
typedef NSInteger NSNetServicesError; enum {
NSNetServicesUnknownError = -72000L,
NSNetServicesCollisionError = -72001L,
NSNetServicesNotFoundError = -72002L,
NSNetServicesActivityInProgress = -72003L,
NSNetServicesBadArgumentError = -72004L,
NSNetServicesCancelledError = -72005L,
NSNetServicesInvalidError = -72006L,
NSNetServicesTimeoutError = -72007L,
};
typedef NSUInteger NSNetServiceOptions; enum {
NSNetServiceNoAutoRename = 1UL << 0,
NSNetServiceListenForConnections __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 1UL << 1
};
__attribute__((availability(watchos,unavailable)))
#ifndef _REWRITER_typedef_NSNetService
#define _REWRITER_typedef_NSNetService
typedef struct objc_object NSNetService;
typedef struct {} _objc_exc_NSNetService;
#endif
struct NSNetService_IMPL {
struct NSObject_IMPL NSObject_IVARS;
id _netService;
id _delegate;
id _reserved;
};
// - (instancetype)initWithDomain:(NSString *)domain type:(NSString *)type name:(NSString *)name port:(int)port __attribute__((objc_designated_initializer));
// - (instancetype)initWithDomain:(NSString *)domain type:(NSString *)type name:(NSString *)name;
// - (void)scheduleInRunLoop:(NSRunLoop *)aRunLoop forMode:(NSRunLoopMode)mode;
// - (void)removeFromRunLoop:(NSRunLoop *)aRunLoop forMode:(NSRunLoopMode)mode;
// @property (nullable, assign) id <NSNetServiceDelegate> delegate;
// @property BOOL includesPeerToPeer __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSString *name;
// @property (readonly, copy) NSString *type;
// @property (readonly, copy) NSString *domain;
// @property (nullable, readonly, copy) NSString *hostName;
// @property (nullable, readonly, copy) NSArray<NSData *> *addresses;
// @property (readonly) NSInteger port __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)publish;
// - (void)publishWithOptions:(NSNetServiceOptions)options __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)resolve __attribute__((availability(macos,introduced=10.2,deprecated=10.4,message="Not supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Not supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Not supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Not supported")));
// - (void)stop;
// + (NSDictionary<NSString *, NSData *> *)dictionaryFromTXTRecordData:(NSData *)txtData;
// + (NSData *)dataFromTXTRecordDictionary:(NSDictionary<NSString *, NSData *> *)txtDictionary;
// - (void)resolveWithTimeout:(NSTimeInterval)timeout;
// - (BOOL)getInputStream:(out __attribute__((objc_ownership(strong))) NSInputStream * _Nullable * _Nullable)inputStream outputStream:(out __attribute__((objc_ownership(strong))) NSOutputStream * _Nullable * _Nullable)outputStream;
// - (BOOL)setTXTRecordData:(nullable NSData *)recordData;
// - (nullable NSData *)TXTRecordData;
// - (void)startMonitoring;
// - (void)stopMonitoring;
/* @end */
__attribute__((availability(watchos,unavailable)))
#ifndef _REWRITER_typedef_NSNetServiceBrowser
#define _REWRITER_typedef_NSNetServiceBrowser
typedef struct objc_object NSNetServiceBrowser;
typedef struct {} _objc_exc_NSNetServiceBrowser;
#endif
struct NSNetServiceBrowser_IMPL {
struct NSObject_IMPL NSObject_IVARS;
id _netServiceBrowser;
id _delegate;
void *_reserved;
};
// - (instancetype)init;
// @property (nullable, assign) id <NSNetServiceBrowserDelegate> delegate;
// @property BOOL includesPeerToPeer __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (void)scheduleInRunLoop:(NSRunLoop *)aRunLoop forMode:(NSRunLoopMode)mode;
// - (void)removeFromRunLoop:(NSRunLoop *)aRunLoop forMode:(NSRunLoopMode)mode;
// - (void)searchForBrowsableDomains;
// - (void)searchForRegistrationDomains;
// - (void)searchForServicesOfType:(NSString *)type inDomain:(NSString *)domainString;
// - (void)stop;
/* @end */
__attribute__((availability(watchos,unavailable)))
// @protocol NSNetServiceDelegate <NSObject>
/* @optional */
// - (void)netServiceWillPublish:(NSNetService *)sender;
// - (void)netServiceDidPublish:(NSNetService *)sender;
// - (void)netService:(NSNetService *)sender didNotPublish:(NSDictionary<NSString *, NSNumber *> *)errorDict;
// - (void)netServiceWillResolve:(NSNetService *)sender;
// - (void)netServiceDidResolveAddress:(NSNetService *)sender;
// - (void)netService:(NSNetService *)sender didNotResolve:(NSDictionary<NSString *, NSNumber *> *)errorDict;
// - (void)netServiceDidStop:(NSNetService *)sender;
// - (void)netService:(NSNetService *)sender didUpdateTXTRecordData:(NSData *)data;
// - (void)netService:(NSNetService *)sender didAcceptConnectionWithInputStream:(NSInputStream *)inputStream outputStream:(NSOutputStream *)outputStream __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
/* @end */
__attribute__((availability(watchos,unavailable)))
// @protocol NSNetServiceBrowserDelegate <NSObject>
/* @optional */
// - (void)netServiceBrowserWillSearch:(NSNetServiceBrowser *)browser;
// - (void)netServiceBrowserDidStopSearch:(NSNetServiceBrowser *)browser;
// - (void)netServiceBrowser:(NSNetServiceBrowser *)browser didNotSearch:(NSDictionary<NSString *, NSNumber *> *)errorDict;
// - (void)netServiceBrowser:(NSNetServiceBrowser *)browser didFindDomain:(NSString *)domainString moreComing:(BOOL)moreComing;
// - (void)netServiceBrowser:(NSNetServiceBrowser *)browser didFindService:(NSNetService *)service moreComing:(BOOL)moreComing;
// - (void)netServiceBrowser:(NSNetServiceBrowser *)browser didRemoveDomain:(NSString *)domainString moreComing:(BOOL)moreComing;
// - (void)netServiceBrowser:(NSNetServiceBrowser *)browser didRemoveService:(NSNetService *)service moreComing:(BOOL)moreComing;
/* @end */
#pragma clang assume_nonnull end
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
#ifndef _REWRITER_typedef_NSData
#define _REWRITER_typedef_NSData
typedef struct objc_object NSData;
typedef struct {} _objc_exc_NSData;
#endif
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#pragma clang assume_nonnull begin
__attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,unavailable)))
#ifndef _REWRITER_typedef_NSUbiquitousKeyValueStore
#define _REWRITER_typedef_NSUbiquitousKeyValueStore
typedef struct objc_object NSUbiquitousKeyValueStore;
typedef struct {} _objc_exc_NSUbiquitousKeyValueStore;
#endif
struct NSUbiquitousKeyValueStore_IMPL {
struct NSObject_IMPL NSObject_IVARS;
id _private1;
id _private2;
id _private3;
void *_private4;
void *_reserved[3];
int _daemonWakeToken;
};
@property (class, readonly, strong) NSUbiquitousKeyValueStore *defaultStore;
// - (nullable id)objectForKey:(NSString *)aKey;
// - (void)setObject:(nullable id)anObject forKey:(NSString *)aKey;
// - (void)removeObjectForKey:(NSString *)aKey;
// - (nullable NSString *)stringForKey:(NSString *)aKey;
// - (nullable NSArray *)arrayForKey:(NSString *)aKey;
// - (nullable NSDictionary<NSString *, id> *)dictionaryForKey:(NSString *)aKey;
// - (nullable NSData *)dataForKey:(NSString *)aKey;
// - (long long)longLongForKey:(NSString *)aKey;
// - (double)doubleForKey:(NSString *)aKey;
// - (BOOL)boolForKey:(NSString *)aKey;
// - (void)setString:(nullable NSString *)aString forKey:(NSString *)aKey;
// - (void)setData:(nullable NSData *)aData forKey:(NSString *)aKey;
// - (void)setArray:(nullable NSArray *)anArray forKey:(NSString *)aKey;
// - (void)setDictionary:(nullable NSDictionary<NSString *, id> *)aDictionary forKey:(NSString *)aKey;
// - (void)setLongLong:(long long)value forKey:(NSString *)aKey;
// - (void)setDouble:(double)value forKey:(NSString *)aKey;
// - (void)setBool:(BOOL)value forKey:(NSString *)aKey;
// @property (readonly, copy) NSDictionary<NSString *, id> *dictionaryRepresentation;
// - (BOOL)synchronize;
/* @end */
extern "C" NSNotificationName const NSUbiquitousKeyValueStoreDidChangeExternallyNotification __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSUbiquitousKeyValueStoreChangeReasonKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSUbiquitousKeyValueStoreChangedKeysKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
enum {
NSUbiquitousKeyValueStoreServerChange __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))),
NSUbiquitousKeyValueStoreInitialSyncChange __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))),
NSUbiquitousKeyValueStoreQuotaViolationChange __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))),
NSUbiquitousKeyValueStoreAccountChange __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
};
#pragma clang assume_nonnull end
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#pragma clang assume_nonnull begin
static const NSUInteger NSUndoCloseGroupingRunLoopOrdering = 350000;
__attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSUndoManager
#define _REWRITER_typedef_NSUndoManager
typedef struct objc_object NSUndoManager;
typedef struct {} _objc_exc_NSUndoManager;
#endif
struct NSUndoManager_IMPL {
struct NSObject_IMPL NSObject_IVARS;
id _undoStack;
id _redoStack;
NSArray *_runLoopModes;
uint64_t _NSUndoManagerPrivate1;
id _target;
id _proxy;
void *_NSUndoManagerPrivate2;
void *_NSUndoManagerPrivate3;
};
// - (void)beginUndoGrouping;
// - (void)endUndoGrouping;
// @property (readonly) NSInteger groupingLevel;
// - (void)disableUndoRegistration;
// - (void)enableUndoRegistration;
// @property (readonly, getter=isUndoRegistrationEnabled) BOOL undoRegistrationEnabled;
// @property BOOL groupsByEvent;
// @property NSUInteger levelsOfUndo;
// @property (copy) NSArray<NSRunLoopMode> *runLoopModes;
// - (void)undo;
// - (void)redo;
// - (void)undoNestedGroup;
// @property (readonly) BOOL canUndo;
// @property (readonly) BOOL canRedo;
// @property (readonly, getter=isUndoing) BOOL undoing;
// @property (readonly, getter=isRedoing) BOOL redoing;
// - (void)removeAllActions;
// - (void)removeAllActionsWithTarget:(id)target;
// - (void)registerUndoWithTarget:(id)target selector:(SEL)selector object:(nullable id)anObject;
// - (id)prepareWithInvocationTarget:(id)target;
// - (void)registerUndoWithTarget:(id)target handler:(void (^)(id target))undoHandler __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((swift_private));
// - (void)setActionIsDiscardable:(BOOL)discardable __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSString * const NSUndoManagerGroupIsDiscardableKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly) BOOL undoActionIsDiscardable __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly) BOOL redoActionIsDiscardable __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (readonly, copy) NSString *undoActionName;
// @property (readonly, copy) NSString *redoActionName;
// - (void)setActionName:(NSString *)actionName;
// @property (readonly, copy) NSString *undoMenuItemTitle;
// @property (readonly, copy) NSString *redoMenuItemTitle;
// - (NSString *)undoMenuTitleForUndoActionName:(NSString *)actionName;
// - (NSString *)redoMenuTitleForUndoActionName:(NSString *)actionName;
/* @end */
extern "C" NSNotificationName const NSUndoManagerCheckpointNotification __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSNotificationName const NSUndoManagerWillUndoChangeNotification __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSNotificationName const NSUndoManagerWillRedoChangeNotification __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSNotificationName const NSUndoManagerDidUndoChangeNotification __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSNotificationName const NSUndoManagerDidRedoChangeNotification __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSNotificationName const NSUndoManagerDidOpenUndoGroupNotification __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSNotificationName const NSUndoManagerWillCloseUndoGroupNotification __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" NSNotificationName const NSUndoManagerDidCloseUndoGroupNotification __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
#pragma clang assume_nonnull end
extern "C" {
#pragma clang assume_nonnull begin
struct SSLContext;
typedef struct __attribute__((objc_bridge(id))) SSLContext *SSLContextRef;
typedef const void *SSLConnectionRef;
typedef int SSLSessionOption; enum {
kSSLSessionOptionBreakOnServerAuth __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))) = 0,
kSSLSessionOptionBreakOnCertRequested __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))) = 1,
kSSLSessionOptionBreakOnClientAuth __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))) = 2,
kSSLSessionOptionFalseStart __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))) = 3,
kSSLSessionOptionSendOneByteRecord __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))) = 4,
kSSLSessionOptionAllowServerIdentityChange __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))) = 5,
kSSLSessionOptionFallback __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))) = 6,
kSSLSessionOptionBreakOnClientHello __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))) = 7,
kSSLSessionOptionAllowRenegotiation __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))) = 8,
kSSLSessionOptionEnableSessionTickets __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))) = 9,
};
typedef int SSLSessionState; enum {
kSSLIdle __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))),
kSSLHandshake __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))),
kSSLConnected __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))),
kSSLClosed __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))),
kSSLAborted __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" )))
};
typedef int SSLClientCertificateState; enum {
kSSLClientCertNone __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))),
kSSLClientCertRequested __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))),
kSSLClientCertSent __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))),
kSSLClientCertRejected __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" )))
};
typedef OSStatus
(*SSLReadFunc) (SSLConnectionRef connection,
void *data,
size_t *dataLength);
typedef OSStatus
(*SSLWriteFunc) (SSLConnectionRef connection,
const void *data,
size_t *dataLength);
typedef int SSLProtocolSide; enum
{
kSSLServerSide __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))),
kSSLClientSide __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" )))
};
typedef int SSLConnectionType; enum
{
kSSLStreamType __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))),
kSSLDatagramType __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" )))
};
extern const CFStringRef kSSLSessionConfig_default
__attribute__((availability(macos,introduced=10.2,deprecated=10.13,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=11.0,message="No longer supported. Use Network.framework.")));
extern const CFStringRef kSSLSessionConfig_ATSv1
__attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
extern const CFStringRef kSSLSessionConfig_ATSv1_noPFS
__attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
extern const CFStringRef kSSLSessionConfig_standard
__attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
extern const CFStringRef kSSLSessionConfig_RC4_fallback
__attribute__((availability(macos,introduced=10.2,deprecated=10.13,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=11.0,message="No longer supported. Use Network.framework.")));
extern const CFStringRef kSSLSessionConfig_TLSv1_fallback
__attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
extern const CFStringRef kSSLSessionConfig_TLSv1_RC4_fallback
__attribute__((availability(macos,introduced=10.2,deprecated=10.13,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=11.0,message="No longer supported. Use Network.framework.")));
extern const CFStringRef kSSLSessionConfig_legacy
__attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
extern const CFStringRef kSSLSessionConfig_legacy_DHE
__attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
extern const CFStringRef kSSLSessionConfig_anonymous
__attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
extern const CFStringRef kSSLSessionConfig_3DES_fallback
__attribute__((availability(macos,introduced=10.2,deprecated=10.13,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=11.0,message="No longer supported. Use Network.framework.")));
extern const CFStringRef kSSLSessionConfig_TLSv1_3DES_fallback
__attribute__((availability(macos,introduced=10.2,deprecated=10.13,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=11.0,message="No longer supported. Use Network.framework.")));
CFTypeID
SSLContextGetTypeID(void)
__attribute__((availability(macos,introduced=10.8,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
_Nullable
SSLContextRef
SSLCreateContext(CFAllocatorRef _Nullable alloc, SSLProtocolSide protocolSide, SSLConnectionType connectionType)
__attribute__((availability(macos,introduced=10.8,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLGetSessionState (SSLContextRef context,
SSLSessionState *state)
__attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLSetSessionOption (SSLContextRef context,
SSLSessionOption option,
Boolean value)
__attribute__((availability(macos,introduced=10.6,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLGetSessionOption (SSLContextRef context,
SSLSessionOption option,
Boolean *value)
__attribute__((availability(macos,introduced=10.6,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLSetIOFuncs (SSLContextRef context,
SSLReadFunc readFunc,
SSLWriteFunc writeFunc)
__attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLSetSessionConfig(SSLContextRef context,
CFStringRef config)
__attribute__((availability(macos,introduced=10.12,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=10.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLSetProtocolVersionMin (SSLContextRef context,
SSLProtocol minVersion)
__attribute__((availability(macos,introduced=10.8,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLGetProtocolVersionMin (SSLContextRef context,
SSLProtocol *minVersion)
__attribute__((availability(macos,introduced=10.8,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLSetProtocolVersionMax (SSLContextRef context,
SSLProtocol maxVersion)
__attribute__((availability(macos,introduced=10.8,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLGetProtocolVersionMax (SSLContextRef context,
SSLProtocol *maxVersion)
__attribute__((availability(macos,introduced=10.8,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLSetCertificate (SSLContextRef context,
CFArrayRef _Nullable certRefs)
__attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLSetConnection (SSLContextRef context,
SSLConnectionRef _Nullable connection)
__attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLGetConnection (SSLContextRef context,
SSLConnectionRef * _Nonnull __attribute__((cf_returns_not_retained)) connection)
__attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLSetPeerDomainName (SSLContextRef context,
const char * _Nullable peerName,
size_t peerNameLen)
__attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLGetPeerDomainNameLength (SSLContextRef context,
size_t *peerNameLen)
__attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLGetPeerDomainName (SSLContextRef context,
char *peerName,
size_t *peerNameLen)
__attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLCopyRequestedPeerNameLength (SSLContextRef ctx,
size_t *peerNameLen)
__attribute__((availability(macos,introduced=10.11,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=9.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLCopyRequestedPeerName (SSLContextRef context,
char *peerName,
size_t *peerNameLen)
__attribute__((availability(macos,introduced=10.11,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=9.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLSetDatagramHelloCookie (SSLContextRef dtlsContext,
const void * _Nullable cookie,
size_t cookieLen)
__attribute__((availability(macos,introduced=10.8,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLSetMaxDatagramRecordSize (SSLContextRef dtlsContext,
size_t maxSize)
__attribute__((availability(macos,introduced=10.8,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLGetMaxDatagramRecordSize (SSLContextRef dtlsContext,
size_t *maxSize)
__attribute__((availability(macos,introduced=10.8,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLGetNegotiatedProtocolVersion (SSLContextRef context,
SSLProtocol *protocol)
__attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLGetNumberSupportedCiphers (SSLContextRef context,
size_t *numCiphers)
__attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLGetSupportedCiphers (SSLContextRef context,
SSLCipherSuite *ciphers,
size_t *numCiphers)
__attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLGetNumberEnabledCiphers (SSLContextRef context,
size_t *numCiphers)
__attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLSetEnabledCiphers (SSLContextRef context,
const SSLCipherSuite *ciphers,
size_t numCiphers)
__attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLGetEnabledCiphers (SSLContextRef context,
SSLCipherSuite *ciphers,
size_t *numCiphers)
__attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLSetSessionTicketsEnabled (SSLContextRef context,
Boolean enabled)
__attribute__((availability(macos,introduced=10.13,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=11.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLCopyPeerTrust (SSLContextRef context,
SecTrustRef * _Nonnull __attribute__((cf_returns_retained)) trust)
__attribute__((availability(macos,introduced=10.6,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLSetPeerID (SSLContextRef context,
const void * _Nullable peerID,
size_t peerIDLen)
__attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLGetPeerID (SSLContextRef context,
const void * _Nullable * _Nonnull peerID,
size_t *peerIDLen)
__attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLGetNegotiatedCipher (SSLContextRef context,
SSLCipherSuite *cipherSuite)
__attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLSetALPNProtocols (SSLContextRef context,
CFArrayRef protocols)
__attribute__((availability(macos,introduced=10.13,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=11.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLCopyALPNProtocols (SSLContextRef context,
CFArrayRef _Nullable * _Nonnull protocols)
__attribute__((availability(macos,introduced=10.13,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=11.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLSetOCSPResponse (SSLContextRef context,
CFDataRef _Nonnull response)
__attribute__((availability(macos,introduced=10.13,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=11.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLSetEncryptionCertificate (SSLContextRef context,
CFArrayRef certRefs)
__attribute__((availability(macos,introduced=10.2,deprecated=10.11,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=9.0,message="No longer supported. Use Network.framework.")));
typedef int SSLAuthenticate; enum {
kNeverAuthenticate,
kAlwaysAuthenticate,
kTryAuthenticate
};
OSStatus
SSLSetClientSideAuthenticate (SSLContextRef context,
SSLAuthenticate auth)
__attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLAddDistinguishedName (SSLContextRef context,
const void * _Nullable derDN,
size_t derDNLen)
__attribute__((availability(macos,introduced=10.4,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLCopyDistinguishedNames (SSLContextRef context,
CFArrayRef * _Nonnull __attribute__((cf_returns_retained)) names)
__attribute__((availability(macos,introduced=10.5,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLGetClientCertificateState (SSLContextRef context,
SSLClientCertificateState *clientState)
__attribute__((availability(macos,introduced=10.3,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLHandshake (SSLContextRef context)
__attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLReHandshake (SSLContextRef context)
__attribute__((availability(macos,introduced=10.12,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=10.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLWrite (SSLContextRef context,
const void * _Nullable data,
size_t dataLength,
size_t *processed)
__attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLRead (SSLContextRef context,
void * data,
size_t dataLength,
size_t *processed)
__attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLGetBufferedReadSize (SSLContextRef context,
size_t *bufferSize)
__attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLGetDatagramWriteSize (SSLContextRef dtlsContext,
size_t *bufSize)
__attribute__((availability(macos,introduced=10.8,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLClose (SSLContextRef context)
__attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
OSStatus
SSLSetError (SSLContextRef context,
OSStatus status)
__attribute__((availability(macos,introduced=10.13,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=11.0,deprecated=13.0,message="No longer supported. Use Network.framework.")));
#pragma clang assume_nonnull end
}
// @class NSString;
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
// @class NSURL;
#ifndef _REWRITER_typedef_NSURL
#define _REWRITER_typedef_NSURL
typedef struct objc_object NSURL;
typedef struct {} _objc_exc_NSURL;
#endif
// @class NSError;
#ifndef _REWRITER_typedef_NSError
#define _REWRITER_typedef_NSError
typedef struct objc_object NSError;
typedef struct {} _objc_exc_NSError;
#endif
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
// @class NSDictionary;
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
// @class NSInputStream;
#ifndef _REWRITER_typedef_NSInputStream
#define _REWRITER_typedef_NSInputStream
typedef struct objc_object NSInputStream;
typedef struct {} _objc_exc_NSInputStream;
#endif
// @class NSOutputStream;
#ifndef _REWRITER_typedef_NSOutputStream
#define _REWRITER_typedef_NSOutputStream
typedef struct objc_object NSOutputStream;
typedef struct {} _objc_exc_NSOutputStream;
#endif
// @class NSData;
#ifndef _REWRITER_typedef_NSData
#define _REWRITER_typedef_NSData
typedef struct objc_object NSData;
typedef struct {} _objc_exc_NSData;
#endif
// @class NSOperationQueue;
#ifndef _REWRITER_typedef_NSOperationQueue
#define _REWRITER_typedef_NSOperationQueue
typedef struct objc_object NSOperationQueue;
typedef struct {} _objc_exc_NSOperationQueue;
#endif
// @class NSURLCache;
#ifndef _REWRITER_typedef_NSURLCache
#define _REWRITER_typedef_NSURLCache
typedef struct objc_object NSURLCache;
typedef struct {} _objc_exc_NSURLCache;
#endif
// @class NSURLResponse;
#ifndef _REWRITER_typedef_NSURLResponse
#define _REWRITER_typedef_NSURLResponse
typedef struct objc_object NSURLResponse;
typedef struct {} _objc_exc_NSURLResponse;
#endif
// @class NSHTTPURLResponse;
#ifndef _REWRITER_typedef_NSHTTPURLResponse
#define _REWRITER_typedef_NSHTTPURLResponse
typedef struct objc_object NSHTTPURLResponse;
typedef struct {} _objc_exc_NSHTTPURLResponse;
#endif
// @class NSHTTPCookie;
#ifndef _REWRITER_typedef_NSHTTPCookie
#define _REWRITER_typedef_NSHTTPCookie
typedef struct objc_object NSHTTPCookie;
typedef struct {} _objc_exc_NSHTTPCookie;
#endif
// @class NSCachedURLResponse;
#ifndef _REWRITER_typedef_NSCachedURLResponse
#define _REWRITER_typedef_NSCachedURLResponse
typedef struct objc_object NSCachedURLResponse;
typedef struct {} _objc_exc_NSCachedURLResponse;
#endif
// @class NSURLAuthenticationChallenge;
#ifndef _REWRITER_typedef_NSURLAuthenticationChallenge
#define _REWRITER_typedef_NSURLAuthenticationChallenge
typedef struct objc_object NSURLAuthenticationChallenge;
typedef struct {} _objc_exc_NSURLAuthenticationChallenge;
#endif
// @class NSURLProtectionSpace;
#ifndef _REWRITER_typedef_NSURLProtectionSpace
#define _REWRITER_typedef_NSURLProtectionSpace
typedef struct objc_object NSURLProtectionSpace;
typedef struct {} _objc_exc_NSURLProtectionSpace;
#endif
// @class NSURLCredential;
#ifndef _REWRITER_typedef_NSURLCredential
#define _REWRITER_typedef_NSURLCredential
typedef struct objc_object NSURLCredential;
typedef struct {} _objc_exc_NSURLCredential;
#endif
// @class NSURLCredentialStorage;
#ifndef _REWRITER_typedef_NSURLCredentialStorage
#define _REWRITER_typedef_NSURLCredentialStorage
typedef struct objc_object NSURLCredentialStorage;
typedef struct {} _objc_exc_NSURLCredentialStorage;
#endif
// @class NSURLSessionDataTask;
#ifndef _REWRITER_typedef_NSURLSessionDataTask
#define _REWRITER_typedef_NSURLSessionDataTask
typedef struct objc_object NSURLSessionDataTask;
typedef struct {} _objc_exc_NSURLSessionDataTask;
#endif
// @class NSURLSessionUploadTask;
#ifndef _REWRITER_typedef_NSURLSessionUploadTask
#define _REWRITER_typedef_NSURLSessionUploadTask
typedef struct objc_object NSURLSessionUploadTask;
typedef struct {} _objc_exc_NSURLSessionUploadTask;
#endif
// @class NSURLSessionDownloadTask;
#ifndef _REWRITER_typedef_NSURLSessionDownloadTask
#define _REWRITER_typedef_NSURLSessionDownloadTask
typedef struct objc_object NSURLSessionDownloadTask;
typedef struct {} _objc_exc_NSURLSessionDownloadTask;
#endif
// @class NSNetService;
#ifndef _REWRITER_typedef_NSNetService
#define _REWRITER_typedef_NSNetService
typedef struct objc_object NSNetService;
typedef struct {} _objc_exc_NSNetService;
#endif
// @class NSURLSession;
#ifndef _REWRITER_typedef_NSURLSession
#define _REWRITER_typedef_NSURLSession
typedef struct objc_object NSURLSession;
typedef struct {} _objc_exc_NSURLSession;
#endif
// @class NSURLSessionDataTask;
#ifndef _REWRITER_typedef_NSURLSessionDataTask
#define _REWRITER_typedef_NSURLSessionDataTask
typedef struct objc_object NSURLSessionDataTask;
typedef struct {} _objc_exc_NSURLSessionDataTask;
#endif
// @class NSURLSessionUploadTask;
#ifndef _REWRITER_typedef_NSURLSessionUploadTask
#define _REWRITER_typedef_NSURLSessionUploadTask
typedef struct objc_object NSURLSessionUploadTask;
typedef struct {} _objc_exc_NSURLSessionUploadTask;
#endif
// @class NSURLSessionDownloadTask;
#ifndef _REWRITER_typedef_NSURLSessionDownloadTask
#define _REWRITER_typedef_NSURLSessionDownloadTask
typedef struct objc_object NSURLSessionDownloadTask;
typedef struct {} _objc_exc_NSURLSessionDownloadTask;
#endif
// @class NSURLSessionStreamTask;
#ifndef _REWRITER_typedef_NSURLSessionStreamTask
#define _REWRITER_typedef_NSURLSessionStreamTask
typedef struct objc_object NSURLSessionStreamTask;
typedef struct {} _objc_exc_NSURLSessionStreamTask;
#endif
// @class NSURLSessionWebSocketTask;
#ifndef _REWRITER_typedef_NSURLSessionWebSocketTask
#define _REWRITER_typedef_NSURLSessionWebSocketTask
typedef struct objc_object NSURLSessionWebSocketTask;
typedef struct {} _objc_exc_NSURLSessionWebSocketTask;
#endif
// @class NSURLSessionConfiguration;
#ifndef _REWRITER_typedef_NSURLSessionConfiguration
#define _REWRITER_typedef_NSURLSessionConfiguration
typedef struct objc_object NSURLSessionConfiguration;
typedef struct {} _objc_exc_NSURLSessionConfiguration;
#endif
// @protocol NSURLSessionDelegate;
// @class NSURLSessionTaskMetrics;
#ifndef _REWRITER_typedef_NSURLSessionTaskMetrics
#define _REWRITER_typedef_NSURLSessionTaskMetrics
typedef struct objc_object NSURLSessionTaskMetrics;
typedef struct {} _objc_exc_NSURLSessionTaskMetrics;
#endif
// @class NSDateInterval;
#ifndef _REWRITER_typedef_NSDateInterval
#define _REWRITER_typedef_NSDateInterval
typedef struct objc_object NSDateInterval;
typedef struct {} _objc_exc_NSDateInterval;
#endif
#pragma clang assume_nonnull begin
extern "C" const int64_t NSURLSessionTransferSizeUnknown __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
__attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSURLSession
#define _REWRITER_typedef_NSURLSession
typedef struct objc_object NSURLSession;
typedef struct {} _objc_exc_NSURLSession;
#endif
struct NSURLSession_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
@property (class, readonly, strong) NSURLSession *sharedSession;
// + (NSURLSession *)sessionWithConfiguration:(NSURLSessionConfiguration *)configuration;
// + (NSURLSession *)sessionWithConfiguration:(NSURLSessionConfiguration *)configuration delegate:(nullable id <NSURLSessionDelegate>)delegate delegateQueue:(nullable NSOperationQueue *)queue;
// @property (readonly, retain) NSOperationQueue *delegateQueue;
// @property (nullable, readonly, retain) id <NSURLSessionDelegate> delegate;
// @property (readonly, copy) NSURLSessionConfiguration *configuration;
// @property (nullable, copy) NSString *sessionDescription;
// - (void)finishTasksAndInvalidate;
// - (void)invalidateAndCancel;
// - (void)resetWithCompletionHandler:(void (^)(void))completionHandler;
// - (void)flushWithCompletionHandler:(void (^)(void))completionHandler;
// - (void)getTasksWithCompletionHandler:(void (^)(NSArray<NSURLSessionDataTask *> *dataTasks, NSArray<NSURLSessionUploadTask *> *uploadTasks, NSArray<NSURLSessionDownloadTask *> *downloadTasks))completionHandler;
// - (void)getAllTasksWithCompletionHandler:(void (^)(NSArray<__kindof NSURLSessionTask *> *tasks))completionHandler __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSURLSessionDataTask *)dataTaskWithRequest:(NSURLRequest *)request;
// - (NSURLSessionDataTask *)dataTaskWithURL:(NSURL *)url;
// - (NSURLSessionUploadTask *)uploadTaskWithRequest:(NSURLRequest *)request fromFile:(NSURL *)fileURL;
// - (NSURLSessionUploadTask *)uploadTaskWithRequest:(NSURLRequest *)request fromData:(NSData *)bodyData;
// - (NSURLSessionUploadTask *)uploadTaskWithStreamedRequest:(NSURLRequest *)request;
// - (NSURLSessionDownloadTask *)downloadTaskWithRequest:(NSURLRequest *)request;
// - (NSURLSessionDownloadTask *)downloadTaskWithURL:(NSURL *)url;
// - (NSURLSessionDownloadTask *)downloadTaskWithResumeData:(NSData *)resumeData;
// - (NSURLSessionStreamTask *)streamTaskWithHostName:(NSString *)hostname port:(NSInteger)port __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (NSURLSessionStreamTask *)streamTaskWithNetService:(NSNetService *)service __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,unavailable)));
// - (NSURLSessionWebSocketTask *)webSocketTaskWithURL:(NSURL *)url __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// - (NSURLSessionWebSocketTask *)webSocketTaskWithURL:(NSURL *)url protocols:(NSArray<NSString *>*)protocols __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// - (NSURLSessionWebSocketTask *)webSocketTaskWithRequest:(NSURLRequest *)request __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// - (instancetype)init __attribute__((availability(macos,introduced=10.9,deprecated=10.15,message="Please use +[NSURLSession sessionWithConfiguration:] or other class methods to create instances"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Please use +[NSURLSession sessionWithConfiguration:] or other class methods to create instances"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Please use +[NSURLSession sessionWithConfiguration:] or other class methods to create instances"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Please use +[NSURLSession sessionWithConfiguration:] or other class methods to create instances")));
// + (instancetype)new __attribute__((availability(macos,introduced=10.9,deprecated=10.15,message="Please use +[NSURLSession sessionWithConfiguration:] or other class methods to create instances"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Please use +[NSURLSession sessionWithConfiguration:] or other class methods to create instances"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Please use +[NSURLSession sessionWithConfiguration:] or other class methods to create instances"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Please use +[NSURLSession sessionWithConfiguration:] or other class methods to create instances")));
/* @end */
// @interface NSURLSession (NSURLSessionAsynchronousConvenience)
// - (NSURLSessionDataTask *)dataTaskWithRequest:(NSURLRequest *)request completionHandler:(void (^)(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error))completionHandler;
// - (NSURLSessionDataTask *)dataTaskWithURL:(NSURL *)url completionHandler:(void (^)(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error))completionHandler;
// - (NSURLSessionUploadTask *)uploadTaskWithRequest:(NSURLRequest *)request fromFile:(NSURL *)fileURL completionHandler:(void (^)(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error))completionHandler;
// - (NSURLSessionUploadTask *)uploadTaskWithRequest:(NSURLRequest *)request fromData:(nullable NSData *)bodyData completionHandler:(void (^)(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error))completionHandler;
// - (NSURLSessionDownloadTask *)downloadTaskWithRequest:(NSURLRequest *)request completionHandler:(void (^)(NSURL * _Nullable location, NSURLResponse * _Nullable response, NSError * _Nullable error))completionHandler;
// - (NSURLSessionDownloadTask *)downloadTaskWithURL:(NSURL *)url completionHandler:(void (^)(NSURL * _Nullable location, NSURLResponse * _Nullable response, NSError * _Nullable error))completionHandler;
// - (NSURLSessionDownloadTask *)downloadTaskWithResumeData:(NSData *)resumeData completionHandler:(void (^)(NSURL * _Nullable location, NSURLResponse * _Nullable response, NSError * _Nullable error))completionHandler;
/* @end */
typedef NSInteger NSURLSessionTaskState; enum {
NSURLSessionTaskStateRunning = 0,
NSURLSessionTaskStateSuspended = 1,
NSURLSessionTaskStateCanceling = 2,
NSURLSessionTaskStateCompleted = 3,
} __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
__attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSURLSessionTask
#define _REWRITER_typedef_NSURLSessionTask
typedef struct objc_object NSURLSessionTask;
typedef struct {} _objc_exc_NSURLSessionTask;
#endif
struct NSURLSessionTask_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// @property (readonly) NSUInteger taskIdentifier;
// @property (nullable, readonly, copy) NSURLRequest *originalRequest;
// @property (nullable, readonly, copy) NSURLRequest *currentRequest;
// @property (nullable, readonly, copy) NSURLResponse *response;
// @property (readonly, strong) NSProgress *progress __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// @property (nullable, copy) NSDate *earliestBeginDate __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// @property int64_t countOfBytesClientExpectsToSend __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// @property int64_t countOfBytesClientExpectsToReceive __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// @property (readonly) int64_t countOfBytesReceived;
// @property (readonly) int64_t countOfBytesSent;
// @property (readonly) int64_t countOfBytesExpectedToSend;
// @property (readonly) int64_t countOfBytesExpectedToReceive;
// @property (nullable, copy) NSString *taskDescription;
// - (void)cancel;
// @property (readonly) NSURLSessionTaskState state;
// @property (nullable, readonly, copy) NSError *error;
// - (void)suspend;
// - (void)resume;
// @property float priority __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// - (instancetype)init __attribute__((availability(macos,introduced=10.9,deprecated=10.15,message="Not supported"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Not supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Not supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Not supported")));
// + (instancetype)new __attribute__((availability(macos,introduced=10.9,deprecated=10.15,message="Not supported"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Not supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Not supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Not supported")));
/* @end */
extern "C" const float NSURLSessionTaskPriorityDefault __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" const float NSURLSessionTaskPriorityLow __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
extern "C" const float NSURLSessionTaskPriorityHigh __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
#ifndef _REWRITER_typedef_NSURLSessionDataTask
#define _REWRITER_typedef_NSURLSessionDataTask
typedef struct objc_object NSURLSessionDataTask;
typedef struct {} _objc_exc_NSURLSessionDataTask;
#endif
struct NSURLSessionDataTask_IMPL {
struct NSURLSessionTask_IMPL NSURLSessionTask_IVARS;
};
// - (instancetype)init __attribute__((availability(macos,introduced=10.9,deprecated=10.15,message="Please use -[NSURLSession dataTaskWithRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Please use -[NSURLSession dataTaskWithRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Please use -[NSURLSession dataTaskWithRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Please use -[NSURLSession dataTaskWithRequest:] or other NSURLSession methods to create instances")));
// + (instancetype)new __attribute__((availability(macos,introduced=10.9,deprecated=10.15,message="Please use -[NSURLSession dataTaskWithRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Please use -[NSURLSession dataTaskWithRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Please use -[NSURLSession dataTaskWithRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Please use -[NSURLSession dataTaskWithRequest:] or other NSURLSession methods to create instances")));
/* @end */
#ifndef _REWRITER_typedef_NSURLSessionUploadTask
#define _REWRITER_typedef_NSURLSessionUploadTask
typedef struct objc_object NSURLSessionUploadTask;
typedef struct {} _objc_exc_NSURLSessionUploadTask;
#endif
struct NSURLSessionUploadTask_IMPL {
struct NSURLSessionDataTask_IMPL NSURLSessionDataTask_IVARS;
};
// - (instancetype)init __attribute__((availability(macos,introduced=10.9,deprecated=10.15,message="Please use -[NSURLSession uploadTaskWithStreamedRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Please use -[NSURLSession uploadTaskWithStreamedRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Please use -[NSURLSession uploadTaskWithStreamedRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Please use -[NSURLSession uploadTaskWithStreamedRequest:] or other NSURLSession methods to create instances")));
// + (instancetype)new __attribute__((availability(macos,introduced=10.9,deprecated=10.15,message="Please use -[NSURLSession uploadTaskWithStreamedRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Please use -[NSURLSession uploadTaskWithStreamedRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Please use -[NSURLSession uploadTaskWithStreamedRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Please use -[NSURLSession uploadTaskWithStreamedRequest:] or other NSURLSession methods to create instances")));
/* @end */
#ifndef _REWRITER_typedef_NSURLSessionDownloadTask
#define _REWRITER_typedef_NSURLSessionDownloadTask
typedef struct objc_object NSURLSessionDownloadTask;
typedef struct {} _objc_exc_NSURLSessionDownloadTask;
#endif
struct NSURLSessionDownloadTask_IMPL {
struct NSURLSessionTask_IMPL NSURLSessionTask_IVARS;
};
// - (void)cancelByProducingResumeData:(void (^)(NSData * _Nullable resumeData))completionHandler;
// - (instancetype)init __attribute__((availability(macos,introduced=10.9,deprecated=10.15,message="Please use -[NSURLSession downloadTaskWithRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Please use -[NSURLSession downloadTaskWithRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Please use -[NSURLSession downloadTaskWithRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Please use -[NSURLSession downloadTaskWithRequest:] or other NSURLSession methods to create instances")));
// + (instancetype)new __attribute__((availability(macos,introduced=10.9,deprecated=10.15,message="Please use -[NSURLSession downloadTaskWithRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Please use -[NSURLSession downloadTaskWithRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Please use -[NSURLSession downloadTaskWithRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Please use -[NSURLSession downloadTaskWithRequest:] or other NSURLSession methods to create instances")));
/* @end */
__attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSURLSessionStreamTask
#define _REWRITER_typedef_NSURLSessionStreamTask
typedef struct objc_object NSURLSessionStreamTask;
typedef struct {} _objc_exc_NSURLSessionStreamTask;
#endif
struct NSURLSessionStreamTask_IMPL {
struct NSURLSessionTask_IMPL NSURLSessionTask_IVARS;
};
// - (void)readDataOfMinLength:(NSUInteger)minBytes maxLength:(NSUInteger)maxBytes timeout:(NSTimeInterval)timeout completionHandler:(void (^) (NSData * _Nullable data, BOOL atEOF, NSError * _Nullable error))completionHandler;
// - (void)writeData:(NSData *)data timeout:(NSTimeInterval)timeout completionHandler:(void (^) (NSError * _Nullable error))completionHandler;
// - (void)captureStreams;
// - (void)closeWrite;
// - (void)closeRead;
// - (void)startSecureConnection;
// - (void)stopSecureConnection __attribute__((availability(macos,introduced=10.9,deprecated=10.15,message="TLS cannot be disabled once it is enabled"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="TLS cannot be disabled once it is enabled"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="TLS cannot be disabled once it is enabled"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="TLS cannot be disabled once it is enabled")));
// - (instancetype)init __attribute__((availability(macos,introduced=10.9,deprecated=10.15,message="Please use -[NSURLSession streamTaskWithHostName:port:] or other NSURLSession methods to create instances"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Please use -[NSURLSession streamTaskWithHostName:port:] or other NSURLSession methods to create instances"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Please use -[NSURLSession streamTaskWithHostName:port:] or other NSURLSession methods to create instances"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Please use -[NSURLSession streamTaskWithHostName:port:] or other NSURLSession methods to create instances")));
// + (instancetype)new __attribute__((availability(macos,introduced=10.9,deprecated=10.15,message="Please use -[NSURLSession streamTaskWithHostName:port:] or other NSURLSession methods to create instances"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Please use -[NSURLSession streamTaskWithHostName:port:] or other NSURLSession methods to create instances"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Please use -[NSURLSession streamTaskWithHostName:port:] or other NSURLSession methods to create instances"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Please use -[NSURLSession streamTaskWithHostName:port:] or other NSURLSession methods to create instances")));
/* @end */
typedef NSInteger NSURLSessionWebSocketMessageType; enum {
NSURLSessionWebSocketMessageTypeData = 0,
NSURLSessionWebSocketMessageTypeString = 1,
} __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)))
#ifndef _REWRITER_typedef_NSURLSessionWebSocketMessage
#define _REWRITER_typedef_NSURLSessionWebSocketMessage
typedef struct objc_object NSURLSessionWebSocketMessage;
typedef struct {} _objc_exc_NSURLSessionWebSocketMessage;
#endif
struct NSURLSessionWebSocketMessage_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// - (instancetype)initWithData:(NSData *)data __attribute__((objc_designated_initializer));
// - (instancetype)initWithString:(NSString *)string __attribute__((objc_designated_initializer));
// @property (readonly) NSURLSessionWebSocketMessageType type;
// @property (nullable, readonly, copy) NSData *data;
// @property (nullable, readonly, copy) NSString *string;
// - (instancetype)init __attribute__((unavailable));
// + (instancetype)new __attribute__((unavailable));
/* @end */
typedef NSInteger NSURLSessionWebSocketCloseCode; enum
{
NSURLSessionWebSocketCloseCodeInvalid = 0,
NSURLSessionWebSocketCloseCodeNormalClosure = 1000,
NSURLSessionWebSocketCloseCodeGoingAway = 1001,
NSURLSessionWebSocketCloseCodeProtocolError = 1002,
NSURLSessionWebSocketCloseCodeUnsupportedData = 1003,
NSURLSessionWebSocketCloseCodeNoStatusReceived = 1005,
NSURLSessionWebSocketCloseCodeAbnormalClosure = 1006,
NSURLSessionWebSocketCloseCodeInvalidFramePayloadData = 1007,
NSURLSessionWebSocketCloseCodePolicyViolation = 1008,
NSURLSessionWebSocketCloseCodeMessageTooBig = 1009,
NSURLSessionWebSocketCloseCodeMandatoryExtensionMissing = 1010,
NSURLSessionWebSocketCloseCodeInternalServerError = 1011,
NSURLSessionWebSocketCloseCodeTLSHandshakeFailure = 1015,
} __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)))
#ifndef _REWRITER_typedef_NSURLSessionWebSocketTask
#define _REWRITER_typedef_NSURLSessionWebSocketTask
typedef struct objc_object NSURLSessionWebSocketTask;
typedef struct {} _objc_exc_NSURLSessionWebSocketTask;
#endif
struct NSURLSessionWebSocketTask_IMPL {
struct NSURLSessionTask_IMPL NSURLSessionTask_IVARS;
};
// - (void)sendMessage:(NSURLSessionWebSocketMessage *)message completionHandler:(void (^)(NSError * _Nullable error))completionHandler;
// - (void)receiveMessageWithCompletionHandler:(void (^)(NSURLSessionWebSocketMessage* _Nullable message, NSError * _Nullable error))completionHandler;
// - (void)sendPingWithPongReceiveHandler:(void (^)(NSError* _Nullable error))pongReceiveHandler;
// - (void)cancelWithCloseCode:(NSURLSessionWebSocketCloseCode)closeCode reason:(NSData * _Nullable)reason;
// @property NSInteger maximumMessageSize;
// @property (readonly) NSURLSessionWebSocketCloseCode closeCode;
// @property (nullable, readonly, copy) NSData *closeReason;
// - (instancetype)init __attribute__((unavailable));
// + (instancetype)new __attribute__((unavailable));
/* @end */
typedef NSInteger NSURLSessionMultipathServiceType; enum
{
NSURLSessionMultipathServiceTypeNone = 0,
NSURLSessionMultipathServiceTypeHandover = 1,
NSURLSessionMultipathServiceTypeInteractive = 2,
NSURLSessionMultipathServiceTypeAggregate = 3
} __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(macos,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((swift_name("URLSessionConfiguration.MultipathServiceType")));
__attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSURLSessionConfiguration
#define _REWRITER_typedef_NSURLSessionConfiguration
typedef struct objc_object NSURLSessionConfiguration;
typedef struct {} _objc_exc_NSURLSessionConfiguration;
#endif
struct NSURLSessionConfiguration_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
@property (class, readonly, strong) NSURLSessionConfiguration *defaultSessionConfiguration;
@property (class, readonly, strong) NSURLSessionConfiguration *ephemeralSessionConfiguration;
// + (NSURLSessionConfiguration *)backgroundSessionConfigurationWithIdentifier:(NSString *)identifier __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, readonly, copy) NSString *identifier;
// @property NSURLRequestCachePolicy requestCachePolicy;
// @property NSTimeInterval timeoutIntervalForRequest;
// @property NSTimeInterval timeoutIntervalForResource;
// @property NSURLRequestNetworkServiceType networkServiceType;
// @property BOOL allowsCellularAccess;
// @property BOOL allowsExpensiveNetworkAccess __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// @property BOOL allowsConstrainedNetworkAccess __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// @property BOOL waitsForConnectivity __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// @property (getter=isDiscretionary) BOOL discretionary __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, copy) NSString *sharedContainerIdentifier __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property BOOL sessionSendsLaunchEvents __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
// @property (nullable, copy) NSDictionary *connectionProxyDictionary;
// @property SSLProtocol TLSMinimumSupportedProtocol __attribute__((availability(macos,introduced=10.9,deprecated=100000,replacement="TLSMinimumSupportedProtocolVersion"))) __attribute__((availability(ios,introduced=7.0,deprecated=100000,replacement="TLSMinimumSupportedProtocolVersion"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="TLSMinimumSupportedProtocolVersion"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="TLSMinimumSupportedProtocolVersion")));
// @property SSLProtocol TLSMaximumSupportedProtocol __attribute__((availability(macos,introduced=10.9,deprecated=100000,replacement="TLSMaximumSupportedProtocolVersion"))) __attribute__((availability(ios,introduced=7.0,deprecated=100000,replacement="TLSMaximumSupportedProtocolVersion"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="TLSMaximumSupportedProtocolVersion"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="TLSMaximumSupportedProtocolVersion")));
// @property tls_protocol_version_t TLSMinimumSupportedProtocolVersion __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// @property tls_protocol_version_t TLSMaximumSupportedProtocolVersion __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// @property BOOL HTTPShouldUsePipelining;
// @property BOOL HTTPShouldSetCookies;
// @property NSHTTPCookieAcceptPolicy HTTPCookieAcceptPolicy;
// @property (nullable, copy) NSDictionary *HTTPAdditionalHeaders;
// @property NSInteger HTTPMaximumConnectionsPerHost;
// @property (nullable, retain) NSHTTPCookieStorage *HTTPCookieStorage;
// @property (nullable, retain) NSURLCredentialStorage *URLCredentialStorage;
// @property (nullable, retain) NSURLCache *URLCache;
// @property BOOL shouldUseExtendedBackgroundIdleMode __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @property (nullable, copy) NSArray<Class> *protocolClasses;
// @property NSURLSessionMultipathServiceType multipathServiceType __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(macos,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable)));
// - (instancetype)init __attribute__((availability(macos,introduced=10.9,deprecated=10.15,message="Please use NSURLSessionConfiguration.defaultSessionConfiguration or other class methods to create instances"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Please use NSURLSessionConfiguration.defaultSessionConfiguration or other class methods to create instances"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Please use NSURLSessionConfiguration.defaultSessionConfiguration or other class methods to create instances"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Please use NSURLSessionConfiguration.defaultSessionConfiguration or other class methods to create instances")));
// + (instancetype)new __attribute__((availability(macos,introduced=10.9,deprecated=10.15,message="Please use NSURLSessionConfiguration.defaultSessionConfiguration or other class methods to create instances"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Please use NSURLSessionConfiguration.defaultSessionConfiguration or other class methods to create instances"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Please use NSURLSessionConfiguration.defaultSessionConfiguration or other class methods to create instances"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Please use NSURLSessionConfiguration.defaultSessionConfiguration or other class methods to create instances")));
/* @end */
typedef NSInteger NSURLSessionDelayedRequestDisposition; enum {
NSURLSessionDelayedRequestContinueLoading = 0,
NSURLSessionDelayedRequestUseNewRequest = 1,
NSURLSessionDelayedRequestCancel = 2,
} __attribute__((swift_name("URLSession.DelayedRequestDisposition"))) __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
typedef NSInteger NSURLSessionAuthChallengeDisposition; enum {
NSURLSessionAuthChallengeUseCredential = 0,
NSURLSessionAuthChallengePerformDefaultHandling = 1,
NSURLSessionAuthChallengeCancelAuthenticationChallenge = 2,
NSURLSessionAuthChallengeRejectProtectionSpace = 3,
} __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
typedef NSInteger NSURLSessionResponseDisposition; enum {
NSURLSessionResponseCancel = 0,
NSURLSessionResponseAllow = 1,
NSURLSessionResponseBecomeDownload = 2,
NSURLSessionResponseBecomeStream __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 3,
} __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @protocol NSURLSessionDelegate <NSObject>
/* @optional */
// - (void)URLSession:(NSURLSession *)session didBecomeInvalidWithError:(nullable NSError *)error;
#if 0
- (void)URLSession:(NSURLSession *)session didReceiveChallenge:(NSURLAuthenticationChallenge *)challenge
completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential * _Nullable credential))completionHandler;
#endif
// - (void)URLSessionDidFinishEventsForBackgroundURLSession:(NSURLSession *)session __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable)));
/* @end */
// @protocol NSURLSessionTaskDelegate <NSURLSessionDelegate>
/* @optional */
#if 0
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task
willBeginDelayedRequest:(NSURLRequest *)request
completionHandler:(void (^)(NSURLSessionDelayedRequestDisposition disposition, NSURLRequest * _Nullable newRequest))completionHandler
__attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
#endif
#if 0
- (void)URLSession:(NSURLSession *)session taskIsWaitingForConnectivity:(NSURLSessionTask *)task
__attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
#endif
#if 0
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task
willPerformHTTPRedirection:(NSHTTPURLResponse *)response
newRequest:(NSURLRequest *)request
completionHandler:(void (^)(NSURLRequest * _Nullable))completionHandler;
#endif
#if 0
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task
didReceiveChallenge:(NSURLAuthenticationChallenge *)challenge
completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential * _Nullable credential))completionHandler;
#endif
#if 0
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task
needNewBodyStream:(void (^)(NSInputStream * _Nullable bodyStream))completionHandler;
#endif
#if 0
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task
didSendBodyData:(int64_t)bytesSent
totalBytesSent:(int64_t)totalBytesSent
totalBytesExpectedToSend:(int64_t)totalBytesExpectedToSend;
#endif
// - (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didFinishCollectingMetrics:(NSURLSessionTaskMetrics *)metrics __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
#if 0
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task
didCompleteWithError:(nullable NSError *)error;
#endif
/* @end */
// @protocol NSURLSessionDataDelegate <NSURLSessionTaskDelegate>
/* @optional */
#if 0
- (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)dataTask
didReceiveResponse:(NSURLResponse *)response
completionHandler:(void (^)(NSURLSessionResponseDisposition disposition))completionHandler;
#endif
#if 0
- (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)dataTask
didBecomeDownloadTask:(NSURLSessionDownloadTask *)downloadTask;
#endif
#if 0
- (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)dataTask
didBecomeStreamTask:(NSURLSessionStreamTask *)streamTask;
#endif
#if 0
- (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)dataTask
didReceiveData:(NSData *)data;
#endif
#if 0
- (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)dataTask
willCacheResponse:(NSCachedURLResponse *)proposedResponse
completionHandler:(void (^)(NSCachedURLResponse * _Nullable cachedResponse))completionHandler;
#endif
/* @end */
// @protocol NSURLSessionDownloadDelegate <NSURLSessionTaskDelegate>
#if 0
- (void)URLSession:(NSURLSession *)session downloadTask:(NSURLSessionDownloadTask *)downloadTask
didFinishDownloadingToURL:(NSURL *)location;
#endif
/* @optional */
#if 0
- (void)URLSession:(NSURLSession *)session downloadTask:(NSURLSessionDownloadTask *)downloadTask
didWriteData:(int64_t)bytesWritten
totalBytesWritten:(int64_t)totalBytesWritten
totalBytesExpectedToWrite:(int64_t)totalBytesExpectedToWrite;
#endif
#if 0
- (void)URLSession:(NSURLSession *)session downloadTask:(NSURLSessionDownloadTask *)downloadTask
didResumeAtOffset:(int64_t)fileOffset
expectedTotalBytes:(int64_t)expectedTotalBytes;
#endif
/* @end */
// @protocol NSURLSessionStreamDelegate <NSURLSessionTaskDelegate>
/* @optional */
// - (void)URLSession:(NSURLSession *)session readClosedForStreamTask:(NSURLSessionStreamTask *)streamTask;
// - (void)URLSession:(NSURLSession *)session writeClosedForStreamTask:(NSURLSessionStreamTask *)streamTask;
// - (void)URLSession:(NSURLSession *)session betterRouteDiscoveredForStreamTask:(NSURLSessionStreamTask *)streamTask;
#if 0
- (void)URLSession:(NSURLSession *)session streamTask:(NSURLSessionStreamTask *)streamTask
didBecomeInputStream:(NSInputStream *)inputStream
outputStream:(NSOutputStream *)outputStream;
#endif
/* @end */
__attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)))
// @protocol NSURLSessionWebSocketDelegate <NSURLSessionTaskDelegate>
/* @optional */
// - (void)URLSession:(NSURLSession *)session webSocketTask:(NSURLSessionWebSocketTask *)webSocketTask didOpenWithProtocol:(NSString * _Nullable) protocol;
// - (void)URLSession:(NSURLSession *)session webSocketTask:(NSURLSessionWebSocketTask *)webSocketTask didCloseWithCode:(NSURLSessionWebSocketCloseCode)closeCode reason:(NSData * _Nullable)reason;
/* @end */
extern "C" NSString * const NSURLSessionDownloadTaskResumeData __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)));
// @interface NSURLSessionConfiguration (NSURLSessionDeprecated)
// + (NSURLSessionConfiguration *)backgroundSessionConfiguration:(NSString *)identifier __attribute__((availability(macos,introduced=10.9,deprecated=10.10,replacement="-backgroundSessionConfigurationWithIdentifier:"))) __attribute__((availability(ios,introduced=7.0,deprecated=8.0,replacement="-backgroundSessionConfigurationWithIdentifier:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="-backgroundSessionConfigurationWithIdentifier:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="-backgroundSessionConfigurationWithIdentifier:")));
/* @end */
typedef NSInteger NSURLSessionTaskMetricsResourceFetchType; enum {
NSURLSessionTaskMetricsResourceFetchTypeUnknown,
NSURLSessionTaskMetricsResourceFetchTypeNetworkLoad,
NSURLSessionTaskMetricsResourceFetchTypeServerPush,
NSURLSessionTaskMetricsResourceFetchTypeLocalCache,
} __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSURLSessionTaskTransactionMetrics
#define _REWRITER_typedef_NSURLSessionTaskTransactionMetrics
typedef struct objc_object NSURLSessionTaskTransactionMetrics;
typedef struct {} _objc_exc_NSURLSessionTaskTransactionMetrics;
#endif
struct NSURLSessionTaskTransactionMetrics_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// @property (copy, readonly) NSURLRequest *request;
// @property (nullable, copy, readonly) NSURLResponse *response;
// @property (nullable, copy, readonly) NSDate *fetchStartDate;
// @property (nullable, copy, readonly) NSDate *domainLookupStartDate;
// @property (nullable, copy, readonly) NSDate *domainLookupEndDate;
// @property (nullable, copy, readonly) NSDate *connectStartDate;
// @property (nullable, copy, readonly) NSDate *secureConnectionStartDate;
// @property (nullable, copy, readonly) NSDate *secureConnectionEndDate;
// @property (nullable, copy, readonly) NSDate *connectEndDate;
// @property (nullable, copy, readonly) NSDate *requestStartDate;
// @property (nullable, copy, readonly) NSDate *requestEndDate;
// @property (nullable, copy, readonly) NSDate *responseStartDate;
// @property (nullable, copy, readonly) NSDate *responseEndDate;
// @property (nullable, copy, readonly) NSString *networkProtocolName;
// @property (assign, readonly, getter=isProxyConnection) BOOL proxyConnection;
// @property (assign, readonly, getter=isReusedConnection) BOOL reusedConnection;
// @property (assign, readonly) NSURLSessionTaskMetricsResourceFetchType resourceFetchType;
// @property (readonly) int64_t countOfRequestHeaderBytesSent __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// @property (readonly) int64_t countOfRequestBodyBytesSent __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// @property (readonly) int64_t countOfRequestBodyBytesBeforeEncoding __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// @property (readonly) int64_t countOfResponseHeaderBytesReceived __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// @property (readonly) int64_t countOfResponseBodyBytesReceived __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// @property (readonly) int64_t countOfResponseBodyBytesAfterDecoding __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// @property (nullable, copy, readonly) NSString *localAddress __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// @property (nullable, copy, readonly) NSNumber *localPort __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// @property (nullable, copy, readonly) NSString *remoteAddress __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// @property (nullable, copy, readonly) NSNumber *remotePort __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// @property (nullable, copy, readonly) NSNumber *negotiatedTLSProtocolVersion __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// @property (nullable, copy, readonly) NSNumber *negotiatedTLSCipherSuite __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// @property (readonly, getter=isCellular) BOOL cellular __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// @property (readonly, getter=isExpensive) BOOL expensive __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// @property (readonly, getter=isConstrained) BOOL constrained __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// @property (readonly, getter=isMultipath) BOOL multipath __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// - (instancetype)init __attribute__((availability(macos,introduced=10.12,deprecated=10.15,message="Not supported"))) __attribute__((availability(ios,introduced=10.0,deprecated=13.0,message="Not supported"))) __attribute__((availability(watchos,introduced=3.0,deprecated=6.0,message="Not supported"))) __attribute__((availability(tvos,introduced=10.0,deprecated=13.0,message="Not supported")));
// + (instancetype)new __attribute__((availability(macos,introduced=10.12,deprecated=10.15,message="Not supported"))) __attribute__((availability(ios,introduced=10.0,deprecated=13.0,message="Not supported"))) __attribute__((availability(watchos,introduced=3.0,deprecated=6.0,message="Not supported"))) __attribute__((availability(tvos,introduced=10.0,deprecated=13.0,message="Not supported")));
/* @end */
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)))
#ifndef _REWRITER_typedef_NSURLSessionTaskMetrics
#define _REWRITER_typedef_NSURLSessionTaskMetrics
typedef struct objc_object NSURLSessionTaskMetrics;
typedef struct {} _objc_exc_NSURLSessionTaskMetrics;
#endif
struct NSURLSessionTaskMetrics_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// @property (copy, readonly) NSArray<NSURLSessionTaskTransactionMetrics *> *transactionMetrics;
// @property (copy, readonly) NSDateInterval *taskInterval;
// @property (assign, readonly) NSUInteger redirectCount;
// - (instancetype)init __attribute__((availability(macos,introduced=10.12,deprecated=10.15,message="Not supported"))) __attribute__((availability(ios,introduced=10.0,deprecated=13.0,message="Not supported"))) __attribute__((availability(watchos,introduced=3.0,deprecated=6.0,message="Not supported"))) __attribute__((availability(tvos,introduced=10.0,deprecated=13.0,message="Not supported")));
// + (instancetype)new __attribute__((availability(macos,introduced=10.12,deprecated=10.15,message="Not supported"))) __attribute__((availability(ios,introduced=10.0,deprecated=13.0,message="Not supported"))) __attribute__((availability(watchos,introduced=3.0,deprecated=6.0,message="Not supported"))) __attribute__((availability(tvos,introduced=10.0,deprecated=13.0,message="Not supported")));
/* @end */
#pragma clang assume_nonnull end
#pragma clang assume_nonnull begin
// @class NSArray;
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSArray
#define _REWRITER_typedef_NSArray
typedef struct objc_object NSArray;
typedef struct {} _objc_exc_NSArray;
#endif
#ifndef _REWRITER_typedef_NSDictionary
#define _REWRITER_typedef_NSDictionary
typedef struct objc_object NSDictionary;
typedef struct {} _objc_exc_NSDictionary;
#endif
#ifndef _REWRITER_typedef_NSSet
#define _REWRITER_typedef_NSSet
typedef struct objc_object NSSet;
typedef struct {} _objc_exc_NSSet;
#endif
#ifndef _REWRITER_typedef_NSString
#define _REWRITER_typedef_NSString
typedef struct objc_object NSString;
typedef struct {} _objc_exc_NSString;
#endif
#ifndef _REWRITER_typedef_NSURL
#define _REWRITER_typedef_NSURL
typedef struct objc_object NSURL;
typedef struct {} _objc_exc_NSURL;
#endif
#ifndef _REWRITER_typedef_NSInputStream
#define _REWRITER_typedef_NSInputStream
typedef struct objc_object NSInputStream;
typedef struct {} _objc_exc_NSInputStream;
#endif
#ifndef _REWRITER_typedef_NSOutputStream
#define _REWRITER_typedef_NSOutputStream
typedef struct objc_object NSOutputStream;
typedef struct {} _objc_exc_NSOutputStream;
#endif
#ifndef _REWRITER_typedef_NSError
#define _REWRITER_typedef_NSError
typedef struct objc_object NSError;
typedef struct {} _objc_exc_NSError;
#endif
// @protocol NSUserActivityDelegate;
typedef NSString* NSUserActivityPersistentIdentifier __attribute__((swift_bridged_typedef));
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSUserActivity
#define _REWRITER_typedef_NSUserActivity
typedef struct objc_object NSUserActivity;
typedef struct {} _objc_exc_NSUserActivity;
#endif
struct NSUserActivity_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// - (instancetype)initWithActivityType:(NSString *)activityType __attribute__((objc_designated_initializer));
// - (instancetype)init __attribute__((availability(macosx,introduced=10.10,deprecated=10.12,message="Use initWithActivityType: with a specific activity type string"))) __attribute__((availability(ios,introduced=8.0,deprecated=10.0,message="Use initWithActivityType: with a specific activity type string"))) __attribute__((availability(watchos,introduced=2.0,deprecated=3.0,message="Use initWithActivityType: with a specific activity type string"))) __attribute__((availability(tvos,introduced=9.0,deprecated=10.0,message="Use initWithActivityType: with a specific activity type string")));
// @property (readonly, copy) NSString *activityType;
// @property (nullable, copy) NSString *title;
// @property (nullable, copy) NSDictionary *userInfo;
// - (void)addUserInfoEntriesFromDictionary:(NSDictionary *)otherDictionary;
// @property (nullable, copy) NSSet<NSString *> *requiredUserInfoKeys __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// @property (assign) BOOL needsSave;
// @property (nullable, copy) NSURL *webpageURL;
// @property (nullable, copy) NSURL *referrerURL __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0)));
// @property (nullable, copy) NSDate *expirationDate __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// @property (copy) NSSet<NSString *> *keywords __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// @property BOOL supportsContinuationStreams;
// @property (nullable, weak) id<NSUserActivityDelegate> delegate;
// @property (nullable, copy) NSString* targetContentIdentifier __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0)));
// - (void)becomeCurrent;
// - (void)resignCurrent __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// - (void)invalidate;
// - (void)getContinuationStreamsWithCompletionHandler:(void (^)(NSInputStream * _Nullable inputStream, NSOutputStream * _Nullable outputStream, NSError * _Nullable error))completionHandler;
// @property (getter=isEligibleForHandoff) BOOL eligibleForHandoff __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// @property (getter=isEligibleForSearch) BOOL eligibleForSearch __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// @property (getter=isEligibleForPublicIndexing) BOOL eligibleForPublicIndexing __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0)));
// @property (getter=isEligibleForPrediction) BOOL eligibleForPrediction __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(macos,unavailable))) __attribute__((availability(tvos,unavailable)));
// @property (copy, nullable) NSUserActivityPersistentIdentifier persistentIdentifier __attribute__((availability(macos,introduced=15.0))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,unavailable)));
// +(void) deleteSavedUserActivitiesWithPersistentIdentifiers:(NSArray<NSUserActivityPersistentIdentifier>*) persistentIdentifiers completionHandler:(void(^)(void))handler __attribute__((availability(macos,introduced=15.0))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,unavailable)));
// +(void) deleteAllSavedUserActivitiesWithCompletionHandler:(void(^)(void))handler __attribute__((availability(macos,introduced=15.0))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,unavailable)));
/* @end */
extern "C" NSString * const NSUserActivityTypeBrowsingWeb;
__attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=9.0)))
// @protocol NSUserActivityDelegate <NSObject>
/* @optional */
// - (void)userActivityWillSave:(NSUserActivity *)userActivity;
// - (void)userActivityWasContinued:(NSUserActivity *)userActivity;
// - (void)userActivity:(NSUserActivity *)userActivity didReceiveInputStream:(NSInputStream *) inputStream outputStream:(NSOutputStream *)outputStream;
/* @end */
#pragma clang assume_nonnull end
typedef __darwin_uuid_string_t uuid_string_t;
static const uuid_t UUID_NULL __attribute__ ((unused)) = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
extern "C" {
void uuid_clear(uuid_t uu);
int uuid_compare(const uuid_t uu1, const uuid_t uu2);
void uuid_copy(uuid_t dst, const uuid_t src);
void uuid_generate(uuid_t out);
void uuid_generate_random(uuid_t out);
void uuid_generate_time(uuid_t out);
void uuid_generate_early_random(uuid_t out);
int uuid_is_null(const uuid_t uu);
int uuid_parse(const uuid_string_t in, uuid_t uu);
void uuid_unparse(const uuid_t uu, uuid_string_t out);
void uuid_unparse_lower(const uuid_t uu, uuid_string_t out);
void uuid_unparse_upper(const uuid_t uu, uuid_string_t out);
}
#pragma clang assume_nonnull begin
__attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))
#ifndef _REWRITER_typedef_NSUUID
#define _REWRITER_typedef_NSUUID
typedef struct objc_object NSUUID;
typedef struct {} _objc_exc_NSUUID;
#endif
struct NSUUID_IMPL {
struct NSObject_IMPL NSObject_IVARS;
};
// + (instancetype)UUID;
// - (instancetype)init __attribute__((objc_designated_initializer));
// - (nullable instancetype)initWithUUIDString:(NSString *)string;
// - (instancetype)initWithUUIDBytes:(const uuid_t _Nullable)bytes;
// - (void)getUUIDBytes:(uuid_t _Nonnull)uuid;
// @property (readonly, copy) NSString *UUIDString;
/* @end */
#pragma clang assume_nonnull end
struct vm_statistics {
natural_t free_count;
natural_t active_count;
natural_t inactive_count;
natural_t wire_count;
natural_t zero_fill_count;
natural_t reactivations;
natural_t pageins;
natural_t pageouts;
natural_t faults;
natural_t cow_faults;
natural_t lookups;
natural_t hits;
natural_t purgeable_count;
natural_t purges;
natural_t speculative_count;
};
typedef struct vm_statistics *vm_statistics_t;
typedef struct vm_statistics vm_statistics_data_t;
struct vm_statistics64 {
natural_t free_count;
natural_t active_count;
natural_t inactive_count;
natural_t wire_count;
uint64_t zero_fill_count;
uint64_t reactivations;
uint64_t pageins;
uint64_t pageouts;
uint64_t faults;
uint64_t cow_faults;
uint64_t lookups;
uint64_t hits;
uint64_t purges;
natural_t purgeable_count;
natural_t speculative_count;
uint64_t decompressions;
uint64_t compressions;
uint64_t swapins;
uint64_t swapouts;
natural_t compressor_page_count;
natural_t throttled_count;
natural_t external_page_count;
natural_t internal_page_count;
uint64_t total_uncompressed_pages_in_compressor;
} __attribute__((aligned(8)));
typedef struct vm_statistics64 *vm_statistics64_t;
typedef struct vm_statistics64 vm_statistics64_data_t;
struct vm_extmod_statistics {
int64_t task_for_pid_count;
int64_t task_for_pid_caller_count;
int64_t thread_creation_count;
int64_t thread_creation_caller_count;
int64_t thread_set_state_count;
int64_t thread_set_state_caller_count;
} __attribute__((aligned(8)));
typedef struct vm_extmod_statistics *vm_extmod_statistics_t;
typedef struct vm_extmod_statistics vm_extmod_statistics_data_t;
typedef struct vm_purgeable_stat {
uint64_t count;
uint64_t size;
}vm_purgeable_stat_t;
struct vm_purgeable_info {
vm_purgeable_stat_t fifo_data[8];
vm_purgeable_stat_t obsolete_data;
vm_purgeable_stat_t lifo_data[8];
};
typedef struct vm_purgeable_info *vm_purgeable_info_t;
enum virtual_memory_guard_exception_codes {
kGUARD_EXC_DEALLOC_GAP = 1u << 0
};
typedef integer_t cpu_type_t;
typedef integer_t cpu_subtype_t;
typedef integer_t cpu_threadtype_t;
typedef integer_t *host_info_t;
typedef integer_t *host_info64_t;
typedef integer_t host_info_data_t[(1024)];
typedef char kernel_version_t[(512)];
typedef char kernel_boot_info_t[(4096)];
typedef integer_t host_flavor_t;
struct host_can_has_debugger_info {
boolean_t can_has_debugger;
};
typedef struct host_can_has_debugger_info host_can_has_debugger_info_data_t;
typedef struct host_can_has_debugger_info *host_can_has_debugger_info_t;
#pragma pack(push, 4)
struct host_basic_info {
integer_t max_cpus;
integer_t avail_cpus;
natural_t memory_size;
cpu_type_t cpu_type;
cpu_subtype_t cpu_subtype;
cpu_threadtype_t cpu_threadtype;
integer_t physical_cpu;
integer_t physical_cpu_max;
integer_t logical_cpu;
integer_t logical_cpu_max;
uint64_t max_mem;
};
#pragma pack(pop)
typedef struct host_basic_info host_basic_info_data_t;
typedef struct host_basic_info *host_basic_info_t;
struct host_sched_info {
integer_t min_timeout;
integer_t min_quantum;
};
typedef struct host_sched_info host_sched_info_data_t;
typedef struct host_sched_info *host_sched_info_t;
struct kernel_resource_sizes {
natural_t task;
natural_t thread;
natural_t port;
natural_t memory_region;
natural_t memory_object;
};
typedef struct kernel_resource_sizes kernel_resource_sizes_data_t;
typedef struct kernel_resource_sizes *kernel_resource_sizes_t;
struct host_priority_info {
integer_t kernel_priority;
integer_t system_priority;
integer_t server_priority;
integer_t user_priority;
integer_t depress_priority;
integer_t idle_priority;
integer_t minimum_priority;
integer_t maximum_priority;
};
typedef struct host_priority_info host_priority_info_data_t;
typedef struct host_priority_info *host_priority_info_t;
struct host_load_info {
integer_t avenrun[3];
integer_t mach_factor[3];
};
typedef struct host_load_info host_load_info_data_t;
typedef struct host_load_info *host_load_info_t;
typedef struct vm_purgeable_info host_purgable_info_data_t;
typedef struct vm_purgeable_info *host_purgable_info_t;
struct host_cpu_load_info {
natural_t cpu_ticks[4];
};
typedef struct host_cpu_load_info host_cpu_load_info_data_t;
typedef struct host_cpu_load_info *host_cpu_load_info_t;
struct host_preferred_user_arch {
cpu_type_t cpu_type;
cpu_subtype_t cpu_subtype;
};
typedef struct host_preferred_user_arch host_preferred_user_arch_data_t;
typedef struct host_preferred_user_arch *host_preferred_user_arch_t;
typedef int vm_prot_t;
typedef unsigned vm_sync_t;
typedef vm_offset_t pointer_t;
typedef vm_offset_t vm_address_t;
typedef uint64_t addr64_t;
typedef uint32_t reg64_t;
typedef uint32_t ppnum_t;
typedef mach_port_t vm_map_t;
typedef uint64_t vm_object_offset_t;
typedef uint64_t vm_object_size_t;
typedef mach_port_t upl_t;
typedef mach_port_t vm_named_entry_t;
typedef unsigned long long memory_object_offset_t;
typedef unsigned long long memory_object_size_t;
typedef natural_t memory_object_cluster_size_t;
typedef natural_t * memory_object_fault_info_t;
typedef unsigned long long vm_object_id_t;
typedef mach_port_t memory_object_t;
typedef mach_port_t memory_object_control_t;
typedef memory_object_t *memory_object_array_t;
typedef mach_port_t memory_object_name_t;
typedef mach_port_t memory_object_default_t;
typedef int memory_object_copy_strategy_t;
typedef int memory_object_return_t;
typedef int *memory_object_info_t;
typedef int memory_object_flavor_t;
typedef int memory_object_info_data_t[(1024)];
struct memory_object_perf_info {
memory_object_cluster_size_t cluster_size;
boolean_t may_cache;
};
struct memory_object_attr_info {
memory_object_copy_strategy_t copy_strategy;
memory_object_cluster_size_t cluster_size;
boolean_t may_cache_object;
boolean_t temporary;
};
struct memory_object_behave_info {
memory_object_copy_strategy_t copy_strategy;
boolean_t temporary;
boolean_t invalidate;
boolean_t silent_overwrite;
boolean_t advisory_pageout;
};
typedef struct memory_object_behave_info *memory_object_behave_info_t;
typedef struct memory_object_behave_info memory_object_behave_info_data_t;
typedef struct memory_object_perf_info *memory_object_perf_info_t;
typedef struct memory_object_perf_info memory_object_perf_info_data_t;
typedef struct memory_object_attr_info *memory_object_attr_info_t;
typedef struct memory_object_attr_info memory_object_attr_info_data_t;
struct arm_state_hdr {
uint32_t flavor;
uint32_t count;
};
typedef struct arm_state_hdr arm_state_hdr_t;
typedef struct __darwin_arm_thread_state arm_thread_state_t;
typedef struct __darwin_arm_thread_state arm_thread_state32_t;
typedef struct __darwin_arm_thread_state64 arm_thread_state64_t;
struct arm_unified_thread_state {
arm_state_hdr_t ash;
union {
arm_thread_state32_t ts_32;
arm_thread_state64_t ts_64;
} uts;
};
typedef struct arm_unified_thread_state arm_unified_thread_state_t;
typedef struct __darwin_arm_vfp_state arm_vfp_state_t;
typedef struct __darwin_arm_neon_state arm_neon_state_t;
typedef struct __darwin_arm_neon_state arm_neon_state32_t;
typedef struct __darwin_arm_neon_state64 arm_neon_state64_t;
typedef struct __darwin_arm_amx_state_v1 arm_amx_state_v1_t;
typedef struct __darwin_arm_exception_state arm_exception_state_t;
typedef struct __darwin_arm_exception_state arm_exception_state32_t;
typedef struct __darwin_arm_exception_state64 arm_exception_state64_t;
typedef struct __darwin_arm_debug_state32 arm_debug_state32_t;
typedef struct __darwin_arm_debug_state64 arm_debug_state64_t;
typedef struct __arm_pagein_state arm_pagein_state_t;
typedef struct arm_legacy_debug_state arm_debug_state_t;
struct arm_amx_state {
arm_state_hdr_t ash;
union {
arm_amx_state_v1_t as_v1;
} uas;
};
typedef struct arm_amx_state arm_amx_state_t;
typedef natural_t *thread_state_t;
typedef natural_t thread_state_data_t[(1296)];
typedef int thread_state_flavor_t;
typedef thread_state_flavor_t *thread_state_flavor_array_t;
typedef int exception_type_t;
typedef integer_t exception_data_type_t;
typedef int64_t mach_exception_data_type_t;
typedef int exception_behavior_t;
typedef exception_data_type_t *exception_data_t;
typedef mach_exception_data_type_t *mach_exception_data_t;
typedef unsigned int exception_mask_t;
typedef exception_mask_t *exception_mask_array_t;
typedef exception_behavior_t *exception_behavior_array_t;
typedef thread_state_flavor_t *exception_flavor_array_t;
typedef mach_port_t *exception_port_array_t;
typedef mach_exception_data_type_t mach_exception_code_t;
typedef mach_exception_data_type_t mach_exception_subcode_t;
typedef mach_port_t mach_voucher_t;
typedef mach_port_name_t mach_voucher_name_t;
typedef mach_voucher_name_t *mach_voucher_name_array_t;
typedef mach_voucher_t ipc_voucher_t;
typedef uint32_t mach_voucher_selector_t;
typedef uint32_t mach_voucher_attr_key_t;
typedef mach_voucher_attr_key_t *mach_voucher_attr_key_array_t;
typedef uint8_t *mach_voucher_attr_content_t;
typedef uint32_t mach_voucher_attr_content_size_t;
typedef uint32_t mach_voucher_attr_command_t;
typedef uint32_t mach_voucher_attr_recipe_command_t;
typedef mach_voucher_attr_recipe_command_t *mach_voucher_attr_recipe_command_array_t;
#pragma pack(push, 1)
typedef struct mach_voucher_attr_recipe_data {
mach_voucher_attr_key_t key;
mach_voucher_attr_recipe_command_t command;
mach_voucher_name_t previous_voucher;
mach_voucher_attr_content_size_t content_size;
uint8_t content[];
} mach_voucher_attr_recipe_data_t;
typedef mach_voucher_attr_recipe_data_t *mach_voucher_attr_recipe_t;
typedef mach_msg_type_number_t mach_voucher_attr_recipe_size_t;
typedef uint8_t *mach_voucher_attr_raw_recipe_t;
typedef mach_voucher_attr_raw_recipe_t mach_voucher_attr_raw_recipe_array_t;
typedef mach_msg_type_number_t mach_voucher_attr_raw_recipe_size_t;
typedef mach_msg_type_number_t mach_voucher_attr_raw_recipe_array_size_t;
#pragma pack(pop)
typedef mach_port_t mach_voucher_attr_manager_t;
typedef mach_port_t mach_voucher_attr_control_t;
typedef mach_port_t ipc_voucher_attr_manager_t;
typedef mach_port_t ipc_voucher_attr_control_t;
typedef uint64_t mach_voucher_attr_value_handle_t;
typedef mach_voucher_attr_value_handle_t *mach_voucher_attr_value_handle_array_t;
typedef mach_msg_type_number_t mach_voucher_attr_value_handle_array_size_t;
typedef uint32_t mach_voucher_attr_value_reference_t;
typedef uint32_t mach_voucher_attr_value_flags_t;
typedef uint32_t mach_voucher_attr_control_flags_t;
typedef uint32_t mach_voucher_attr_importance_refs;
struct processor_cpu_stat {
uint32_t irq_ex_cnt;
uint32_t ipi_cnt;
uint32_t timer_cnt;
uint32_t undef_ex_cnt;
uint32_t unaligned_cnt;
uint32_t vfp_cnt;
uint32_t vfp_shortv_cnt;
uint32_t data_ex_cnt;
uint32_t instr_ex_cnt;
};
typedef struct processor_cpu_stat processor_cpu_stat_data_t;
typedef struct processor_cpu_stat *processor_cpu_stat_t;
struct processor_cpu_stat64 {
uint64_t irq_ex_cnt;
uint64_t ipi_cnt;
uint64_t timer_cnt;
uint64_t undef_ex_cnt;
uint64_t unaligned_cnt;
uint64_t vfp_cnt;
uint64_t vfp_shortv_cnt;
uint64_t data_ex_cnt;
uint64_t instr_ex_cnt;
uint64_t pmi_cnt;
} __attribute__((packed, aligned(4)));
typedef struct processor_cpu_stat64 processor_cpu_stat64_data_t;
typedef struct processor_cpu_stat64 *processor_cpu_stat64_t;
typedef integer_t *processor_info_t;
typedef integer_t *processor_info_array_t;
typedef integer_t processor_info_data_t[(1024)];
typedef integer_t *processor_set_info_t;
typedef integer_t processor_set_info_data_t[(1024)];
typedef int processor_flavor_t;
struct processor_basic_info {
cpu_type_t cpu_type;
cpu_subtype_t cpu_subtype;
boolean_t running;
int slot_num;
boolean_t is_master;
};
typedef struct processor_basic_info processor_basic_info_data_t;
typedef struct processor_basic_info *processor_basic_info_t;
struct processor_cpu_load_info {
unsigned int cpu_ticks[4];
};
typedef struct processor_cpu_load_info processor_cpu_load_info_data_t;
typedef struct processor_cpu_load_info *processor_cpu_load_info_t;
typedef int processor_set_flavor_t;
struct processor_set_basic_info {
int processor_count;
int default_policy;
};
typedef struct processor_set_basic_info processor_set_basic_info_data_t;
typedef struct processor_set_basic_info *processor_set_basic_info_t;
struct processor_set_load_info {
int task_count;
int thread_count;
integer_t load_average;
integer_t mach_factor;
};
typedef struct processor_set_load_info processor_set_load_info_data_t;
typedef struct processor_set_load_info *processor_set_load_info_t;
typedef int policy_t;
typedef integer_t *policy_info_t;
typedef integer_t *policy_base_t;
typedef integer_t *policy_limit_t;
struct policy_timeshare_base {
integer_t base_priority;
};
struct policy_timeshare_limit {
integer_t max_priority;
};
struct policy_timeshare_info {
integer_t max_priority;
integer_t base_priority;
integer_t cur_priority;
boolean_t depressed;
integer_t depress_priority;
};
typedef struct policy_timeshare_base *policy_timeshare_base_t;
typedef struct policy_timeshare_limit *policy_timeshare_limit_t;
typedef struct policy_timeshare_info *policy_timeshare_info_t;
typedef struct policy_timeshare_base policy_timeshare_base_data_t;
typedef struct policy_timeshare_limit policy_timeshare_limit_data_t;
typedef struct policy_timeshare_info policy_timeshare_info_data_t;
struct policy_rr_base {
integer_t base_priority;
integer_t quantum;
};
struct policy_rr_limit {
integer_t max_priority;
};
struct policy_rr_info {
integer_t max_priority;
integer_t base_priority;
integer_t quantum;
boolean_t depressed;
integer_t depress_priority;
};
typedef struct policy_rr_base *policy_rr_base_t;
typedef struct policy_rr_limit *policy_rr_limit_t;
typedef struct policy_rr_info *policy_rr_info_t;
typedef struct policy_rr_base policy_rr_base_data_t;
typedef struct policy_rr_limit policy_rr_limit_data_t;
typedef struct policy_rr_info policy_rr_info_data_t;
struct policy_fifo_base {
integer_t base_priority;
};
struct policy_fifo_limit {
integer_t max_priority;
};
struct policy_fifo_info {
integer_t max_priority;
integer_t base_priority;
boolean_t depressed;
integer_t depress_priority;
};
typedef struct policy_fifo_base *policy_fifo_base_t;
typedef struct policy_fifo_limit *policy_fifo_limit_t;
typedef struct policy_fifo_info *policy_fifo_info_t;
typedef struct policy_fifo_base policy_fifo_base_data_t;
typedef struct policy_fifo_limit policy_fifo_limit_data_t;
typedef struct policy_fifo_info policy_fifo_info_data_t;
struct policy_bases {
policy_timeshare_base_data_t ts;
policy_rr_base_data_t rr;
policy_fifo_base_data_t fifo;
};
struct policy_limits {
policy_timeshare_limit_data_t ts;
policy_rr_limit_data_t rr;
policy_fifo_limit_data_t fifo;
};
struct policy_infos {
policy_timeshare_info_data_t ts;
policy_rr_info_data_t rr;
policy_fifo_info_data_t fifo;
};
typedef struct policy_bases policy_base_data_t;
typedef struct policy_limits policy_limit_data_t;
typedef struct policy_infos policy_info_data_t;
typedef natural_t task_flavor_t;
typedef integer_t *task_info_t;
typedef integer_t task_info_data_t[(1024)];
#pragma pack(push, 4)
struct task_basic_info_32 {
integer_t suspend_count;
natural_t virtual_size;
natural_t resident_size;
time_value_t user_time;
time_value_t system_time;
policy_t policy;
};
typedef struct task_basic_info_32 task_basic_info_32_data_t;
typedef struct task_basic_info_32 *task_basic_info_32_t;
struct task_basic_info_64 {
integer_t suspend_count;
mach_vm_size_t virtual_size;
mach_vm_size_t resident_size;
time_value_t user_time;
time_value_t system_time;
policy_t policy;
};
typedef struct task_basic_info_64 task_basic_info_64_data_t;
typedef struct task_basic_info_64 *task_basic_info_64_t;
struct task_basic_info {
integer_t suspend_count;
vm_size_t virtual_size;
vm_size_t resident_size;
time_value_t user_time;
time_value_t system_time;
policy_t policy;
};
typedef struct task_basic_info task_basic_info_data_t;
typedef struct task_basic_info *task_basic_info_t;
struct task_events_info {
integer_t faults;
integer_t pageins;
integer_t cow_faults;
integer_t messages_sent;
integer_t messages_received;
integer_t syscalls_mach;
integer_t syscalls_unix;
integer_t csw;
};
typedef struct task_events_info task_events_info_data_t;
typedef struct task_events_info *task_events_info_t;
struct task_thread_times_info {
time_value_t user_time;
time_value_t system_time;
};
typedef struct task_thread_times_info task_thread_times_info_data_t;
typedef struct task_thread_times_info *task_thread_times_info_t;
struct task_absolutetime_info {
uint64_t total_user;
uint64_t total_system;
uint64_t threads_user;
uint64_t threads_system;
};
typedef struct task_absolutetime_info task_absolutetime_info_data_t;
typedef struct task_absolutetime_info *task_absolutetime_info_t;
struct task_kernelmemory_info {
uint64_t total_palloc;
uint64_t total_pfree;
uint64_t total_salloc;
uint64_t total_sfree;
};
typedef struct task_kernelmemory_info task_kernelmemory_info_data_t;
typedef struct task_kernelmemory_info *task_kernelmemory_info_t;
struct task_affinity_tag_info {
integer_t set_count;
integer_t min;
integer_t max;
integer_t task_count;
};
typedef struct task_affinity_tag_info task_affinity_tag_info_data_t;
typedef struct task_affinity_tag_info *task_affinity_tag_info_t;
struct task_dyld_info {
mach_vm_address_t all_image_info_addr;
mach_vm_size_t all_image_info_size;
integer_t all_image_info_format;
};
typedef struct task_dyld_info task_dyld_info_data_t;
typedef struct task_dyld_info *task_dyld_info_t;
struct task_basic_info_64_2 {
integer_t suspend_count;
mach_vm_size_t virtual_size;
mach_vm_size_t resident_size;
time_value_t user_time;
time_value_t system_time;
policy_t policy;
};
typedef struct task_basic_info_64_2 task_basic_info_64_2_data_t;
typedef struct task_basic_info_64_2 *task_basic_info_64_2_t;
struct task_extmod_info {
unsigned char task_uuid[16];
vm_extmod_statistics_data_t extmod_statistics;
};
typedef struct task_extmod_info task_extmod_info_data_t;
typedef struct task_extmod_info *task_extmod_info_t;
struct mach_task_basic_info {
mach_vm_size_t virtual_size;
mach_vm_size_t resident_size;
mach_vm_size_t resident_size_max;
time_value_t user_time;
time_value_t system_time;
policy_t policy;
integer_t suspend_count;
};
typedef struct mach_task_basic_info mach_task_basic_info_data_t;
typedef struct mach_task_basic_info *mach_task_basic_info_t;
struct task_power_info {
uint64_t total_user;
uint64_t total_system;
uint64_t task_interrupt_wakeups;
uint64_t task_platform_idle_wakeups;
uint64_t task_timer_wakeups_bin_1;
uint64_t task_timer_wakeups_bin_2;
};
typedef struct task_power_info task_power_info_data_t;
typedef struct task_power_info *task_power_info_t;
struct task_vm_info {
mach_vm_size_t virtual_size;
integer_t region_count;
integer_t page_size;
mach_vm_size_t resident_size;
mach_vm_size_t resident_size_peak;
mach_vm_size_t device;
mach_vm_size_t device_peak;
mach_vm_size_t internal;
mach_vm_size_t internal_peak;
mach_vm_size_t external;
mach_vm_size_t external_peak;
mach_vm_size_t reusable;
mach_vm_size_t reusable_peak;
mach_vm_size_t purgeable_volatile_pmap;
mach_vm_size_t purgeable_volatile_resident;
mach_vm_size_t purgeable_volatile_virtual;
mach_vm_size_t compressed;
mach_vm_size_t compressed_peak;
mach_vm_size_t compressed_lifetime;
mach_vm_size_t phys_footprint;
mach_vm_address_t min_address;
mach_vm_address_t max_address;
int64_t ledger_phys_footprint_peak;
int64_t ledger_purgeable_nonvolatile;
int64_t ledger_purgeable_novolatile_compressed;
int64_t ledger_purgeable_volatile;
int64_t ledger_purgeable_volatile_compressed;
int64_t ledger_tag_network_nonvolatile;
int64_t ledger_tag_network_nonvolatile_compressed;
int64_t ledger_tag_network_volatile;
int64_t ledger_tag_network_volatile_compressed;
int64_t ledger_tag_media_footprint;
int64_t ledger_tag_media_footprint_compressed;
int64_t ledger_tag_media_nofootprint;
int64_t ledger_tag_media_nofootprint_compressed;
int64_t ledger_tag_graphics_footprint;
int64_t ledger_tag_graphics_footprint_compressed;
int64_t ledger_tag_graphics_nofootprint;
int64_t ledger_tag_graphics_nofootprint_compressed;
int64_t ledger_tag_neural_footprint;
int64_t ledger_tag_neural_footprint_compressed;
int64_t ledger_tag_neural_nofootprint;
int64_t ledger_tag_neural_nofootprint_compressed;
uint64_t limit_bytes_remaining;
integer_t decompressions;
};
typedef struct task_vm_info task_vm_info_data_t;
typedef struct task_vm_info *task_vm_info_t;
typedef struct vm_purgeable_info task_purgable_info_t;
struct task_trace_memory_info {
uint64_t user_memory_address;
uint64_t buffer_size;
uint64_t mailbox_array_size;
};
typedef struct task_trace_memory_info task_trace_memory_info_data_t;
typedef struct task_trace_memory_info * task_trace_memory_info_t;
struct task_wait_state_info {
uint64_t total_wait_state_time;
uint64_t total_wait_sfi_state_time;
uint32_t _reserved[4];
};
typedef struct task_wait_state_info task_wait_state_info_data_t;
typedef struct task_wait_state_info * task_wait_state_info_t;
typedef struct {
uint64_t task_gpu_utilisation;
uint64_t task_gpu_stat_reserved0;
uint64_t task_gpu_stat_reserved1;
uint64_t task_gpu_stat_reserved2;
} gpu_energy_data;
typedef gpu_energy_data *gpu_energy_data_t;
struct task_power_info_v2 {
task_power_info_data_t cpu_energy;
gpu_energy_data gpu_energy;
uint64_t task_energy;
uint64_t task_ptime;
uint64_t task_pset_switches;
};
typedef struct task_power_info_v2 task_power_info_v2_data_t;
typedef struct task_power_info_v2 *task_power_info_v2_t;
struct task_flags_info {
uint32_t flags;
};
typedef struct task_flags_info task_flags_info_data_t;
typedef struct task_flags_info * task_flags_info_t;
typedef uint32_t task_exc_guard_behavior_t;
#pragma pack(pop)
typedef natural_t task_inspect_flavor_t;
enum task_inspect_flavor {
TASK_INSPECT_BASIC_COUNTS = 1,
};
struct task_inspect_basic_counts {
uint64_t instructions;
uint64_t cycles;
};
typedef struct task_inspect_basic_counts task_inspect_basic_counts_data_t;
typedef struct task_inspect_basic_counts *task_inspect_basic_counts_t;
typedef integer_t *task_inspect_info_t;
typedef natural_t task_policy_flavor_t;
typedef integer_t *task_policy_t;
enum task_role {
TASK_RENICED = -1,
TASK_UNSPECIFIED = 0,
TASK_FOREGROUND_APPLICATION = 1,
TASK_BACKGROUND_APPLICATION = 2,
TASK_CONTROL_APPLICATION = 3,
TASK_GRAPHICS_SERVER = 4,
TASK_THROTTLE_APPLICATION = 5,
TASK_NONUI_APPLICATION = 6,
TASK_DEFAULT_APPLICATION = 7,
TASK_DARWINBG_APPLICATION = 8,
};
typedef integer_t task_role_t;
struct task_category_policy {
task_role_t role;
};
typedef struct task_category_policy task_category_policy_data_t;
typedef struct task_category_policy *task_category_policy_t;
enum task_latency_qos {
LATENCY_QOS_TIER_UNSPECIFIED = 0x0,
LATENCY_QOS_TIER_0 = ((0xFF << 16) | 1),
LATENCY_QOS_TIER_1 = ((0xFF << 16) | 2),
LATENCY_QOS_TIER_2 = ((0xFF << 16) | 3),
LATENCY_QOS_TIER_3 = ((0xFF << 16) | 4),
LATENCY_QOS_TIER_4 = ((0xFF << 16) | 5),
LATENCY_QOS_TIER_5 = ((0xFF << 16) | 6)
};
typedef integer_t task_latency_qos_t;
enum task_throughput_qos {
THROUGHPUT_QOS_TIER_UNSPECIFIED = 0x0,
THROUGHPUT_QOS_TIER_0 = ((0xFE << 16) | 1),
THROUGHPUT_QOS_TIER_1 = ((0xFE << 16) | 2),
THROUGHPUT_QOS_TIER_2 = ((0xFE << 16) | 3),
THROUGHPUT_QOS_TIER_3 = ((0xFE << 16) | 4),
THROUGHPUT_QOS_TIER_4 = ((0xFE << 16) | 5),
THROUGHPUT_QOS_TIER_5 = ((0xFE << 16) | 6),
};
typedef integer_t task_throughput_qos_t;
struct task_qos_policy {
task_latency_qos_t task_latency_qos_tier;
task_throughput_qos_t task_throughput_qos_tier;
};
typedef struct task_qos_policy *task_qos_policy_t;
typedef int task_special_port_t;
typedef natural_t thread_flavor_t;
typedef integer_t *thread_info_t;
typedef integer_t thread_info_data_t[(32)];
struct thread_basic_info {
time_value_t user_time;
time_value_t system_time;
integer_t cpu_usage;
policy_t policy;
integer_t run_state;
integer_t flags;
integer_t suspend_count;
integer_t sleep_time;
};
typedef struct thread_basic_info thread_basic_info_data_t;
typedef struct thread_basic_info *thread_basic_info_t;
struct thread_identifier_info {
uint64_t thread_id;
uint64_t thread_handle;
uint64_t dispatch_qaddr;
};
typedef struct thread_identifier_info thread_identifier_info_data_t;
typedef struct thread_identifier_info *thread_identifier_info_t;
struct thread_extended_info {
uint64_t pth_user_time;
uint64_t pth_system_time;
int32_t pth_cpu_usage;
int32_t pth_policy;
int32_t pth_run_state;
int32_t pth_flags;
int32_t pth_sleep_time;
int32_t pth_curpri;
int32_t pth_priority;
int32_t pth_maxpriority;
char pth_name[64];
};
typedef struct thread_extended_info thread_extended_info_data_t;
typedef struct thread_extended_info * thread_extended_info_t;
struct io_stat_entry {
uint64_t count;
uint64_t size;
};
struct io_stat_info {
struct io_stat_entry disk_reads;
struct io_stat_entry io_priority[4];
struct io_stat_entry paging;
struct io_stat_entry metadata;
struct io_stat_entry total_io;
};
typedef struct io_stat_info *io_stat_info_t;
typedef natural_t thread_policy_flavor_t;
typedef integer_t *thread_policy_t;
struct thread_standard_policy {
natural_t no_data;
};
typedef struct thread_standard_policy thread_standard_policy_data_t;
typedef struct thread_standard_policy *thread_standard_policy_t;
struct thread_extended_policy {
boolean_t timeshare;
};
typedef struct thread_extended_policy thread_extended_policy_data_t;
typedef struct thread_extended_policy *thread_extended_policy_t;
struct thread_time_constraint_policy {
uint32_t period;
uint32_t computation;
uint32_t constraint;
boolean_t preemptible;
};
typedef struct thread_time_constraint_policy thread_time_constraint_policy_data_t;
typedef struct thread_time_constraint_policy *thread_time_constraint_policy_t;
struct thread_precedence_policy {
integer_t importance;
};
typedef struct thread_precedence_policy thread_precedence_policy_data_t;
typedef struct thread_precedence_policy *thread_precedence_policy_t;
struct thread_affinity_policy {
integer_t affinity_tag;
};
typedef struct thread_affinity_policy thread_affinity_policy_data_t;
typedef struct thread_affinity_policy *thread_affinity_policy_t;
struct thread_background_policy {
integer_t priority;
};
typedef struct thread_background_policy thread_background_policy_data_t;
typedef struct thread_background_policy *thread_background_policy_t;
typedef integer_t thread_latency_qos_t;
struct thread_latency_qos_policy {
thread_latency_qos_t thread_latency_qos_tier;
};
typedef struct thread_latency_qos_policy thread_latency_qos_policy_data_t;
typedef struct thread_latency_qos_policy *thread_latency_qos_policy_t;
typedef integer_t thread_throughput_qos_t;
struct thread_throughput_qos_policy {
thread_throughput_qos_t thread_throughput_qos_tier;
};
typedef struct thread_throughput_qos_policy thread_throughput_qos_policy_data_t;
typedef struct thread_throughput_qos_policy *thread_throughput_qos_policy_t;
typedef unsigned int vm_machine_attribute_t;
typedef int vm_machine_attribute_val_t;
typedef unsigned int vm_inherit_t;
typedef int vm_purgable_t;
typedef int vm_behavior_t;
extern "C" {
extern vm_size_t vm_page_size;
extern vm_size_t vm_page_mask;
extern int vm_page_shift;
extern vm_size_t vm_kernel_page_size __attribute__((availability(ios,introduced=7.0)));
extern vm_size_t vm_kernel_page_mask __attribute__((availability(ios,introduced=7.0)));
extern int vm_kernel_page_shift __attribute__((availability(ios,introduced=7.0)));
}
#pragma pack(push, 4)
typedef uint32_t vm32_object_id_t;
typedef int *vm_region_info_t;
typedef int *vm_region_info_64_t;
typedef int *vm_region_recurse_info_t;
typedef int *vm_region_recurse_info_64_t;
typedef int vm_region_flavor_t;
typedef int vm_region_info_data_t[(1024)];
struct vm_region_basic_info_64 {
vm_prot_t protection;
vm_prot_t max_protection;
vm_inherit_t inheritance;
boolean_t shared;
boolean_t reserved;
memory_object_offset_t offset;
vm_behavior_t behavior;
unsigned short user_wired_count;
};
typedef struct vm_region_basic_info_64 *vm_region_basic_info_64_t;
typedef struct vm_region_basic_info_64 vm_region_basic_info_data_64_t;
struct vm_region_basic_info {
vm_prot_t protection;
vm_prot_t max_protection;
vm_inherit_t inheritance;
boolean_t shared;
boolean_t reserved;
uint32_t offset;
vm_behavior_t behavior;
unsigned short user_wired_count;
};
typedef struct vm_region_basic_info *vm_region_basic_info_t;
typedef struct vm_region_basic_info vm_region_basic_info_data_t;
struct vm_region_extended_info {
vm_prot_t protection;
unsigned int user_tag;
unsigned int pages_resident;
unsigned int pages_shared_now_private;
unsigned int pages_swapped_out;
unsigned int pages_dirtied;
unsigned int ref_count;
unsigned short shadow_depth;
unsigned char external_pager;
unsigned char share_mode;
unsigned int pages_reusable;
};
typedef struct vm_region_extended_info *vm_region_extended_info_t;
typedef struct vm_region_extended_info vm_region_extended_info_data_t;
struct vm_region_top_info {
unsigned int obj_id;
unsigned int ref_count;
unsigned int private_pages_resident;
unsigned int shared_pages_resident;
unsigned char share_mode;
};
typedef struct vm_region_top_info *vm_region_top_info_t;
typedef struct vm_region_top_info vm_region_top_info_data_t;
struct vm_region_submap_info {
vm_prot_t protection;
vm_prot_t max_protection;
vm_inherit_t inheritance;
uint32_t offset;
unsigned int user_tag;
unsigned int pages_resident;
unsigned int pages_shared_now_private;
unsigned int pages_swapped_out;
unsigned int pages_dirtied;
unsigned int ref_count;
unsigned short shadow_depth;
unsigned char external_pager;
unsigned char share_mode;
boolean_t is_submap;
vm_behavior_t behavior;
vm32_object_id_t object_id;
unsigned short user_wired_count;
};
typedef struct vm_region_submap_info *vm_region_submap_info_t;
typedef struct vm_region_submap_info vm_region_submap_info_data_t;
struct vm_region_submap_info_64 {
vm_prot_t protection;
vm_prot_t max_protection;
vm_inherit_t inheritance;
memory_object_offset_t offset;
unsigned int user_tag;
unsigned int pages_resident;
unsigned int pages_shared_now_private;
unsigned int pages_swapped_out;
unsigned int pages_dirtied;
unsigned int ref_count;
unsigned short shadow_depth;
unsigned char external_pager;
unsigned char share_mode;
boolean_t is_submap;
vm_behavior_t behavior;
vm32_object_id_t object_id;
unsigned short user_wired_count;
unsigned int pages_reusable;
vm_object_id_t object_id_full;
};
typedef struct vm_region_submap_info_64 *vm_region_submap_info_64_t;
typedef struct vm_region_submap_info_64 vm_region_submap_info_data_64_t;
struct vm_region_submap_short_info_64 {
vm_prot_t protection;
vm_prot_t max_protection;
vm_inherit_t inheritance;
memory_object_offset_t offset;
unsigned int user_tag;
unsigned int ref_count;
unsigned short shadow_depth;
unsigned char external_pager;
unsigned char share_mode;
boolean_t is_submap;
vm_behavior_t behavior;
vm32_object_id_t object_id;
unsigned short user_wired_count;
};
typedef struct vm_region_submap_short_info_64 *vm_region_submap_short_info_64_t;
typedef struct vm_region_submap_short_info_64 vm_region_submap_short_info_data_64_t;
struct mach_vm_read_entry {
mach_vm_address_t address;
mach_vm_size_t size;
};
struct vm_read_entry {
vm_address_t address;
vm_size_t size;
};
typedef struct mach_vm_read_entry mach_vm_read_entry_t[(256)];
typedef struct vm_read_entry vm_read_entry_t[(256)];
#pragma pack(pop)
typedef int *vm_page_info_t;
typedef int vm_page_info_data_t[];
typedef int vm_page_info_flavor_t;
struct vm_page_info_basic {
int disposition;
int ref_count;
vm_object_id_t object_id;
memory_object_offset_t offset;
int depth;
int __pad;
};
typedef struct vm_page_info_basic *vm_page_info_basic_t;
typedef struct vm_page_info_basic vm_page_info_basic_data_t;
extern "C" {
typedef int kmod_t;
struct kmod_info;
typedef kern_return_t kmod_start_func_t(struct kmod_info * ki, void * data);
typedef kern_return_t kmod_stop_func_t(struct kmod_info * ki, void * data);
#pragma pack(push, 4)
typedef struct kmod_reference {
struct kmod_reference * next;
struct kmod_info * info;
} kmod_reference_t;
typedef struct kmod_info {
struct kmod_info * next;
int32_t info_version;
uint32_t id;
char name[64];
char version[64];
int32_t reference_count;
kmod_reference_t * reference_list;
vm_address_t address;
vm_size_t size;
vm_size_t hdr_size;
kmod_start_func_t * start;
kmod_stop_func_t * stop;
} kmod_info_t;
typedef struct kmod_info_32_v1 {
uint32_t next_addr;
int32_t info_version;
uint32_t id;
uint8_t name[64];
uint8_t version[64];
int32_t reference_count;
uint32_t reference_list_addr;
uint32_t address;
uint32_t size;
uint32_t hdr_size;
uint32_t start_addr;
uint32_t stop_addr;
} kmod_info_32_v1_t;
typedef struct kmod_info_64_v1 {
uint64_t next_addr;
int32_t info_version;
uint32_t id;
uint8_t name[64];
uint8_t version[64];
int32_t reference_count;
uint64_t reference_list_addr;
uint64_t address;
uint64_t size;
uint64_t hdr_size;
uint64_t start_addr;
uint64_t stop_addr;
} kmod_info_64_v1_t;
#pragma pack(pop)
typedef void * kmod_args_t;
typedef int kmod_control_flavor_t;
typedef kmod_info_t * kmod_info_array_t;
}
typedef struct fsid { int32_t val[2]; } fsid_t;
typedef struct fsobj_id {
u_int32_t fid_objno;
u_int32_t fid_generation;
} fsobj_id_t;
struct dyld_kernel_image_info {
uuid_t uuid;
fsobj_id_t fsobjid;
fsid_t fsid;
uint64_t load_addr;
};
struct dyld_kernel_process_info {
struct dyld_kernel_image_info cache_image_info;
uint64_t timestamp;
uint32_t imageCount;
uint32_t initialImageCount;
uint8_t dyldState;
boolean_t no_cache;
boolean_t private_cache;
};
typedef struct dyld_kernel_image_info dyld_kernel_image_info_t;
typedef struct dyld_kernel_process_info dyld_kernel_process_info_t;
typedef dyld_kernel_image_info_t *dyld_kernel_image_info_array_t;
typedef mach_port_t task_t;
typedef mach_port_t task_name_t;
typedef mach_port_t task_inspect_t;
typedef mach_port_t task_suspension_token_t;
typedef mach_port_t thread_t;
typedef mach_port_t thread_act_t;
typedef mach_port_t thread_inspect_t;
typedef mach_port_t ipc_space_t;
typedef mach_port_t ipc_space_inspect_t;
typedef mach_port_t coalition_t;
typedef mach_port_t host_t;
typedef mach_port_t host_priv_t;
typedef mach_port_t host_security_t;
typedef mach_port_t processor_t;
typedef mach_port_t processor_set_t;
typedef mach_port_t processor_set_control_t;
typedef mach_port_t semaphore_t;
typedef mach_port_t lock_set_t;
typedef mach_port_t ledger_t;
typedef mach_port_t alarm_t;
typedef mach_port_t clock_serv_t;
typedef mach_port_t clock_ctrl_t;
typedef mach_port_t arcade_register_t;
typedef processor_set_t processor_set_name_t;
typedef mach_port_t clock_reply_t;
typedef mach_port_t bootstrap_t;
typedef mach_port_t mem_entry_name_port_t;
typedef mach_port_t exception_handler_t;
typedef exception_handler_t *exception_handler_array_t;
typedef mach_port_t vm_task_entry_t;
typedef mach_port_t io_master_t;
typedef mach_port_t UNDServerRef;
typedef task_t *task_array_t;
typedef thread_t *thread_array_t;
typedef processor_set_t *processor_set_array_t;
typedef processor_set_t *processor_set_name_array_t;
typedef processor_t *processor_array_t;
typedef thread_act_t *thread_act_array_t;
typedef ledger_t *ledger_array_t;
typedef task_t task_port_t;
typedef task_array_t task_port_array_t;
typedef thread_t thread_port_t;
typedef thread_array_t thread_port_array_t;
typedef ipc_space_t ipc_space_port_t;
typedef host_t host_name_t;
typedef host_t host_name_port_t;
typedef processor_set_t processor_set_port_t;
typedef processor_set_t processor_set_name_port_t;
typedef processor_set_array_t processor_set_name_port_array_t;
typedef processor_set_t processor_set_control_port_t;
typedef processor_t processor_port_t;
typedef processor_array_t processor_port_array_t;
typedef thread_act_t thread_act_port_t;
typedef thread_act_array_t thread_act_port_array_t;
typedef semaphore_t semaphore_port_t;
typedef lock_set_t lock_set_port_t;
typedef ledger_t ledger_port_t;
typedef ledger_array_t ledger_port_array_t;
typedef alarm_t alarm_port_t;
typedef clock_serv_t clock_serv_port_t;
typedef clock_ctrl_t clock_ctrl_port_t;
typedef exception_handler_t exception_port_t;
typedef exception_handler_array_t exception_port_arrary_t;
typedef char vfs_path_t[4096];
typedef char nspace_path_t[1024];
typedef natural_t ledger_item_t;
typedef int64_t ledger_amount_t;
typedef mach_vm_offset_t *emulation_vector_t;
typedef char *user_subsystem_t;
typedef char *labelstr_t;
extern "C" {
typedef struct _malloc_zone_t {
void *reserved1;
void *reserved2;
size_t (* size)(struct _malloc_zone_t *zone, const void *ptr);
void *(* malloc)(struct _malloc_zone_t *zone, size_t size);
void *(* calloc)(struct _malloc_zone_t *zone, size_t num_items, size_t size);
void *(* valloc)(struct _malloc_zone_t *zone, size_t size);
void (* free)(struct _malloc_zone_t *zone, void *ptr);
void *(* realloc)(struct _malloc_zone_t *zone, void *ptr, size_t size);
void (* destroy)(struct _malloc_zone_t *zone);
const char *zone_name;
unsigned (* batch_malloc)(struct _malloc_zone_t *zone, size_t size, void **results, unsigned num_requested);
void (* batch_free)(struct _malloc_zone_t *zone, void **to_be_freed, unsigned num_to_be_freed);
struct malloc_introspection_t * introspect;
unsigned version;
void *(* memalign)(struct _malloc_zone_t *zone, size_t alignment, size_t size);
void (* free_definite_size)(struct _malloc_zone_t *zone, void *ptr, size_t size);
size_t (* pressure_relief)(struct _malloc_zone_t *zone, size_t goal);
boolean_t (* claimed_address)(struct _malloc_zone_t *zone, void *ptr);
} malloc_zone_t;
extern malloc_zone_t *malloc_default_zone(void);
extern malloc_zone_t *malloc_create_zone(vm_size_t start_size, unsigned flags);
extern void malloc_destroy_zone(malloc_zone_t *zone);
extern void *malloc_zone_malloc(malloc_zone_t *zone, size_t size) __attribute__((alloc_size(2)));
extern void *malloc_zone_calloc(malloc_zone_t *zone, size_t num_items, size_t size) __attribute__((alloc_size(2,3)));
extern void *malloc_zone_valloc(malloc_zone_t *zone, size_t size) __attribute__((alloc_size(2)));
extern void malloc_zone_free(malloc_zone_t *zone, void *ptr);
extern void *malloc_zone_realloc(malloc_zone_t *zone, void *ptr, size_t size) __attribute__((alloc_size(3)));
extern malloc_zone_t *malloc_zone_from_ptr(const void *ptr);
extern size_t malloc_size(const void *ptr);
extern size_t malloc_good_size(size_t size);
extern void *malloc_zone_memalign(malloc_zone_t *zone, size_t alignment, size_t size) __attribute__((alloc_size(3))) __attribute__((availability(ios,introduced=3.0)));
extern unsigned malloc_zone_batch_malloc(malloc_zone_t *zone, size_t size, void **results, unsigned num_requested);
extern void malloc_zone_batch_free(malloc_zone_t *zone, void **to_be_freed, unsigned num);
extern malloc_zone_t *malloc_default_purgeable_zone(void) __attribute__((availability(ios,introduced=3.0)));
extern void malloc_make_purgeable(void *ptr) __attribute__((availability(ios,introduced=3.0)));
extern int malloc_make_nonpurgeable(void *ptr) __attribute__((availability(ios,introduced=3.0)));
extern void malloc_zone_register(malloc_zone_t *zone);
extern void malloc_zone_unregister(malloc_zone_t *zone);
extern void malloc_set_zone_name(malloc_zone_t *zone, const char *name);
extern const char *malloc_get_zone_name(malloc_zone_t *zone);
size_t malloc_zone_pressure_relief(malloc_zone_t *zone, size_t goal) __attribute__((availability(ios,introduced=4.3)));
typedef struct {
vm_address_t address;
vm_size_t size;
} vm_range_t;
typedef struct malloc_statistics_t {
unsigned blocks_in_use;
size_t size_in_use;
size_t max_size_in_use;
size_t size_allocated;
} malloc_statistics_t;
typedef kern_return_t memory_reader_t(task_t remote_task, vm_address_t remote_address, vm_size_t size, void **local_memory);
typedef void vm_range_recorder_t(task_t, void *, unsigned type, vm_range_t *, unsigned);
typedef void print_task_printer_t(const char *fmt, ...);
typedef struct malloc_introspection_t {
kern_return_t (* enumerator)(task_t task, void *, unsigned type_mask, vm_address_t zone_address, memory_reader_t reader, vm_range_recorder_t recorder);
size_t (* good_size)(malloc_zone_t *zone, size_t size);
boolean_t (* check)(malloc_zone_t *zone);
void (* print)(malloc_zone_t *zone, boolean_t verbose);
void (* log)(malloc_zone_t *zone, void *address);
void (* force_lock)(malloc_zone_t *zone);
void (* force_unlock)(malloc_zone_t *zone);
void (* statistics)(malloc_zone_t *zone, malloc_statistics_t *stats);
boolean_t (* zone_locked)(malloc_zone_t *zone);
boolean_t (* enable_discharge_checking)(malloc_zone_t *zone);
void (* disable_discharge_checking)(malloc_zone_t *zone);
void (* discharge)(malloc_zone_t *zone, void *memory);
void (* enumerate_discharged_pointers)(malloc_zone_t *zone, void (^report_discharged)(void *memory, void *info));
void (* reinit_lock)(malloc_zone_t *zone);
void (* print_task)(task_t task, unsigned level, vm_address_t zone_address, memory_reader_t reader, print_task_printer_t printer);
void (* task_statistics)(task_t task, vm_address_t zone_address, memory_reader_t reader, malloc_statistics_t *stats);
} malloc_introspection_t;
extern void malloc_printf(const char *format, ...);
extern kern_return_t malloc_get_all_zones(task_t task, memory_reader_t reader, vm_address_t **addresses, unsigned *count);
extern void malloc_zone_print_ptr_info(void *ptr);
extern boolean_t malloc_zone_check(malloc_zone_t *zone);
extern void malloc_zone_print(malloc_zone_t *zone, boolean_t verbose);
extern void malloc_zone_statistics(malloc_zone_t *zone, malloc_statistics_t *stats);
extern void malloc_zone_log(malloc_zone_t *zone, void *address);
struct mstats {
size_t bytes_total;
size_t chunks_used;
size_t bytes_used;
size_t chunks_free;
size_t bytes_free;
};
extern struct mstats mstats(void);
extern boolean_t malloc_zone_enable_discharge_checking(malloc_zone_t *zone) __attribute__((availability(ios,introduced=4.3)));
extern void malloc_zone_disable_discharge_checking(malloc_zone_t *zone) __attribute__((availability(ios,introduced=4.3)));
extern void malloc_zone_discharge(malloc_zone_t *zone, void *memory) __attribute__((availability(ios,introduced=4.3)));
extern void malloc_zone_enumerate_discharged_pointers(malloc_zone_t *zone, void (*report_discharged)(void *memory, void *info)) __attribute__((availability(ios,introduced=4.3)));
}
typedef struct objc_method *Method;
typedef struct objc_ivar *Ivar;
typedef struct objc_category *Category;
typedef struct objc_property *objc_property_t;
struct objc_class {
Class _Nonnull isa __attribute__((deprecated));
} __attribute__((unavailable));
// @class Protocol;
#ifndef _REWRITER_typedef_Protocol
#define _REWRITER_typedef_Protocol
typedef struct objc_object Protocol;
typedef struct {} _objc_exc_Protocol;
#endif
struct objc_method_description {
SEL _Nullable name;
char * _Nullable types;
};
typedef struct {
const char * _Nonnull name;
const char * _Nonnull value;
} objc_property_attribute_t;
extern "C" __attribute__((visibility("default"))) id _Nullable object_copy(id _Nullable obj, size_t size)
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)))
;
extern "C" __attribute__((visibility("default"))) id _Nullable
object_dispose(id _Nullable obj)
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)))
;
extern "C" __attribute__((visibility("default"))) Class _Nullable
object_getClass(id _Nullable obj)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) Class _Nullable
object_setClass(id _Nullable obj, Class _Nonnull cls)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) BOOL
object_isClass(id _Nullable obj)
__attribute__((availability(macosx,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) id _Nullable
object_getIvar(id _Nullable obj, Ivar _Nonnull ivar)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) void
object_setIvar(id _Nullable obj, Ivar _Nonnull ivar, id _Nullable value)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) void
object_setIvarWithStrongDefault(id _Nullable obj, Ivar _Nonnull ivar,
id _Nullable value)
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern "C" __attribute__((visibility("default"))) Ivar _Nullable
object_setInstanceVariable(id _Nullable obj, const char * _Nonnull name,
void * _Nullable value)
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)))
;
extern "C" __attribute__((visibility("default"))) Ivar _Nullable
object_setInstanceVariableWithStrongDefault(id _Nullable obj,
const char * _Nonnull name,
void * _Nullable value)
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)))
;
extern "C" __attribute__((visibility("default"))) Ivar _Nullable
object_getInstanceVariable(id _Nullable obj, const char * _Nonnull name,
void * _Nullable * _Nullable outValue)
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)))
;
extern "C" __attribute__((visibility("default"))) Class _Nullable
objc_getClass(const char * _Nonnull name)
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) Class _Nullable
objc_getMetaClass(const char * _Nonnull name)
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) Class _Nullable
objc_lookUpClass(const char * _Nonnull name)
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) Class _Nonnull
objc_getRequiredClass(const char * _Nonnull name)
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) int
objc_getClassList(Class _Nonnull * _Nullable buffer, int bufferCount)
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) Class _Nonnull * _Nullable
objc_copyClassList(unsigned int * _Nullable outCount)
__attribute__((availability(macosx,introduced=10.7))) __attribute__((availability(ios,introduced=3.1))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) const char * _Nonnull
class_getName(Class _Nullable cls)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) BOOL
class_isMetaClass(Class _Nullable cls)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) Class _Nullable
class_getSuperclass(Class _Nullable cls)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) Class _Nonnull
class_setSuperclass(Class _Nonnull cls, Class _Nonnull newSuper)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(macosx,deprecated=10.5,message="not recommended")))
__attribute__((availability(ios,introduced=2.0))) __attribute__((availability(ios,deprecated=2.0,message="not recommended")))
__attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(tvos,deprecated=9.0,message="not recommended")))
__attribute__((availability(watchos,introduced=1.0))) __attribute__((availability(watchos,deprecated=1.0,message="not recommended")))
;
extern "C" __attribute__((visibility("default"))) int
class_getVersion(Class _Nullable cls)
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) void
class_setVersion(Class _Nullable cls, int version)
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) size_t
class_getInstanceSize(Class _Nullable cls)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) Ivar _Nullable
class_getInstanceVariable(Class _Nullable cls, const char * _Nonnull name)
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) Ivar _Nullable
class_getClassVariable(Class _Nullable cls, const char * _Nonnull name)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) Ivar _Nonnull * _Nullable
class_copyIvarList(Class _Nullable cls, unsigned int * _Nullable outCount)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) Method _Nullable
class_getInstanceMethod(Class _Nullable cls, SEL _Nonnull name)
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) Method _Nullable
class_getClassMethod(Class _Nullable cls, SEL _Nonnull name)
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) IMP _Nullable
class_getMethodImplementation(Class _Nullable cls, SEL _Nonnull name)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) IMP _Nullable
class_getMethodImplementation_stret(Class _Nullable cls, SEL _Nonnull name)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)))
__attribute__((unavailable("not available in arm64")));
extern "C" __attribute__((visibility("default"))) BOOL
class_respondsToSelector(Class _Nullable cls, SEL _Nonnull sel)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) Method _Nonnull * _Nullable
class_copyMethodList(Class _Nullable cls, unsigned int * _Nullable outCount)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) BOOL
class_conformsToProtocol(Class _Nullable cls, Protocol * _Nullable protocol)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) Protocol * __attribute__((objc_ownership(none))) _Nonnull * _Nullable
class_copyProtocolList(Class _Nullable cls, unsigned int * _Nullable outCount)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) objc_property_t _Nullable
class_getProperty(Class _Nullable cls, const char * _Nonnull name)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) objc_property_t _Nonnull * _Nullable
class_copyPropertyList(Class _Nullable cls, unsigned int * _Nullable outCount)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) const uint8_t * _Nullable
class_getIvarLayout(Class _Nullable cls)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) const uint8_t * _Nullable
class_getWeakIvarLayout(Class _Nullable cls)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) BOOL
class_addMethod(Class _Nullable cls, SEL _Nonnull name, IMP _Nonnull imp,
const char * _Nullable types)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) IMP _Nullable
class_replaceMethod(Class _Nullable cls, SEL _Nonnull name, IMP _Nonnull imp,
const char * _Nullable types)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) BOOL
class_addIvar(Class _Nullable cls, const char * _Nonnull name, size_t size,
uint8_t alignment, const char * _Nullable types)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) BOOL
class_addProtocol(Class _Nullable cls, Protocol * _Nonnull protocol)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) BOOL
class_addProperty(Class _Nullable cls, const char * _Nonnull name,
const objc_property_attribute_t * _Nullable attributes,
unsigned int attributeCount)
__attribute__((availability(macosx,introduced=10.7))) __attribute__((availability(ios,introduced=4.3))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) void
class_replaceProperty(Class _Nullable cls, const char * _Nonnull name,
const objc_property_attribute_t * _Nullable attributes,
unsigned int attributeCount)
__attribute__((availability(macosx,introduced=10.7))) __attribute__((availability(ios,introduced=4.3))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) void
class_setIvarLayout(Class _Nullable cls, const uint8_t * _Nullable layout)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) void
class_setWeakIvarLayout(Class _Nullable cls, const uint8_t * _Nullable layout)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) Class _Nonnull
objc_getFutureClass(const char * _Nonnull name)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)))
;
extern "C" __attribute__((visibility("default"))) id _Nullable
class_createInstance(Class _Nullable cls, size_t extraBytes)
__attribute__((ns_returns_retained))
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) id _Nullable
objc_constructInstance(Class _Nullable cls, void * _Nullable bytes)
__attribute__((availability(macosx,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)))
;
extern "C" __attribute__((visibility("default"))) void * _Nullable objc_destructInstance(id _Nullable obj)
__attribute__((availability(macosx,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)))
;
extern "C" __attribute__((visibility("default"))) Class _Nullable
objc_allocateClassPair(Class _Nullable superclass, const char * _Nonnull name,
size_t extraBytes)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) void
objc_registerClassPair(Class _Nonnull cls)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) Class _Nonnull
objc_duplicateClass(Class _Nonnull original, const char * _Nonnull name,
size_t extraBytes)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) void
objc_disposeClassPair(Class _Nonnull cls)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) SEL _Nonnull
method_getName(Method _Nonnull m)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) IMP _Nonnull
method_getImplementation(Method _Nonnull m)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) const char * _Nullable
method_getTypeEncoding(Method _Nonnull m)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) unsigned int
method_getNumberOfArguments(Method _Nonnull m)
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) char * _Nonnull
method_copyReturnType(Method _Nonnull m)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) char * _Nullable
method_copyArgumentType(Method _Nonnull m, unsigned int index)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) void
method_getReturnType(Method _Nonnull m, char * _Nonnull dst, size_t dst_len)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) void
method_getArgumentType(Method _Nonnull m, unsigned int index,
char * _Nullable dst, size_t dst_len)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) struct objc_method_description * _Nonnull
method_getDescription(Method _Nonnull m)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) IMP _Nonnull
method_setImplementation(Method _Nonnull m, IMP _Nonnull imp)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) void
method_exchangeImplementations(Method _Nonnull m1, Method _Nonnull m2)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) const char * _Nullable
ivar_getName(Ivar _Nonnull v)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) const char * _Nullable
ivar_getTypeEncoding(Ivar _Nonnull v)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) ptrdiff_t
ivar_getOffset(Ivar _Nonnull v)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) const char * _Nonnull
property_getName(objc_property_t _Nonnull property)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) const char * _Nullable
property_getAttributes(objc_property_t _Nonnull property)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) objc_property_attribute_t * _Nullable
property_copyAttributeList(objc_property_t _Nonnull property,
unsigned int * _Nullable outCount)
__attribute__((availability(macosx,introduced=10.7))) __attribute__((availability(ios,introduced=4.3))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) char * _Nullable
property_copyAttributeValue(objc_property_t _Nonnull property,
const char * _Nonnull attributeName)
__attribute__((availability(macosx,introduced=10.7))) __attribute__((availability(ios,introduced=4.3))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) Protocol * _Nullable
objc_getProtocol(const char * _Nonnull name)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) Protocol * __attribute__((objc_ownership(none))) _Nonnull * _Nullable
objc_copyProtocolList(unsigned int * _Nullable outCount)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) BOOL
protocol_conformsToProtocol(Protocol * _Nullable proto,
Protocol * _Nullable other)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) BOOL
protocol_isEqual(Protocol * _Nullable proto, Protocol * _Nullable other)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) const char * _Nonnull
protocol_getName(Protocol * _Nonnull proto)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) struct objc_method_description
protocol_getMethodDescription(Protocol * _Nonnull proto, SEL _Nonnull aSel,
BOOL isRequiredMethod, BOOL isInstanceMethod)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) struct objc_method_description * _Nullable
protocol_copyMethodDescriptionList(Protocol * _Nonnull proto,
BOOL isRequiredMethod,
BOOL isInstanceMethod,
unsigned int * _Nullable outCount)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) objc_property_t _Nullable
protocol_getProperty(Protocol * _Nonnull proto,
const char * _Nonnull name,
BOOL isRequiredProperty, BOOL isInstanceProperty)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) objc_property_t _Nonnull * _Nullable
protocol_copyPropertyList(Protocol * _Nonnull proto,
unsigned int * _Nullable outCount)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) objc_property_t _Nonnull * _Nullable
protocol_copyPropertyList2(Protocol * _Nonnull proto,
unsigned int * _Nullable outCount,
BOOL isRequiredProperty, BOOL isInstanceProperty)
__attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0)));
extern "C" __attribute__((visibility("default"))) Protocol * __attribute__((objc_ownership(none))) _Nonnull * _Nullable
protocol_copyProtocolList(Protocol * _Nonnull proto,
unsigned int * _Nullable outCount)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) Protocol * _Nullable
objc_allocateProtocol(const char * _Nonnull name)
__attribute__((availability(macosx,introduced=10.7))) __attribute__((availability(ios,introduced=4.3))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) void
objc_registerProtocol(Protocol * _Nonnull proto)
__attribute__((availability(macosx,introduced=10.7))) __attribute__((availability(ios,introduced=4.3))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) void
protocol_addMethodDescription(Protocol * _Nonnull proto, SEL _Nonnull name,
const char * _Nullable types,
BOOL isRequiredMethod, BOOL isInstanceMethod)
__attribute__((availability(macosx,introduced=10.7))) __attribute__((availability(ios,introduced=4.3))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) void
protocol_addProtocol(Protocol * _Nonnull proto, Protocol * _Nonnull addition)
__attribute__((availability(macosx,introduced=10.7))) __attribute__((availability(ios,introduced=4.3))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) void
protocol_addProperty(Protocol * _Nonnull proto, const char * _Nonnull name,
const objc_property_attribute_t * _Nullable attributes,
unsigned int attributeCount,
BOOL isRequiredProperty, BOOL isInstanceProperty)
__attribute__((availability(macosx,introduced=10.7))) __attribute__((availability(ios,introduced=4.3))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) const char * _Nonnull * _Nonnull
objc_copyImageNames(unsigned int * _Nullable outCount)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) const char * _Nullable
class_getImageName(Class _Nullable cls)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) const char * _Nonnull * _Nullable
objc_copyClassNamesForImage(const char * _Nonnull image,
unsigned int * _Nullable outCount)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) const char * _Nonnull
sel_getName(SEL _Nonnull sel)
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) SEL _Nonnull
sel_registerName(const char * _Nonnull str)
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) BOOL
sel_isEqual(SEL _Nonnull lhs, SEL _Nonnull rhs)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) void
objc_enumerationMutation(id _Nonnull obj)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) void
objc_setEnumerationMutationHandler(void (*_Nullable handler)(id _Nonnull ))
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) void
objc_setForwardHandler(void * _Nonnull fwd, void * _Nonnull fwd_stret)
__attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) IMP _Nonnull
imp_implementationWithBlock(id _Nonnull block)
__attribute__((availability(macosx,introduced=10.7))) __attribute__((availability(ios,introduced=4.3))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) id _Nullable
imp_getBlock(IMP _Nonnull anImp)
__attribute__((availability(macosx,introduced=10.7))) __attribute__((availability(ios,introduced=4.3))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) BOOL
imp_removeBlock(IMP _Nonnull anImp)
__attribute__((availability(macosx,introduced=10.7))) __attribute__((availability(ios,introduced=4.3))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) id _Nullable
objc_loadWeak(id _Nullable * _Nonnull location)
__attribute__((availability(macosx,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) id _Nullable
objc_storeWeak(id _Nullable * _Nonnull location, id _Nullable obj)
__attribute__((availability(macosx,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
typedef uintptr_t objc_AssociationPolicy; enum {
OBJC_ASSOCIATION_ASSIGN = 0,
OBJC_ASSOCIATION_RETAIN_NONATOMIC = 1,
OBJC_ASSOCIATION_COPY_NONATOMIC = 3,
OBJC_ASSOCIATION_RETAIN = 01401,
OBJC_ASSOCIATION_COPY = 01403
};
extern "C" __attribute__((visibility("default"))) void
objc_setAssociatedObject(id _Nonnull object, const void * _Nonnull key,
id _Nullable value, objc_AssociationPolicy policy)
__attribute__((availability(macosx,introduced=10.6))) __attribute__((availability(ios,introduced=3.1))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) id _Nullable
objc_getAssociatedObject(id _Nonnull object, const void * _Nonnull key)
__attribute__((availability(macosx,introduced=10.6))) __attribute__((availability(ios,introduced=3.1))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
extern "C" __attribute__((visibility("default"))) void
objc_removeAssociatedObjects(id _Nonnull object)
__attribute__((availability(macosx,introduced=10.6))) __attribute__((availability(ios,introduced=3.1))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0)));
typedef BOOL (*objc_hook_getImageName)(Class _Nonnull cls, const char * _Nullable * _Nonnull outImageName);
extern "C" __attribute__((visibility("default"))) void objc_setHook_getImageName(objc_hook_getImageName _Nonnull newValue,
objc_hook_getImageName _Nullable * _Nonnull outOldValue)
__attribute__((availability(macosx,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(tvos,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0)));
typedef BOOL (*objc_hook_getClass)(const char * _Nonnull name, Class _Nullable * _Nonnull outClass);
extern "C" __attribute__((visibility("default"))) void objc_setHook_getClass(objc_hook_getClass _Nonnull newValue,
objc_hook_getClass _Nullable * _Nonnull outOldValue)
__attribute__((availability(macosx,introduced=10.14.4))) __attribute__((availability(ios,introduced=12.2))) __attribute__((availability(tvos,introduced=12.2))) __attribute__((availability(watchos,introduced=5.2)));
typedef void (*objc_hook_setAssociatedObject)(id _Nonnull object, const void * _Nonnull key,
id _Nullable value, objc_AssociationPolicy policy);
extern "C" __attribute__((visibility("default"))) void objc_setHook_setAssociatedObject(objc_hook_setAssociatedObject _Nonnull newValue,
objc_hook_setAssociatedObject _Nullable * _Nonnull outOldValue)
__attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0)));
struct mach_header;
typedef void (*objc_func_loadImage)(const struct mach_header * _Nonnull header);
extern "C" __attribute__((visibility("default"))) void objc_addLoadImageFunc(objc_func_loadImage _Nonnull func)
__attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0)));
typedef Class _Nullable
(*_objc_swiftMetadataInitializer)(Class _Nonnull cls, void * _Nullable arg);
extern "C" __attribute__((visibility("default"))) Class _Nullable
_objc_realizeClassFromSwift(Class _Nullable cls, void * _Nullable previously)
__attribute__((availability(macosx,introduced=10.14.4))) __attribute__((availability(ios,introduced=12.2))) __attribute__((availability(tvos,introduced=12.2))) __attribute__((availability(watchos,introduced=5.2)));
struct objc_method_list;
extern "C" __attribute__((visibility("default"))) IMP _Nullable
class_lookupMethod(Class _Nullable cls, SEL _Nonnull sel)
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(macosx,deprecated=10.5,message="use class_getMethodImplementation instead")))
__attribute__((availability(ios,introduced=2.0))) __attribute__((availability(ios,deprecated=2.0,message="use class_getMethodImplementation instead")))
__attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(tvos,deprecated=9.0,message="use class_getMethodImplementation instead")))
__attribute__((availability(watchos,introduced=1.0))) __attribute__((availability(watchos,deprecated=1.0,message="use class_getMethodImplementation instead")))
;
extern "C" __attribute__((visibility("default"))) BOOL
class_respondsToMethod(Class _Nullable cls, SEL _Nonnull sel)
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(macosx,deprecated=10.5,message="use class_respondsToSelector instead")))
__attribute__((availability(ios,introduced=2.0))) __attribute__((availability(ios,deprecated=2.0,message="use class_respondsToSelector instead")))
__attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(tvos,deprecated=9.0,message="use class_respondsToSelector instead")))
__attribute__((availability(watchos,introduced=1.0))) __attribute__((availability(watchos,deprecated=1.0,message="use class_respondsToSelector instead")))
;
extern "C" __attribute__((visibility("default"))) void
_objc_flush_caches(Class _Nullable cls)
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(macosx,deprecated=10.5,message="not recommended")))
__attribute__((availability(ios,introduced=2.0))) __attribute__((availability(ios,deprecated=2.0,message="not recommended")))
__attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(tvos,deprecated=9.0,message="not recommended")))
__attribute__((availability(watchos,introduced=1.0))) __attribute__((availability(watchos,deprecated=1.0,message="not recommended")))
;
extern "C" __attribute__((visibility("default"))) id _Nullable
object_copyFromZone(id _Nullable anObject, size_t nBytes, void * _Nullable z)
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(macosx,deprecated=10.5,message="use object_copy instead"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable)));
extern "C" __attribute__((visibility("default"))) id _Nullable
object_realloc(id _Nullable anObject, size_t nBytes)
__attribute__((unavailable));
extern "C" __attribute__((visibility("default"))) id _Nullable
object_reallocFromZone(id _Nullable anObject, size_t nBytes, void * _Nullable z)
__attribute__((unavailable));
extern "C" __attribute__((visibility("default"))) void * _Nonnull
objc_getClasses(void)
__attribute__((unavailable));
extern "C" __attribute__((visibility("default"))) void
objc_addClass(Class _Nonnull myClass)
__attribute__((unavailable));
extern "C" __attribute__((visibility("default"))) void
objc_setClassHandler(int (* _Nullable )(const char * _Nonnull))
__attribute__((unavailable));
extern "C" __attribute__((visibility("default"))) void
objc_setMultithreaded(BOOL flag)
__attribute__((unavailable));
extern "C" __attribute__((visibility("default"))) id _Nullable
class_createInstanceFromZone(Class _Nullable, size_t idxIvars,
void * _Nullable z)
__attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(macosx,deprecated=10.5,message="use class_createInstance instead"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable)));
extern "C" __attribute__((visibility("default"))) void
class_addMethods(Class _Nullable, struct objc_method_list * _Nonnull)
__attribute__((unavailable));
extern "C" __attribute__((visibility("default"))) void
class_removeMethods(Class _Nullable, struct objc_method_list * _Nonnull)
__attribute__((unavailable));
extern "C" __attribute__((visibility("default"))) void
_objc_resolve_categories_for_class(Class _Nonnull cls)
__attribute__((unavailable));
extern "C" __attribute__((visibility("default"))) Class _Nonnull
class_poseAs(Class _Nonnull imposter, Class _Nonnull original)
__attribute__((unavailable));
extern "C" __attribute__((visibility("default"))) unsigned int
method_getSizeOfArguments(Method _Nonnull m)
__attribute__((unavailable));
extern "C" __attribute__((visibility("default"))) unsigned
method_getArgumentInfo(struct objc_method * _Nonnull m, int arg,
const char * _Nullable * _Nonnull type,
int * _Nonnull offset)
__attribute__((unavailable))
__attribute__((unavailable));
extern "C" __attribute__((visibility("default"))) Class _Nullable
objc_getOrigClass(const char * _Nonnull name)
__attribute__((unavailable));
extern "C" __attribute__((visibility("default"))) struct objc_method_list * _Nullable
class_nextMethodList(Class _Nullable, void * _Nullable * _Nullable)
__attribute__((unavailable));
extern "C" __attribute__((visibility("default"))) id _Nullable
(* _Nonnull _alloc)(Class _Nullable, size_t)
__attribute__((unavailable));
extern "C" __attribute__((visibility("default"))) id _Nullable
(* _Nonnull _copy)(id _Nullable, size_t)
__attribute__((unavailable));
extern "C" __attribute__((visibility("default"))) id _Nullable
(* _Nonnull _realloc)(id _Nullable, size_t)
__attribute__((unavailable));
extern "C" __attribute__((visibility("default"))) id _Nullable
(* _Nonnull _dealloc)(id _Nullable)
__attribute__((unavailable));
extern "C" __attribute__((visibility("default"))) id _Nullable
(* _Nonnull _zoneAlloc)(Class _Nullable, size_t, void * _Nullable)
__attribute__((unavailable));
extern "C" __attribute__((visibility("default"))) id _Nullable
(* _Nonnull _zoneRealloc)(id _Nullable, size_t, void * _Nullable)
__attribute__((unavailable));
extern "C" __attribute__((visibility("default"))) id _Nullable
(* _Nonnull _zoneCopy)(id _Nullable, size_t, void * _Nullable)
__attribute__((unavailable));
extern "C" __attribute__((visibility("default"))) void
(* _Nonnull _error)(id _Nullable, const char * _Nonnull, va_list)
__attribute__((unavailable));
#ifndef _REWRITER_typedef_Person
#define _REWRITER_typedef_Person
typedef struct objc_object Person;
typedef struct {} _objc_exc_Person;
#endif
struct Person_IMPL {
struct NSObject_IMPL NSObject_IVARS;
int _age;
int _height;
int _no;
};
/* @end */
struct NSObject_IMPL {
Class isa;
};
struct Person_IMPL {
struct NSObject_IMPL NSObject_IVARS;
int _age;
int _height;
int _no;
};
int main(int argc, const char * argv[]) {
/* @autoreleasepool */ { __AtAutoreleasePool __autoreleasepool;
Person *p = ((Person *(*)(id, SEL))(void *)objc_msgSend)((id)((Person *(*)(id, SEL))(void *)objc_msgSend)((id)objc_getClass("Person"), sel_registerName("alloc")), sel_registerName("init"));
Class personMetaClass = object_getClass(((Class (*)(id, SEL))(void *)objc_msgSend)((id)objc_getClass("Person"), sel_registerName("class")));
}
return 0;
}
static struct IMAGE_INFO { unsigned version; unsigned flag; } _OBJC_IMAGE_INFO = { 0, 2 };
| [
"misscxuan@163.com"
] | misscxuan@163.com |
1339663c5b807b2e8ef1021f9d9cc0e49c4c33ae | 39c4ff5546bed2d205397dcd292149993f503cc6 | /Struct/Param.cpp | 9629fc682d34feb8dfa76942acb19c8df3117016 | [] | no_license | Antloup/pld_comp | fc1e1d4e427dd13722b9ec76618341b177f96180 | c672b04be14f1746d1a25dd86ffda7f553bff172 | refs/heads/master | 2020-05-03T11:09:59.495552 | 2018-04-09T18:04:20 | 2018-04-09T18:04:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 527 | cpp | #include "Param.h"
#include <iostream>
Param::Param(SigType::SigType type,std::string name) : type(type), name(name)
{
}
Param::~Param()
{
}
void Param::print(int tab) {
std::cout << "Name : " << name << std::endl;
std::cout << "Type : " << getType(type) << std::endl;
}
string Param::getType(int type) {
switch(type){
case Type::CHAR:
return "char";
case Type::INT32_T:
return "int32";
case Type::INT64_T:
return "int64";
}
return "unk";
}
| [
"anthony.loup@insa-lyon.fr"
] | anthony.loup@insa-lyon.fr |
088b65a8cdd4ddaa4bf3b0a6d93439f48c558225 | e03a90b9705a3ffbe7ebcc91542b71d59e825190 | /prac_PlayList/prac_PlayList/Top8_Playlist_Container.h | 01edcaf90d1e2d48d0045e11b294f30d2e20d78a | [] | no_license | pvelarde/playlist | 0eb1c861b8cc6ab51c72a15a0a0b5f509cd5323e | d7fa414c093f5ae8abf952a5d5417d8ff6dc1b26 | refs/heads/master | 2021-01-21T13:30:08.302396 | 2016-04-25T14:07:08 | 2016-04-25T14:07:08 | 51,379,697 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 753 | h | //
// Top8_Playlist_Container.hpp
// prac_PlayList
//
// Created by Nick Maresco on 4/5/16.
// Copyright © 2016 ___Marss___. All rights reserved.
//
#ifndef Top8_Playlist_Container_h
#define Top8_Playlist_Container_h
#include "Playlist_Container.h"
#include <vector>
class Top8_Playlist_Container: public Playlist_Container{
public:
Top8_Playlist_Container();
~Top8_Playlist_Container();
// Pass in the index of the desired playlist
bool add(string _id);
bool erase(string _id);
bool erase_least_popular();
void sort();
vector<string> top8_backend;
static short int instance_count;
private:
protected:
};
#endif /* Top8_Top8_Playlist_Container_hpp */
| [
"nmarsco@bu.edu"
] | nmarsco@bu.edu |
248db803236bb3ae7f76e27c1f528fe8559bdb8d | 3730a6eb2c8fd7133adbb92d536902c84e165c32 | /modul_01/task_06/main.cpp | 9c8f233a8aeade15056bb191ea1822c7cd4df782 | [] | no_license | Surfingbird/Algorithms_TP | 0a6f39ec94fa9ae24fe1e5043919f81e8b389265 | 34a97749f397b824d3e75e1d8a15ab82f1eb5882 | refs/heads/master | 2020-04-03T06:24:03.474292 | 2018-12-10T20:39:42 | 2018-12-10T20:39:42 | 155,073,576 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,957 | cpp | #include <iostream>
using namespace std;
int RandomP(int left, int right) {
return rand() % (right - left + 1) + left;
}
void Swap(int* left, int* right) {
int mnt = *left;
*left = *right;
*right = mnt;
}
void Printer(int* buffer, int size) {
for(int i = 0; i < size; ++i) {
cout << buffer[i] << " ";
}
cout << endl;
}
//int partition2(int* arr, int l, int r) {
// int p = arr[(l + r) / 2];
// int i = l;
// int j = r;
// while (i <= j) {
// while (arr[i] < p)
// i++;
// while (arr[j] > p)
// j--;
// if (i >= j)
// break;
// Swap(&arr[i++], &arr[j--]);
// }
// return j;
//}
int partition(int* arr, int left, int right) {
int i = left;
int j = left;
int PivotIndex = RandomP(left, right - 1);
Swap(&arr[PivotIndex], &arr[right - 1]);
PivotIndex = right - 1;
while(i < PivotIndex && arr[i] < arr[PivotIndex])
++i;
j = i;
while(j < PivotIndex) {
while (j < PivotIndex && arr[j] >= arr[PivotIndex]) {
++j;
}
if(i < j && j != PivotIndex) {
Swap(&arr[i], &arr[j]);
i++;
}
}
Swap(&arr[i], &arr[PivotIndex]);
PivotIndex = i;
return PivotIndex;
}
int KStatistic(int* arr, int size, int index) {
int left = 0;
int right = size;
while (true) {
const int mid = partition(arr, left, right);
if (mid == index) {
// cout << mid << ": " << arr[mid] << endl;
return arr[mid];
}
else if (index < mid) {
right = mid;
}
else {
left = mid + 1;
}
}
}
int main() {
int size = 0;
int value = -1;
cin >> size;
cin >> value;
int *buffer = new int[size];
for (int i = 0; i < size; ++i) {
cin >> buffer[i];
}
cout << KStatistic(buffer, size, value);
return 0;
} | [
"a.baronskiy@mail.ru"
] | a.baronskiy@mail.ru |
7e6f20dd548eb825f9c58999b03269d2aec6908d | e731ec8f4f80a8c2e5b6064e0bba4a0d30be9ea3 | /codeWithMotorCalibrationAndLCD/codeWithMotorCalibration3/codeWithMotorCalibration3.ino | 57510d183b60bb4eaf2bf83e874816e81bd344bf | [] | no_license | AlaaAmeen/LiLi-Educational-Robot | fcd019930db430926f067749b6ad9db406a973d9 | 4b8fc2835007747ade10b161dccbef41625b90cd | refs/heads/master | 2022-11-20T07:30:57.434471 | 2020-07-11T18:07:14 | 2020-07-11T18:07:14 | 278,915,696 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,896 | ino | #include <Keypad.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#define IN1 12
#define IN2 13
#define EN1 10
#define IN3 3
#define IN4 4
#define EN2 11
#define pi 3.14159
#define L 0.13 //meter
#define maxVoltR 4.5
#define maxVoltL 4.6
LiquidCrystal_I2C lcd(0x27,20,4); // set the LCD address to 0x27 for a 16 chars and 2 line display
int flag = 1;
int X = 0, Y = 0, Xold = 0, Yold = 0, Xdiff = 0, Ydiff = 0, counter = 1, cursorPlace = 11;
byte B[8] = {
0b00000,
0b00000,
0b00000,
0b10001,
0b11111,
0b00000,
0b00100,
0b00000
};
byte T[8] = {
0b00000,
0b01010,
0b00000,
0b10001,
0b11111,
0b00000,
0b00000,
0b00000
};
byte H[8] = {
0b00000,
0b01110,
0b00100,
0b01000,
0b10000,
0b01000,
0b00110,
0b00000
};
byte Kh[8] = {
0b00100,
0b00000,
0b01110,
0b00100,
0b01000,
0b10000,
0b01000,
0b00110
};
byte D[8] = {
0b00000,
0b00000,
0b00001,
0b00001,
0b00001,
0b01111,
0b00000,
0b00000
};
byte TH[8] = {
0b00001,
0b00000,
0b00001,
0b00001,
0b00001,
0b01111,
0b00000,
0b00000
};
byte R[8] = {
0b00000,
0b00001,
0b00001,
0b00001,
0b00010,
0b00100,
0b01000,
0b00000
};
byte Z[8] = {
0b00001,
0b00000,
0b00001,
0b00001,
0b00001,
0b00010,
0b00100,
0b01000
};
const byte ROWS = 4; //four rows
const byte COLS = 4; //three columns
char keys[ROWS][COLS] = {
{'1','2','3','A'},
{'4','5','6','B'},
{'7','8','9','C'},
{'*','0','#','D'}
};
byte rowPins[ROWS] = {9, 8, 7, 6}; //connect to the row pinouts of the keypad
byte colPins[COLS] = {5, 2, 1, 0}; //connect to the column pinouts of the keypad
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
void setup(){
pinMode(IN1, OUTPUT);
pinMode(IN2, OUTPUT);
pinMode(EN1, OUTPUT);
pinMode(IN3, OUTPUT);
pinMode(IN4, OUTPUT);
pinMode(EN2, OUTPUT);
//Serial.begin(9600);
lcd.init(); // initialize the lcd
lcd.backlight();
lcd.createChar(0,B);
lcd.createChar(1,T);
lcd.createChar(2,H);
lcd.createChar(3,Kh);
lcd.createChar(4,D);
lcd.createChar(5,TH);
lcd.createChar(6,R);
lcd.createChar(7,Z);
lcd.begin(16,2);
}
void loop(){
char key = keypad.getKey();
if (key == 'A'){
X = 0;
Y = 0;
steps(X, Y);
}
else if (key == '3'){
X = 1;
Y = 0;
steps(X, Y);
BLetter();
}
else if (key == '2'){
X = 2;
Y = 0;
steps(X, Y);
TLetter();
}
else if (key == '1'){
X = 3;
Y = 0;
steps(X, Y);
}
else if (key == 'B'){
X = 0;
Y = 1;
steps(X, Y);
}
else if (key == '6'){
X = 1;
Y = 1;
steps(X, Y);
HLetter();
}
else if (key == '5'){
X = 2;
Y = 1;
steps(X, Y);
KhLetter();
}
else if (key == '4'){
X = 3;
Y = 1;
steps(X, Y);
DLetter();
}
else if (key == 'C'){
X = 0;
Y = 2;
steps(X, Y);
THLetter();
}
else if (key == '9'){
X = 1;
Y = 2;
steps(X, Y);
RLetter();
}
else if (key == '8'){
X = 2;
Y = 2;
steps(X, Y);
ZLetter();
}
else if (key == '7'){
X = 3;
Y = 2;
steps(X, Y);
}
else if (key == 'D'){
reset();
X = Y = Xold = Yold = Xdiff = Ydiff = 0;
flag = 1;
counter = 1;
cursorPlace = 11;
lcd.clear();
}
}
/*
float PWM_Evaluation(float V, float W){
float rightVelocity, leftVelocity, voltR, voltL;
int pwmR, pwmL;
if (counter == 1){
rightVelocity = (V + (W*L/2.0));
voltR = (0.2042 * pow(rightVelocity,2)) + (6.4 * rightVelocity) + 0.59;
//voltR = (1177.9 * pow(rightVelocity,3)) - (1630.6 * pow(rightVelocity,2)) + (751.16 * rightVelocity) - 111.31;
pwmR = (int)((voltR / maxVoltR) * 255);
counter = 0;
return pwmR;
}
else{
leftVelocity = (V - (W*L/2.0));
voltL = (0.2047 * pow(leftVelocity,2)) + (6.2452 * leftVelocity) + 0.4473;
//voltL = (248.21 * pow(leftVelocity,3)) - (342.91 * pow(leftVelocity,2)) + (161.29 * leftVelocity) - 21.791;
pwmL = (int)((voltL / maxVoltL) * 255);
counter = 1;
return pwmL;
}
}
*/
void BLetter(){
lcd.setCursor(cursorPlace,0);
cursorPlace -= 1;
lcd.write(0);
}
void TLetter(){
lcd.setCursor(cursorPlace,0);
cursorPlace -= 1;
lcd.write(1);
}
void HLetter(){
lcd.setCursor(cursorPlace,0);
cursorPlace -= 1;
lcd.write(2);
}
void KhLetter(){
lcd.setCursor(cursorPlace,0);
cursorPlace -= 1;
lcd.write(3);
}
void DLetter(){
lcd.setCursor(cursorPlace,0);
cursorPlace -= 1;
lcd.write(4);
}
void THLetter(){
lcd.setCursor(cursorPlace,0);
cursorPlace -= 1;
lcd.write(5);
}
void RLetter(){
lcd.setCursor(cursorPlace,0);
cursorPlace -= 1;
lcd.write(6);
}
void ZLetter(){
lcd.setCursor(cursorPlace,0);
cursorPlace -= 1;
lcd.write(7);
}
void forward(int diff){
/*
float V = 0.36; float W = 0; //with the new battery I decreased the linear velocity
float PWMR = PWM_Evaluation(V, W);
float PWML = PWM_Evaluation(V, W);
*/
delay(500);
digitalWrite(IN1,HIGH);
digitalWrite(IN2,LOW);
analogWrite(EN1,165); // We can adjust this value
digitalWrite(IN3,HIGH);
digitalWrite(IN4,LOW);
analogWrite(EN2,175); // We can adjust this value
delay(diff*420); // We can adjust this value
analogWrite(EN1, 0);
analogWrite(EN2, 0);
delay(300);
}
void backward(int diff){
/*
float V = 0.4; float W = 0;
float PWMR = PWM_Evaluation(V, W);
float PWML = PWM_Evaluation(V, W);
*/
delay(500);
digitalWrite(IN1,LOW);
digitalWrite(IN2,HIGH);
analogWrite(EN1,165); // We can adjust this value
digitalWrite(IN3,LOW);
digitalWrite(IN4,HIGH);
analogWrite(EN2,185); // We can adjust this value
delay(diff*430); // We can adjust this value
analogWrite(EN1, 0);
analogWrite(EN2, 0);
delay(300);
}
void turnRight(){
/*float V = 0.36; float W = -1*(pi/2); //clockwise
float PWMR = PWM_Evaluation(V, W);
float PWML = PWM_Evaluation(V, W);*/
delay(500);
//Right wheel inputs are LOW
digitalWrite(IN1,HIGH);
digitalWrite(IN2,LOW);
analogWrite(EN1,167);
digitalWrite(IN3,LOW);
digitalWrite(IN4,HIGH);
analogWrite(EN2,107); // We can adjust this value
delay(300); // We can adjust this value to give 90 degree
analogWrite(EN1, 0);
analogWrite(EN2, 0);
delay(300);
}
void turnLeft(){
/*
float V = 0.36; float W = pi/2; //couter clockwise
float PWMR = PWM_Evaluation(V, W);
float PWML = PWM_Evaluation(V, W);
*/
delay(500);
digitalWrite(IN1,LOW);
digitalWrite(IN2,HIGH);
analogWrite(EN1,94);
//Left wheel inputs are LOW
digitalWrite(IN3,HIGH);
digitalWrite(IN4,LOW);
analogWrite(EN2,183); // We can adjust this value
delay(310); // We can adjust this value to give 90 degree
analogWrite(EN1, 0);
analogWrite(EN2, 0);
delay(300);
}
void motionInX(int Xdiff, int Ydiff){
if (Xdiff > 0 && flag == 1){
forward(abs(Xdiff));
flag = 1;
}
else if (Xdiff < 0 && flag == 1){
backward(abs(Xdiff));
//flag = 2; /////////////////// backward the flag remain the same
}
else if (Xdiff > 0 && flag == 3){
turnRight();
forward(abs(Xdiff));
flag = 1;
}
else if (Xdiff < 0 && flag == 3){
turnLeft();
forward(abs(Xdiff));
flag = 2;
}
else if (Xdiff > 0 && flag == 4){
turnLeft();
forward(abs(Xdiff));
flag = 1;
}
else if (Xdiff < 0 && flag == 4){
turnRight();
forward(abs(Xdiff));
flag = 2;
}
else if (Xdiff > 0 && flag == 2){
backward(abs(Xdiff));
//flag = 2;
}
else if (Xdiff < 0 && flag == 2){
forward(abs(Xdiff));
flag = 2;
}
}
void motionInY(int Xdiff, int Ydiff){
if (Ydiff > 0 && flag == 3){
forward(abs(Ydiff));
flag = 3;
}
else if (Ydiff < 0 && flag == 3){
backward(abs(Ydiff));
//flag = 4;
}
else if (Ydiff > 0 && flag == 1){
turnLeft();
forward(abs(Ydiff));
flag = 3;
}
else if (Ydiff < 0 && flag == 1){
turnRight();
forward(abs(Ydiff));
flag = 4;
}
else if (Ydiff > 0 && flag == 2){
turnRight();
forward(abs(Ydiff));
flag = 3;
}
else if (Ydiff < 0 && flag == 2){
turnLeft(); //////////////////////////////////////////////////////////
forward(abs(Ydiff));
flag = 4;
}
else if (Ydiff > 0 && flag == 4){
backward(abs(Ydiff));
//flag = 4;
}
else if (Ydiff < 0 && flag == 4){
forward(abs(Ydiff));
flag = 4;
}
}
void reset(){
digitalWrite(IN1,LOW);
digitalWrite(IN2,LOW);
analogWrite(EN1,0);
digitalWrite(IN3,LOW);
digitalWrite(IN4,LOW);
analogWrite(EN2,0);
delay(1000);
}
void steps(int X, int Y){
Xdiff = X - Xold;
Ydiff = Y - Yold;
if (Xdiff == 0 && Ydiff == 0){
reset();
}
else{
if (Xdiff != 0){
motionInX(Xdiff, Ydiff);
}
if (Ydiff != 0){
motionInY(Xdiff, Ydiff);
}
}
Xold = X;
Yold = Y;
}
| [
"alaaameen34@gmail.com"
] | alaaameen34@gmail.com |
11d29395d8c6299439f170e2d8f5010effa0d474 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /chrome/browser/extensions/api/declarative_content/content_constants.h | 4286c6ef0bddf43ec3ae691138c584615af16181 | [
"BSD-3-Clause"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | C++ | false | false | 1,155 | h | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Constants used for the declarativeContent API.
#ifndef CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_CONTENT_CONTENT_CONSTANTS_H_
#define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_CONTENT_CONTENT_CONSTANTS_H_
namespace extensions {
namespace declarative_content_constants {
// Signals to which ContentRulesRegistries are registered.
extern const char kOnPageChanged[];
// Keys of dictionaries.
extern const char kAllFrames[];
extern const char kCss[];
extern const char kInstanceType[];
extern const char kIsBookmarked[];
extern const char kJs[];
extern const char kMatchAboutBlank[];
extern const char kPageUrl[];
// Values of dictionaries, in particular instance types
extern const char kPageStateMatcherType[];
extern const char kShowPageAction[];
extern const char kRequestContentScript[];
extern const char kSetIcon[];
} // namespace declarative_content_constants
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_CONTENT_CONTENT_CONSTANTS_H_
| [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
a92f3d3da05df354025b7f8f9aeafff31cfcc6e8 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/squid/gumtree/squid_repos_function_1562_last_repos.cpp | a32b431fb33a197417aa9632aad72a6fced602d9 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 388 | cpp | static void
peerProbeConnectDone(const Comm::ConnectionPointer &conn, Comm::Flag status, int, void *data)
{
CachePeer *p = (CachePeer*)data;
if (status == Comm::OK) {
peerConnectSucceded(p);
} else {
peerConnectFailedSilent(p);
}
-- p->testing_now;
conn->close();
// TODO: log this traffic.
if (p->reprobe)
peerProbeConnect(p);
} | [
"993273596@qq.com"
] | 993273596@qq.com |
6517c03c6f8de0859e0237b4591cf047f7654b2c | aaa0de4c5f52a653958f3317c0af9269aaee14a5 | /Source/SimpleShooter/ShooterAIController.h | 23b9fad2a0e2e6f8f144a80a79599ed17a3f3074 | [] | no_license | Zakurath/Agile4_Take-2 | 755e85397de994f7e23be2e21ae5fa4338ad810d | 29f461e36bed11339a383b3675e9c539b724a3d5 | refs/heads/main | 2023-01-09T08:55:30.102666 | 2020-11-09T15:21:40 | 2020-11-09T15:21:40 | 311,111,145 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 479 | h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "AIController.h"
#include "ShooterAIController.generated.h"
/**
*
*/
UCLASS()
class SIMPLESHOOTER_API AShooterAIController : public AAIController
{
GENERATED_BODY()
public:
virtual void Tick(float DeltaSeconds) override;
protected:
virtual void BeginPlay() override;
private:
UPROPERTY(EditAnywhere)
class UBehaviorTree* AIBehavior;
};
| [
"63682172+Zakurath@users.noreply.github.com"
] | 63682172+Zakurath@users.noreply.github.com |
e9fd86319ad9c683eef0ef86dbf64e9781d7afa3 | 3f4c7f377f591551ae1262e46b721502aaec3770 | /test_source/test_5__i5_s5_w6_1_1_1_1_1_k_pipeline_5_CPU_Limit_5_.cpp | 8bc8c925df0ae27d655827494f970bde69f5fffe | [] | no_license | gleiryag/PPP | 3b00f753256be343bc4979b7d9f6632ca5a4b325 | 8f8fd0fe82be824925d6ea390257ca4db6441e4c | refs/heads/master | 2021-01-22T18:14:43.410335 | 2017-08-13T17:38:06 | 2017-08-13T17:38:06 | 85,057,924 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 965 | cpp | #include<mainutils.hpp>
using INT_1 = struct { int array[1]; };
INT_1 stage_0( INT_1 input){ dowork(6) ; return input; }
INT_1 stage_1( INT_1 input){ dowork(6) ; return input; }
INT_1 stage_2( INT_1 input){ dowork(6) ; return input; }
INT_1 stage_3( INT_1 input){ dowork(6) ; return input; }
INT_1 stage_4( INT_1 input){ dowork(6) ; return input; }
int main(){
INT_1 value = { 0};
std::vector<Row> results{};
Timer& timer = Timer::getTimer();
for(int i =0 ; i < 5 ; i++){
Source<INT_1> input{value,value};
Row exp_results=Eigen::VectorXd::Zero(5);
for(int j = 0 ; j < 5 ; j++){
input.append(value,100);
input.reset();
timer.set();
auto output = k_pipeline<5,CPU_Limit<5>>(input,stage_0,stage_1,stage_2,stage_3,stage_4);
output.wait();
double elapsed = timer.computeElapsed();
exp_results(0,j)=elapsed;
}
results.push_back(exp_results);
}
process_results("test_5__i5_s5_w6_1_1_1_1_1_k_pipeline_5_CPU_Limit_5_",results);
}
| [
"gaswmskkorymva@ciencias.unam.mx"
] | gaswmskkorymva@ciencias.unam.mx |
4ccb0e1658dc390bce48e6c6c5532429e7eeb21c | e510f852e76bd0ba8ce728bf38ae335b168c5a10 | /Algo_submission/CODE/Binary_search_tree/Binary_search_tree.cpp | 7e6003af55285fb33484e6814c2b02b985e0cdb2 | [] | no_license | mayanksriv00/Algorithms_programs | 13bf1cb9506ece049c24bdeda0ba7e31c37df3a1 | 197e94102ac327df929329afe51da789609b5f59 | refs/heads/master | 2023-02-01T08:38:02.746666 | 2020-12-15T02:06:26 | 2020-12-15T02:06:26 | 317,283,185 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,409 | cpp | #include<iostream>
#include<vector>
#include<fstream>
#include<sstream>
#include<string>
using namespace std;
struct TreeNode{
int number;
struct TreeNode* left;
struct TreeNode* right;
}*root;
struct TreeNode* insertion(int num,TreeNode* node) //Inserting elements in Binary search Tree
{
if(node == NULL)
{
node=new TreeNode;
node->number=num;
node->left=NULL;
node->right=NULL;
return node;
}
else if(num<node->number)
node->left=insertion(num,node->left);
else
node->right=insertion(num,node->right);
return node;
}
void inorder_traversal(TreeNode* node) //Inorder Traversal
{
if(node==NULL)
return;
inorder_traversal(node->left);
cout<<node->number<<" ";
inorder_traversal(node->right);
}
void preorder_traversal(TreeNode* node) //preorder traversal
{
if(node==NULL)
return;
cout<<node->number<<" ";
preorder_traversal(node->left);
preorder_traversal(node->right);
}
void postorder_traversal(TreeNode* node) //Post order traversal
{
if(node==NULL)
return;
postorder_traversal(node->left);
postorder_traversal(node->right);
cout<<node->number<<" ";
}
int height(TreeNode* node) //Height of the tree
{
int left=0,right=0;
if(node==NULL)
return 0;
left=left+height(node->left);
right=right+height(node->right);
if(left>right)
return left+1;
else
return right+1;
}
struct TreeNode* findingMin(TreeNode* node) //Finding Min element in the BST
{
if(node==NULL)
return NULL;
else if(node->left==NULL)
return node;
else
return findingMin(node->left);
}
struct TreeNode* findingMax(TreeNode* node) //Finding max element in the BST
{
if(node==NULL)
return NULL;
else if(node->right==NULL)
return node;
else
return findingMax(node->right);
}
struct TreeNode* search(TreeNode* node,int element) //Search element in a BST
{
if(node==NULL)
return node;
if(element<node->number)
return search(node->left,element);
else if(element>node->number)
return search(node->right,element);
else
return node;
}
struct TreeNode* NodeWithMin(struct TreeNode* node)
{
struct TreeNode* present=node;
while(present && present->left!=NULL)
present = present->left;
return present;
}
struct TreeNode* nodeDeletion(TreeNode* node,int element)
{
if(node==NULL)
return node;
if(element<node->number) //If element is less than node value, means mve left
node->left=nodeDeletion(node->left,element);
else if(element>node->number) //If the element is greater than the node value, means move right
node->right=nodeDeletion(node->right,element);
else{
if(node->left==NULL) //nodes with 1 children
{
struct TreeNode* tmp=node->right;;
free(node);
return tmp;
}
else if(node->right==NULL)
{
struct TreeNode* tmp=node->left;
free(node);
return tmp;
}
struct TreeNode* tmp=NodeWithMin(node->right); //inorder successor: nodes with 2 children
node->number=tmp->number;
node->right=nodeDeletion(node->right,tmp->number);
}
return node;
}
void levelwise(TreeNode* node,int he)
{
if(node==NULL)
return;
if(he==1)
cout<<node->number<<" ";
else if(he>1)
{
levelwise(node->left,he-1);
levelwise(node->right,he-1);
}
}
void printBFS(TreeNode* node)
{
int he=height(node);
for(int i=1;i<=he;i++)
levelwise(node,i);
}
int main(int argc,char* argv[])
{
//Traversal--------------------------------------------------
//inorder_traversal(root);
//preorder_traversal(root);
//postorder_traversal(root);
//Finding max in BST-----------------------------------------
//TreeNode* tmp=findingMax(root);
//cout<<tmp->number<<endl;
//FInding mix in BST-----------------------------------------
//TreeNode* tmp=findingMin(root);
//cout<<tmp->number<<endl;
//Searching element in BST ---------------------------------
//TreeNode* tmp=search(root,56); //if tmp return null element not found else found
//if(tmp)
// cout<<"Element found"<<endl;
//else
// cout<<"Element not found"<<endl;
//Height of the Binary search tree------------------------------------
//cout<<height(root)<<endl;1
//Node deletion
//inorder_traversal(root);
//root=nodeDeletion(root,23);
//inorder_traversal(root);
//Operation to perform for retriving data form the file and calculating height on each input
fstream file_dec;
long long int total_time=0;
if(argc!=2)
perror("Please enter the required format <filename in cpp> <input filename>");
file_dec.open(argv[1],ios::in);
vector<int> abc;
if(file_dec.is_open())
{
string text;
while (getline(file_dec,text))
{
stringstream ss(text);
cout<<text<<endl;
string mid;
while(getline(ss,mid,' '))
{
abc.push_back(stoll(mid,nullptr,10));
}
}
}
file_dec.close();
cout<<endl<<"Input"<<endl;
for(int i=0;i<abc.size();i++)
cout<<i<<"::"<<abc[i]<<" ";
cout<<endl<<endl;
//storing height of the tree in file and showing the level order traversal at the end(otherwise will take whole area in terminal)
ofstream output_file_sort;
output_file_sort.open("Result_height.txt",ios::out|ios::app);
for(int i=0;i<abc.size();i++)
{
root=insertion(abc[i],root);
int h=height(root); //calculating height for each insertion
output_file_sort<<h<<endl;
}
output_file_sort.close();
printBFS(root);
cout<<endl;
return 0;
} | [
"mayanksriv00@gmail.com"
] | mayanksriv00@gmail.com |
6cc907a8a28cc16edcf09abe8b50ae58d07e0ae2 | 5bf4b0fa152d65f15b9cb190b58364031a2065e9 | /study/ant_programming/sample_stack01.cpp | c7a5291b931f4b8afd0d4f81bcde1aeaab813cd5 | [] | no_license | koralle/Cpp | bf2320b7bdb1981663171fb0b9ddb8e6e69bb2d5 | d7d8971504a1fdbc0ef82a51226d20100c6b8645 | refs/heads/master | 2021-06-24T17:39:11.161127 | 2020-12-30T14:12:25 | 2020-12-30T14:12:25 | 195,614,662 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 349 | cpp | #include <stack>
#include <iostream>
using namespace std;
int main(void) {
stack<int> s;
// push
s.push(1);
s.push(2);
s.push(3);
// top and pop
cout << s.top() << endl; //3
s.pop();
cout << s.top() << endl; //3
s.pop();
cout << s.top() << endl; //3
s.pop();
return 0;
} | [
"mkhd7930@gmail.com"
] | mkhd7930@gmail.com |
c3b1f5c5c9389c6e26bbdf78a76d1969439429d1 | 75b603b7973023d8d53bacaa2ecb663d430e686e | /202102/20210218-2/main.cpp | b8d0c7baebf5d7d26bba12cdf4c0b0eca6325f67 | [] | no_license | QiuYeDx/2021 | ad7cf4d8efdedff82a8beb5d2da41ad4c025c833 | 85ff5249b7d0d60405a0b977da29b395451b99f8 | refs/heads/master | 2023-05-04T07:19:08.301190 | 2021-05-19T02:54:44 | 2021-05-19T02:54:44 | 325,790,282 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 553 | cpp | #include <iostream> //P1781 宇宙总统 高精度数字用string储存来排序/自定义比较器
#include <algorithm>
using namespace std;
int const MAXN = 30;
struct node{
int id;
string x;
}s[MAXN];
bool cmp(node a, node b)
{
if(a.x.length() != b.x.length())
return a.x.length() > b.x.length();
else
return a.x > b.x;
}
int main() {
int n;
cin >> n;
for(int i=0;i<n;i++)
{
s[i].id=i+1;
cin >> s[i].x;
}
sort(s,s+n,cmp);
cout << s[0].id << endl << s[0].x;
return 0;
}
| [
"71062076+QiuYeDx@users.noreply.github.com"
] | 71062076+QiuYeDx@users.noreply.github.com |
0fcc66ab8340692f858ff95af02a80ac37340324 | f7327136419a3b895fb185bdc0af7a08256f8aed | /paddle/fluid/inference/utils/io_utils.cc | 3691285ba3a51cf826f7daf7d3056afc4ebdc6bc | [
"Apache-2.0"
] | permissive | paddlelaw/Paddle | 45a7598535d6a4b9dd0cfb9bbc61540ff9c1c21e | 12865234fe1e28fe5df50a43901845ceaea42c2d | refs/heads/develop | 2023-08-28T01:19:16.786973 | 2021-10-09T14:39:35 | 2021-10-09T14:39:35 | 331,300,511 | 0 | 0 | Apache-2.0 | 2021-10-09T14:39:36 | 2021-01-20T12:29:27 | Python | UTF-8 | C++ | false | false | 10,528 | cc | // Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/fluid/inference/utils/io_utils.h"
#include <fcntl.h>
#include <utility>
#include "google/protobuf/io/zero_copy_stream_impl.h"
#include "google/protobuf/text_format.h"
#include "paddle/fluid/inference/analysis/helper.h"
#include "paddle/fluid/inference/utils/shape_range_info.pb.h"
namespace paddle {
namespace inference {
// =========================================================
// Item | Type | Bytes
// ---------------------------------------------------------
// Version | uint32_t | 4
// ---------------------------------------------------------
// Bytes of `Name` | uint64_t | 8
// Name | char | Bytes of `Name`
// ---------------------------------------------------------
// LoD Level | uint64_t | 8
// Bytes of `LoD[0]`| uint64_t | 8
// LoD[0] | uint64_t | Bytes of `LoD[0]`
// ... | ... | ...
// ---------------------------------------------------------
// Dims of `Shape` | uint64_t | 8
// Shape | uint64_t | Dims * 4
// ---------------------------------------------------------
// Dtype | int32_t | 4
// Bytes of `Data` | uint64_t | 8
// Data | Dtype | Bytes of `Data`
// =========================================================
void SerializePDTensorToStream(std::ostream *os, const PaddleTensor &tensor) {
// 1. Version
os->write(reinterpret_cast<const char *>(&kCurPDTensorVersion),
sizeof(kCurPDTensorVersion));
// 2. Name
uint64_t name_bytes = tensor.name.size();
os->write(reinterpret_cast<char *>(&name_bytes), sizeof(name_bytes));
os->write(tensor.name.c_str(), name_bytes);
// 3. LoD
auto lod = tensor.lod;
uint64_t lod_size = lod.size();
os->write(reinterpret_cast<const char *>(&lod_size), sizeof(lod_size));
for (auto &each : lod) {
auto size = each.size() * sizeof(size_t);
os->write(reinterpret_cast<const char *>(&size), sizeof(size));
os->write(reinterpret_cast<const char *>(each.data()),
static_cast<std::streamsize>(size));
}
// 4. Shape
size_t dims = tensor.shape.size();
os->write(reinterpret_cast<const char *>(&dims), sizeof(dims));
os->write(reinterpret_cast<const char *>(tensor.shape.data()),
sizeof(int) * dims);
// 5. Data
os->write(reinterpret_cast<const char *>(&tensor.dtype),
sizeof(tensor.dtype));
uint64_t length = tensor.data.length();
os->write(reinterpret_cast<const char *>(&length), sizeof(size_t));
os->write(reinterpret_cast<const char *>(tensor.data.data()), length);
}
void DeserializePDTensorToStream(std::istream &is, PaddleTensor *tensor) {
// 1. Version
uint32_t version;
is.read(reinterpret_cast<char *>(&version), sizeof(version));
// 2. Name
uint64_t name_bytes;
is.read(reinterpret_cast<char *>(&name_bytes), sizeof(name_bytes));
std::vector<char> bytes(name_bytes);
is.read(bytes.data(), name_bytes);
tensor->name = std::string(bytes.data(), name_bytes);
// 3. LoD
uint64_t lod_level;
is.read(reinterpret_cast<char *>(&lod_level), sizeof(lod_level));
auto *lod = &(tensor->lod);
lod->resize(lod_level);
for (uint64_t i = 0; i < lod_level; ++i) {
uint64_t size;
is.read(reinterpret_cast<char *>(&size), sizeof(size));
std::vector<size_t> tmp(size / sizeof(size_t));
is.read(reinterpret_cast<char *>(tmp.data()),
static_cast<std::streamsize>(size));
(*lod)[i] = tmp;
}
// 4. Shape
size_t dims;
is.read(reinterpret_cast<char *>(&dims), sizeof(dims));
tensor->shape.resize(dims);
is.read(reinterpret_cast<char *>(tensor->shape.data()), sizeof(int) * dims);
// 5. Data
uint64_t length;
is.read(reinterpret_cast<char *>(&tensor->dtype), sizeof(tensor->dtype));
is.read(reinterpret_cast<char *>(&length), sizeof(length));
tensor->data.Resize(length);
is.read(reinterpret_cast<char *>(tensor->data.data()), length);
}
// =========================================================
// Item | Type | Bytes
// ---------------------------------------------------------
// Version | uint32_t | 4
// ---------------------------------------------------------
// Size of Tensors | uint64_t | 8
// Tensors | ---- | ---
// ---------------------------------------------------------
void SerializePDTensorsToStream(std::ostream *os,
const std::vector<PaddleTensor> &tensors) {
// 1. Version
os->write(reinterpret_cast<const char *>(&kCurPDTensorVersion),
sizeof(kCurPDTensorVersion));
// 2. Tensors
uint64_t num = tensors.size();
os->write(reinterpret_cast<char *>(&num), sizeof(num));
for (const auto &tensor : tensors) {
SerializePDTensorToStream(os, tensor);
}
}
void DeserializePDTensorsToStream(std::istream &is,
std::vector<PaddleTensor> *tensors) {
// 1. Version
uint32_t version;
is.read(reinterpret_cast<char *>(&version), sizeof(version));
// 2. Tensors
uint64_t num;
is.read(reinterpret_cast<char *>(&num), sizeof(num));
tensors->resize(num);
for (auto &tensor : *tensors) {
DeserializePDTensorToStream(is, &tensor);
}
}
void SerializePDTensorsToFile(const std::string &path,
const std::vector<PaddleTensor> &tensors) {
std::ofstream fout(path, std::ios::binary);
SerializePDTensorsToStream(&fout, tensors);
fout.close();
}
void DeserializePDTensorsToFile(const std::string &path,
std::vector<PaddleTensor> *tensors) {
bool is_present = analysis::FileExists(path);
PADDLE_ENFORCE_EQ(is_present, true, platform::errors::InvalidArgument(
"Cannot open %s to read", path));
std::ifstream fin(path, std::ios::binary);
DeserializePDTensorsToStream(fin, tensors);
fin.close();
}
void SerializeShapeRangeInfo(
const std::string &path,
const paddle::inference::proto::ShapeRangeInfos &info) {
int out_fd = open(path.c_str(), O_WRONLY | O_CREAT | O_TRUNC, 0644);
google::protobuf::io::FileOutputStream *os =
new google::protobuf::io::FileOutputStream(out_fd);
google::protobuf::TextFormat::Print(info, os);
delete os;
close(out_fd);
}
void SerializeShapeRangeInfo(
const std::string &path,
const std::map<std::string, std::vector<int32_t>> &min_shape,
const std::map<std::string, std::vector<int32_t>> &max_shape,
const std::map<std::string, std::vector<int32_t>> &opt_shape) {
paddle::inference::proto::ShapeRangeInfos shape_range_infos;
for (auto it : min_shape) {
auto *s = shape_range_infos.add_shape_range_info();
s->set_name(it.first);
for (size_t i = 0; i < it.second.size(); ++i) {
s->add_min_shape(it.second[i]);
s->add_max_shape(max_shape.at(it.first)[i]);
s->add_opt_shape(opt_shape.at(it.first)[i]);
}
}
inference::SerializeShapeRangeInfo(path, shape_range_infos);
}
void DeserializeShapeRangeInfo(
const std::string &path, paddle::inference::proto::ShapeRangeInfos *info) {
int fd = open(path.c_str(), O_RDONLY);
google::protobuf::io::FileInputStream *is =
new google::protobuf::io::FileInputStream(fd);
google::protobuf::TextFormat::Parse(is, info);
delete is;
close(fd);
}
void DeserializeShapeRangeInfo(
const std::string &path,
std::map<std::string, std::vector<int32_t>> *min_shape,
std::map<std::string, std::vector<int32_t>> *max_shape,
std::map<std::string, std::vector<int32_t>> *opt_shape) {
paddle::inference::proto::ShapeRangeInfos shape_range_infos;
DeserializeShapeRangeInfo(path, &shape_range_infos);
for (int i = 0; i < shape_range_infos.shape_range_info_size(); ++i) {
auto info = shape_range_infos.shape_range_info(i);
auto name = info.name();
if (min_shape->count(name) || max_shape->count(name) ||
opt_shape->count(name)) {
continue;
} else {
std::vector<int32_t> tmp(info.min_shape_size());
for (size_t k = 0; k < tmp.size(); ++k) tmp[k] = info.min_shape(k);
min_shape->insert(std::make_pair(name, tmp));
tmp.resize(info.max_shape_size());
for (size_t k = 0; k < tmp.size(); ++k) tmp[k] = info.max_shape(k);
max_shape->insert(std::make_pair(name, tmp));
tmp.resize(info.opt_shape_size());
for (size_t k = 0; k < tmp.size(); ++k) tmp[k] = info.opt_shape(k);
opt_shape->insert(std::make_pair(name, tmp));
}
}
}
void UpdateShapeRangeInfo(
const std::string &path,
const std::map<std::string, std::vector<int32_t>> &min_shape,
const std::map<std::string, std::vector<int32_t>> &max_shape,
const std::map<std::string, std::vector<int32_t>> &opt_shape,
const std::vector<std::string> &names) {
paddle::inference::proto::ShapeRangeInfos shape_range_infos;
DeserializeShapeRangeInfo(path, &shape_range_infos);
for (int i = 0; i < shape_range_infos.shape_range_info_size(); ++i) {
auto *info = shape_range_infos.mutable_shape_range_info(i);
for (const auto &name : names) {
if (info->name() == name) {
info->clear_min_shape();
info->clear_max_shape();
info->clear_opt_shape();
for (size_t j = 0; j < min_shape.at(name).size(); ++j)
info->add_min_shape(min_shape.at(name)[j]);
for (size_t j = 0; j < max_shape.at(name).size(); ++j)
info->add_max_shape(max_shape.at(name)[j]);
for (size_t j = 0; j < opt_shape.at(name).size(); ++j)
info->add_opt_shape(opt_shape.at(name)[j]);
break;
}
}
}
inference::SerializeShapeRangeInfo(path, shape_range_infos);
}
} // namespace inference
} // namespace paddle
| [
"noreply@github.com"
] | noreply@github.com |
fcf40caaeefccc3623ac01e6cea1a0710595bb07 | ba65c8e08a865915193b42a3e1153c98088fc67a | /src/RollButton.cpp | 08e74de71a57918e7767a07604f9f3e953a5e20d | [] | no_license | XeonDigital/COMP397---Assignment1 | 9487da3f9efacdd7f0d6fad4c26238de41895245 | ebd90882fe603482c93e643072a2d3ba01474d00 | refs/heads/master | 2021-01-06T05:11:51.003289 | 2020-02-18T04:57:27 | 2020-02-18T04:57:27 | 241,219,293 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 494 | cpp | #include "RollButton.h"
#include "Game.h"
RollButton::RollButton()
// call super constructor
:Button(
"../Assets/textures/RollButton.png",
"rollButton",
START_BUTTON, glm::vec2(400.0f, 300.0f),true),
m_isClicked(false)
{
}
RollButton::~RollButton()
{
}
bool RollButton::ButtonClick()
{
if (m_mouseOver() && m_mouseButtonClicked)
{
if(!m_isClicked)
{
//do something here
m_isClicked = true;
}
return true;
}
else
{
m_isClicked = false;
}
return false;
}
| [
"xinrongisaweosm2@gmail.com"
] | xinrongisaweosm2@gmail.com |
547f0ad454878a3b45c589fec379814c2565f3ad | 1fcb004f2bc330a8e1b3b78317880d912b1c5be1 | /examples/pump-controller-app/nrfconnect/main/include/AppEvent.h | 28b8af9a0865235baf23da10a3a7ef7f47110768 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | nykh2010/connectedhomeip | 09a5364ccbf696739fd3dc43f8a1ced321b2fcc7 | f8d689b746f81c2a30d03da5b6a1f64f50f9f2e1 | refs/heads/master | 2023-08-15T22:42:19.625689 | 2021-10-10T18:02:20 | 2021-10-10T18:02:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,352 | h | /*
*
* Copyright (c) 2018 Nest Labs, Inc.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#include <cstdint>
struct AppEvent;
typedef void (*EventHandler)(AppEvent *);
struct AppEvent
{
enum AppEventTypes
{
kEventType_Button = 0,
kEventType_Timer,
kEventType_Start,
kEventType_Install,
#ifdef CONFIG_MCUMGR_SMP_BT
kEventType_StartSMPAdvertising,
#endif
};
uint16_t Type;
union
{
struct
{
uint8_t PinNo;
uint8_t Action;
} ButtonEvent;
struct
{
void * Context;
} TimerEvent;
struct
{
uint8_t Action;
int32_t Actor;
} StartEvent;
};
EventHandler Handler;
};
| [
"noreply@github.com"
] | noreply@github.com |
acd44505a1eb9330071d87f5dd3a192f92f9dc07 | 6c2c909460af9b7f9017ed277c193ebda1717a94 | /x86Cpu/cpudb/amd/zambezi.cc | 0f3476ba4106fbbf08dab22aeb9097073b57b50d | [] | no_license | lakizoli/PEReader | 8e9fa79ce5b14224c6230a5db4fc43e8c1d3a57f | 4db1c8bad0f97aea7665e8b5106a35fc97484450 | refs/heads/master | 2021-05-04T16:35:36.705957 | 2018-04-03T13:44:34 | 2018-04-03T13:44:34 | 120,253,329 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,956 | cc | /////////////////////////////////////////////////////////////////////////
// $Id: zambezi.cc 13153 2017-03-26 20:12:14Z sshwarts $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2012-2017 Stanislav Shwartsman
// Written by Stanislav Shwartsman [sshwarts at sourceforge net]
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA B 02110-1301 USA
//
/////////////////////////////////////////////////////////////////////////
#include "config.h"
#include "cpu/cpu.h"
#ifdef CPU_HAS_PARAM_STATE_HOOK
# include "param_names.h"
#endif //CPU_HAS_PARAM_STATE_HOOK
#include "zambezi.h"
#define LOG_THIS cpu->
#if BX_SUPPORT_X86_64 && BX_SUPPORT_AVX
zambezi_t::zambezi_t(BX_CPU_C *cpu): bx_cpuid_t(cpu)
{
BX_INFO(("WARNING: Light Weight Profiling (LWP) support is not implemented !"));
if (!BX_SUPPORT_SVM) {
BX_INFO (("WARNING: SVM support is not compiled in !"));
}
if (!BX_SUPPORT_MONITOR_MWAIT) {
BX_INFO (("WARNING: MONITOR/MWAIT support is not compiled in !"));
}
enable_cpu_extension(BX_ISA_X87);
enable_cpu_extension(BX_ISA_486);
enable_cpu_extension(BX_ISA_PENTIUM);
enable_cpu_extension(BX_ISA_P6);
enable_cpu_extension(BX_ISA_MMX);
enable_cpu_extension(BX_ISA_SYSCALL_SYSRET_LEGACY);
enable_cpu_extension(BX_ISA_SYSENTER_SYSEXIT);
enable_cpu_extension(BX_ISA_CLFLUSH);
enable_cpu_extension(BX_ISA_DEBUG_EXTENSIONS);
enable_cpu_extension(BX_ISA_VME);
enable_cpu_extension(BX_ISA_PSE);
enable_cpu_extension(BX_ISA_PAE);
enable_cpu_extension(BX_ISA_PGE);
#if BX_PHY_ADDRESS_LONG
enable_cpu_extension(BX_ISA_PSE36);
#endif
enable_cpu_extension(BX_ISA_MTRR);
enable_cpu_extension(BX_ISA_PAT);
enable_cpu_extension(BX_ISA_XAPIC);
enable_cpu_extension(BX_ISA_LONG_MODE);
enable_cpu_extension(BX_ISA_LM_LAHF_SAHF);
enable_cpu_extension(BX_ISA_CMPXCHG16B);
enable_cpu_extension(BX_ISA_NX);
enable_cpu_extension(BX_ISA_SSE);
enable_cpu_extension(BX_ISA_SSE2);
enable_cpu_extension(BX_ISA_SSE3);
enable_cpu_extension(BX_ISA_SSSE3);
enable_cpu_extension(BX_ISA_SSE4_1);
enable_cpu_extension(BX_ISA_SSE4_2);
enable_cpu_extension(BX_ISA_LZCNT);
enable_cpu_extension(BX_ISA_POPCNT);
enable_cpu_extension(BX_ISA_SSE4A);
#if BX_SUPPORT_MONITOR_MWAIT
enable_cpu_extension(BX_ISA_MONITOR_MWAIT);
#endif
enable_cpu_extension(BX_ISA_RDTSCP);
enable_cpu_extension(BX_ISA_XSAVE);
enable_cpu_extension(BX_ISA_AES_PCLMULQDQ);
enable_cpu_extension(BX_ISA_AVX);
enable_cpu_extension(BX_ISA_FMA4);
enable_cpu_extension(BX_ISA_XOP);
#if BX_SUPPORT_SVM
enable_cpu_extension(BX_ISA_SVM);
#endif
enable_cpu_extension(BX_ISA_FFXSR);
enable_cpu_extension(BX_ISA_1G_PAGES);
enable_cpu_extension(BX_ISA_MISALIGNED_SSE);
enable_cpu_extension(BX_ISA_ALT_MOV_CR8);
enable_cpu_extension(BX_ISA_XAPIC_EXT);
}
void zambezi_t::get_cpuid_leaf(Bit32u function, Bit32u subfunction, cpuid_function_t *leaf) const
{
static const char* brand_string = "AMD FX(tm)-4100 Quad-Core Processor ";
#ifdef CPU_HAS_PARAM_STATE_HOOK
static bx_bool cpuid_limit_winnt = SIM->get_param_bool (BXPN_CPUID_LIMIT_WINNT)->get ();
#else //CPU_HAS_PARAM_STATE_HOOK
static bx_bool cpuid_limit_winnt = false;
#endif //CPU_HAS_PARAM_STATE_HOOK
if (cpuid_limit_winnt) {
if (function > 1 && function < 0x80000000) function = 1;
}
switch(function) {
case 0x80000000:
get_ext_cpuid_leaf_0(leaf);
return;
case 0x80000001:
get_ext_cpuid_leaf_1(leaf);
return;
case 0x80000002:
case 0x80000003:
case 0x80000004:
get_ext_cpuid_brand_string_leaf(brand_string, function, leaf);
return;
case 0x80000005:
get_ext_cpuid_leaf_5(leaf);
return;
case 0x80000006:
get_ext_cpuid_leaf_6(leaf);
return;
case 0x80000007:
get_ext_cpuid_leaf_7(leaf);
return;
case 0x80000008:
get_ext_cpuid_leaf_8(leaf);
return;
#if BX_SUPPORT_SVM
case 0x8000000A:
get_ext_cpuid_leaf_A(leaf);
return;
#endif
case 0x80000019:
get_ext_cpuid_leaf_19(leaf);
return;
case 0x8000001A:
get_ext_cpuid_leaf_1A(leaf);
return;
case 0x8000001B:
get_ext_cpuid_leaf_1B(leaf);
return;
case 0x8000001C:
get_ext_cpuid_leaf_1C(leaf);
return;
case 0x8000001D:
get_ext_cpuid_leaf_1D(subfunction, leaf);
return;
case 0x8000001E:
get_ext_cpuid_leaf_1E(leaf);
return;
case 0x00000000:
get_std_cpuid_leaf_0(leaf);
return;
case 0x00000001:
get_std_cpuid_leaf_1(leaf);
return;
#if BX_SUPPORT_MONITOR_MWAIT
case 0x00000005:
get_std_cpuid_leaf_5(leaf);
return;
#endif
case 0x00000006:
get_std_cpuid_leaf_6(leaf);
return;
case 0x0000000D:
get_std_cpuid_xsave_leaf(subfunction, leaf);
return;
default:
get_reserved_leaf(leaf);
return;
}
}
#if BX_SUPPORT_SVM
Bit32u zambezi_t::get_svm_extensions_bitmask(void) const
{
return BX_CPUID_SVM_NESTED_PAGING |
BX_CPUID_SVM_LBR_VIRTUALIZATION |
BX_CPUID_SVM_SVM_LOCK |
BX_CPUID_SVM_NRIP_SAVE |
// BX_CPUID_SVM_TSCRATE | // not implemented yet
// BX_CPUID_SVM_VMCB_CLEAN_BITS | // not implemented yet
BX_CPUID_SVM_FLUSH_BY_ASID |
// BX_CPUID_SVM_DECODE_ASSIST | // not implemented yet
BX_CPUID_SVM_PAUSE_FILTER; // not implemented yet
// BX_CPUID_SVM_PAUSE_FILTER_THRESHOLD; // not implemented yet
}
#endif
// leaf 0x00000000 //
void zambezi_t::get_std_cpuid_leaf_0(cpuid_function_t *leaf) const
{
static const char* vendor_string = "AuthenticAMD";
// EAX: highest std function understood by CPUID
// EBX: vendor ID string
// EDX: vendor ID string
// ECX: vendor ID string
unsigned max_leaf = 0xD;
#ifdef CPU_HAS_PARAM_STATE_HOOK
static bx_bool cpuid_limit_winnt = SIM->get_param_bool (BXPN_CPUID_LIMIT_WINNT)->get ();
#else //CPU_HAS_PARAM_STATE_HOOK
static bx_bool cpuid_limit_winnt = false;
#endif //CPU_HAS_PARAM_STATE_HOOK
if (cpuid_limit_winnt) {
max_leaf = 0x1;
}
get_leaf_0(max_leaf, vendor_string, leaf);
}
// leaf 0x00000001 //
void zambezi_t::get_std_cpuid_leaf_1(cpuid_function_t *leaf) const
{
// EAX: CPU Version Information
// [3:0] Stepping ID
// [7:4] Model: starts at 1
// [11:8] Family: 4=486, 5=Pentium, 6=PPro, ...
// [13:12] Type: 0=OEM, 1=overdrive, 2=dual cpu, 3=reserved
// [19:16] Extended Model
// [27:20] Extended Family
leaf->eax = 0x00600F12;
// EBX:
// [7:0] Brand ID
// [15:8] CLFLUSH cache line size (value*8 = cache line size in bytes)
// [23:16] Number of logical processors in one physical processor
// [31:24] Local Apic ID
unsigned n_logical_processors = ncores*nthreads;
leaf->ebx = ((CACHE_LINE_SIZE / 8) << 8) |
(n_logical_processors << 16);
#if BX_SUPPORT_APIC
leaf->ebx |= ((cpu->get_apic_id() & 0xff) << 24);
#endif
// ECX: Extended Feature Flags
// * [0:0] SSE3: SSE3 Instructions
// * [1:1] PCLMULQDQ Instruction support
// [2:2] DTES64: 64-bit DS area
// * [3:3] MONITOR/MWAIT support
// [4:4] DS-CPL: CPL qualified debug store
// [5:5] VMX: Virtual Machine Technology
// [6:6] SMX: Secure Virtual Machine Technology
// [7:7] EST: Enhanced Intel SpeedStep Technology
// [8:8] TM2: Thermal Monitor 2
// * [9:9] SSSE3: SSSE3 Instructions
// [10:10] CNXT-ID: L1 context ID
// [11:11] reserved
// [12:12] FMA Instructions support
// * [13:13] CMPXCHG16B: CMPXCHG16B instruction support
// [14:14] xTPR update control
// [15:15] PDCM - Perfon and Debug Capability MSR
// [16:16] reserved
// [17:17] PCID: Process Context Identifiers
// [18:18] DCA - Direct Cache Access
// * [19:19] SSE4.1 Instructions
// * [20:20] SSE4.2 Instructions
// [21:21] X2APIC
// [22:22] MOVBE instruction
// * [23:23] POPCNT instruction
// [24:24] TSC Deadline
// * [25:25] AES Instructions
// * [26:26] XSAVE extensions support
// * [27:27] OSXSAVE support
// * [28:28] AVX extensions support
// [29:29] AVX F16C - Float16 conversion support
// [30:30] RDRAND instruction
// [31:31] reserved
leaf->ecx = BX_CPUID_EXT_SSE3 |
BX_CPUID_EXT_PCLMULQDQ |
#if BX_SUPPORT_MONITOR_MWAIT
BX_CPUID_EXT_MONITOR_MWAIT |
#endif
BX_CPUID_EXT_SSSE3 |
BX_CPUID_EXT_CMPXCHG16B |
BX_CPUID_EXT_SSE4_1 |
BX_CPUID_EXT_SSE4_2 |
BX_CPUID_EXT_POPCNT |
BX_CPUID_EXT_AES |
BX_CPUID_EXT_XSAVE |
BX_CPUID_EXT_AVX;
if (cpu->cr4.get_OSXSAVE())
leaf->ecx |= BX_CPUID_EXT_OSXSAVE;
// EDX: Standard Feature Flags
// * [0:0] FPU on chip
// * [1:1] VME: Virtual-8086 Mode enhancements
// * [2:2] DE: Debug Extensions (I/O breakpoints)
// * [3:3] PSE: Page Size Extensions
// * [4:4] TSC: Time Stamp Counter
// * [5:5] MSR: RDMSR and WRMSR support
// * [6:6] PAE: Physical Address Extensions
// * [7:7] MCE: Machine Check Exception
// * [8:8] CXS: CMPXCHG8B instruction
// * [9:9] APIC: APIC on Chip
// [10:10] Reserved
// * [11:11] SYSENTER/SYSEXIT support
// * [12:12] MTRR: Memory Type Range Reg
// * [13:13] PGE/PTE Global Bit
// * [14:14] MCA: Machine Check Architecture
// * [15:15] CMOV: Cond Mov/Cmp Instructions
// * [16:16] PAT: Page Attribute Table
// * [17:17] PSE-36: Physical Address Extensions
// [18:18] PSN: Processor Serial Number
// * [19:19] CLFLUSH: CLFLUSH Instruction support
// [20:20] Reserved
// [21:21] DS: Debug Store
// [22:22] ACPI: Thermal Monitor and Software Controlled Clock Facilities
// * [23:23] MMX Technology
// * [24:24] FXSR: FXSAVE/FXRSTOR (also indicates CR4.OSFXSR is available)
// * [25:25] SSE: SSE Extensions
// * [26:26] SSE2: SSE2 Extensions
// [27:27] Self Snoop
// * [28:28] Hyper Threading Technology
// [29:29] TM: Thermal Monitor
// [30:30] Reserved
// [31:31] PBE: Pending Break Enable
leaf->edx = BX_CPUID_STD_X87 |
BX_CPUID_STD_VME |
BX_CPUID_STD_DEBUG_EXTENSIONS |
BX_CPUID_STD_PSE |
BX_CPUID_STD_TSC |
BX_CPUID_STD_MSR |
BX_CPUID_STD_PAE |
BX_CPUID_STD_MCE |
BX_CPUID_STD_CMPXCHG8B |
BX_CPUID_STD_SYSENTER_SYSEXIT |
BX_CPUID_STD_MTRR |
BX_CPUID_STD_GLOBAL_PAGES |
BX_CPUID_STD_MCA |
BX_CPUID_STD_CMOV |
BX_CPUID_STD_PAT |
BX_CPUID_STD_PSE36 |
BX_CPUID_STD_CLFLUSH |
BX_CPUID_STD_MMX |
BX_CPUID_STD_FXSAVE_FXRSTOR |
BX_CPUID_STD_SSE |
BX_CPUID_STD_SSE2 |
BX_CPUID_STD_HT;
#if BX_SUPPORT_APIC
// if MSR_APICBASE APIC Global Enable bit has been cleared,
// the CPUID feature flag for the APIC is set to 0.
if (cpu->msr.apicbase & 0x800)
leaf->edx |= BX_CPUID_STD_APIC; // APIC on chip
#endif
}
#if BX_SUPPORT_MONITOR_MWAIT
// leaf 0x00000005 //
void zambezi_t::get_std_cpuid_leaf_5(cpuid_function_t *leaf) const
{
// CPUID function 0x00000005 - MONITOR/MWAIT Leaf
// EAX - Smallest monitor-line size in bytes
// EBX - Largest monitor-line size in bytes
// ECX -
// [31:2] - reserved
// [1:1] - exit MWAIT even with EFLAGS.IF = 0
// [0:0] - MONITOR/MWAIT extensions are supported
// EDX -
// [03-00] - number of C0 sub C-states supported using MWAIT
// [07-04] - number of C1 sub C-states supported using MWAIT
// [11-08] - number of C2 sub C-states supported using MWAIT
// [15-12] - number of C3 sub C-states supported using MWAIT
// [19-16] - number of C4 sub C-states supported using MWAIT
// [31-20] - reserved (MBZ)
leaf->eax = CACHE_LINE_SIZE;
leaf->ebx = CACHE_LINE_SIZE;
leaf->ecx = 3;
leaf->edx = 0;
}
#endif
// leaf 0x00000006 //
void zambezi_t::get_std_cpuid_leaf_6(cpuid_function_t *leaf) const
{
// CPUID function 0x00000006 - Thermal and Power Management Leaf
leaf->eax = 0x00000000;
leaf->ebx = 0x00000000;
leaf->ecx = 0x00000001;
leaf->edx = 0x00000000;
}
// leaf 0x0000000D - XSAVE //
// leaf 0x80000000 //
void zambezi_t::get_ext_cpuid_leaf_0(cpuid_function_t *leaf) const
{
get_leaf_0(0x8000001E, "AuthenticAMD", leaf);
}
// leaf 0x80000001 //
void zambezi_t::get_ext_cpuid_leaf_1(cpuid_function_t *leaf) const
{
// EAX: CPU Version Information (same as 0x00000001.EAX)
leaf->eax = 0x00600f12;
// EBX:
// [15:00] Brand ID
// [27:16] Reserved
// [31:28] Package Type
leaf->ebx = 0x10000000;
// ECX:
// * [0:0] LAHF/SAHF instructions support in 64-bit mode
// * [1:1] CMP_Legacy: Core multi-processing legacy mode (AMD)
// * [2:2] SVM: Secure Virtual Machine (AMD)
// * [3:3] Extended APIC Space
// * [4:4] AltMovCR8: LOCK MOV CR0 means MOV CR8
// * [5:5] LZCNT: LZCNT instruction support
// * [6:6] SSE4A: SSE4A Instructions support
// * [7:7] Misaligned SSE support
// * [8:8] PREFETCHW: PREFETCHW instruction support
// * [9:9] OSVW: OS visible workarounds (AMD)
// * [10:10] IBS: Instruction based sampling
// * [11:11] XOP: Extended Operations Support and XOP Prefix
// ! [12:12] SKINIT support
// * [13:13] WDT: Watchdog timer support
// [14:14] Reserved
// ! [15:15] LWP: Light weight profiling
// * [16:16] FMA4: Four-operand FMA instructions support
// [17:17] Reserved
// [18:18] Reserved
// * [19:19] NodeId: Indicates support for NodeId MSR (0xc001100c)
// [20:20] Reserved
// [21:21] TBM: trailing bit manipulation instructions support
// * [22:22] Topology extensions support
// * [23:23] PerfCtrExtCore: core perf counter extensions support
// * [24:24] PerfCtrExtNB: NB perf counter extensions support
// [31:25] Reserved
leaf->ecx = BX_CPUID_EXT2_LAHF_SAHF |
BX_CPUID_EXT2_CMP_LEGACY |
#if BX_SUPPORT_SVM
BX_CPUID_EXT2_SVM |
#endif
BX_CPUID_EXT2_EXT_APIC_SPACE |
BX_CPUID_EXT2_ALT_MOV_CR8 |
BX_CPUID_EXT2_LZCNT |
BX_CPUID_EXT2_SSE4A |
BX_CPUID_EXT2_MISALIGNED_SSE |
BX_CPUID_EXT2_PREFETCHW |
BX_CPUID_EXT2_OSVW |
BX_CPUID_EXT2_IBS |
BX_CPUID_EXT2_XOP |
BX_CPUID_EXT2_WDT |
BX_CPUID_EXT2_FMA4 |
BX_CPUID_EXT2_NODEID |
BX_CPUID_EXT2_TOPOLOGY_EXTENSIONS |
BX_CPUID_EXT2_PERFCTR_EXT_CORE |
BX_CPUID_EXT2_PERFCTR_EXT_NB;
// EDX:
// Many of the bits in EDX are the same as FN 0x00000001 for AMD
// * [0:0] FPU on chip
// * [1:1] VME: Virtual-8086 Mode enhancements
// * [2:2] DE: Debug Extensions (I/O breakpoints)
// * [3:3] PSE: Page Size Extensions
// * [4:4] TSC: Time Stamp Counter
// * [5:5] MSR: RDMSR and WRMSR support
// * [6:6] PAE: Physical Address Extensions
// * [7:7] MCE: Machine Check Exception
// * [8:8] CXS: CMPXCHG8B instruction
// * [9:9] APIC: APIC on Chip
// [10:10] Reserved
// * [11:11] SYSCALL/SYSRET support
// * [12:12] MTRR: Memory Type Range Reg
// * [13:13] PGE/PTE Global Bit
// * [14:14] MCA: Machine Check Architecture
// * [15:15] CMOV: Cond Mov/Cmp Instructions
// * [16:16] PAT: Page Attribute Table
// * [17:17] PSE-36: Physical Address Extensions
// [18:18] Reserved
// [19:19] Reserved
// * [20:20] No-Execute page protection
// [21:21] Reserved
// * [22:22] AMD MMX Extensions
// * [23:23] MMX Technology
// * [24:24] FXSR: FXSAVE/FXRSTOR (also indicates CR4.OSFXSR is available)
// * [25:25] Fast FXSAVE/FXRSTOR mode support
// * [26:26] 1G paging support
// * [27:27] Support RDTSCP Instruction
// [28:28] Reserved
// * [29:29] Long Mode
// [30:30] AMD 3DNow! Extensions
// [31:31] AMD 3DNow! Instructions
leaf->edx = BX_CPUID_STD_X87 |
BX_CPUID_STD_VME |
BX_CPUID_STD_DEBUG_EXTENSIONS |
BX_CPUID_STD_PSE |
BX_CPUID_STD_TSC |
BX_CPUID_STD_MSR |
BX_CPUID_STD_PAE |
BX_CPUID_STD_MCE |
BX_CPUID_STD_CMPXCHG8B |
BX_CPUID_STD2_SYSCALL_SYSRET |
BX_CPUID_STD_MTRR |
BX_CPUID_STD_GLOBAL_PAGES |
BX_CPUID_STD_MCA |
BX_CPUID_STD_CMOV |
BX_CPUID_STD_PAT |
BX_CPUID_STD_PSE36 |
BX_CPUID_STD2_NX |
BX_CPUID_STD2_AMD_MMX_EXT |
BX_CPUID_STD_MMX |
BX_CPUID_STD_FXSAVE_FXRSTOR |
BX_CPUID_STD2_FFXSR |
BX_CPUID_STD2_1G_PAGES |
BX_CPUID_STD2_RDTSCP |
BX_CPUID_STD2_LONG_MODE;
#if BX_SUPPORT_APIC
// if MSR_APICBASE APIC Global Enable bit has been cleared,
// the CPUID feature flag for the APIC is set to 0.
if (cpu->msr.apicbase & 0x800)
leaf->edx |= BX_CPUID_STD_APIC; // APIC on chip
#endif
}
// leaf 0x80000002 //
// leaf 0x80000003 //
// leaf 0x80000004 //
// leaf 0x80000005 //
void zambezi_t::get_ext_cpuid_leaf_5(cpuid_function_t *leaf) const
{
// CPUID function 0x800000005 - L1 Cache and TLB Identifiers
leaf->eax = 0xff20ff18;
leaf->ebx = 0xff20ff30;
leaf->ecx = 0x10040140;
leaf->edx = 0x40020140;
}
// leaf 0x80000006 //
void zambezi_t::get_ext_cpuid_leaf_6(cpuid_function_t *leaf) const
{
// CPUID function 0x800000006 - L2 Cache and TLB Identifiers
leaf->eax = 0x64000000;
leaf->ebx = 0x64004200;
leaf->ecx = 0x08008140;
leaf->edx = 0x0040c140;
}
// leaf 0x80000007 //
void zambezi_t::get_ext_cpuid_leaf_7(cpuid_function_t *leaf) const
{
// CPUID function 0x800000007 - Advanced Power Management
leaf->eax = 0;
leaf->ebx = 0;
leaf->ecx = 0;
leaf->edx = 0x000003d9;
}
// leaf 0x80000008 //
void zambezi_t::get_ext_cpuid_leaf_8(cpuid_function_t *leaf) const
{
bx_cpuid_t::get_ext_cpuid_leaf_8(leaf);
// [17..16] Performance time-stamp counter size.
// [15..12] APIC ID size, Zero value indicates that legacy methods must be
// used to derive the maximum number of cores.
// [11..8] (reserved)
// [7..0] Number of physical cores - 1.
leaf->ecx = ncores - 1;
}
// leaf 0x80000009 : Reserved //
#if BX_SUPPORT_SVM
// leaf 0x8000000A : SVM //
void zambezi_t::get_ext_cpuid_leaf_A(cpuid_function_t *leaf) const
{
leaf->eax = 0x01; /* SVM revision ID */
leaf->ebx = 0x40; /* number of ASIDs */
leaf->ecx = 0;
// * [0:0] NP - Nested paging support
// * [1:1] LBR virtualization
// * [2:2] SVM Lock
// * [3:3] NRIPS - Next RIP save on VMEXIT
// * [4:4] TscRate - MSR based TSC ratio control
// * [5:5] VMCB Clean bits support
// * [6:6] Flush by ASID support
// * [7:7] Decode assists support
// [8:8] Reserved
// [9:9] Reserved
// * [10:10] Pause filter support
// [11:11] Reserved
// * [12:12] Pause filter threshold support
// [13:13] Advanced Virtual Interrupt Controller
leaf->edx = get_svm_extensions_bitmask();
}
#endif
// leaf 0x8000000B - 0x80000018: Reserved //
void zambezi_t::get_ext_cpuid_leaf_19(cpuid_function_t *leaf) const
{
// CPUID function 0x800000019 - 1G Page TLB Identifiers
leaf->eax = 0xF020F018;
leaf->ebx = 0x64000000;
leaf->ecx = 0;
leaf->edx = 0;
}
void zambezi_t::get_ext_cpuid_leaf_1A(cpuid_function_t *leaf) const
{
// CPUID function 0x80000001A - Performance Optimization Identifiers
leaf->eax = 0x00000003;
leaf->ebx = 0;
leaf->ecx = 0;
leaf->edx = 0;
}
void zambezi_t::get_ext_cpuid_leaf_1B(cpuid_function_t *leaf) const
{
// CPUID function 0x80000001B - Instruction Based Sampling Identifiers
leaf->eax = 0xFF;
leaf->ebx = 0;
leaf->ecx = 0;
leaf->edx = 0;
BX_INFO(("WARNING: Instruction Based Sampling is not implemented"));
}
void zambezi_t::get_ext_cpuid_leaf_1C(cpuid_function_t *leaf) const
{
// CPUID function 0x80000001C - Lightweight Profiling Capabilities (not implemented)
leaf->eax = 0;
leaf->ebx = 0;
leaf->ecx = 0;
leaf->edx = 0;
}
void zambezi_t::get_ext_cpuid_leaf_1D(Bit32u subfunction, cpuid_function_t *leaf) const
{
// CPUID function 0x80000001D - Cache Properties
switch(subfunction) {
case 0:
leaf->eax = 0x00000121;
leaf->ebx = 0x00C0003F;
leaf->ecx = 0x0000003F;
leaf->edx = 0x00000000;
return;
case 1:
leaf->eax = 0x00004122;
leaf->ebx = 0x0040003F;
leaf->ecx = 0x000001FF;
leaf->edx = 0x00000000;
return;
case 2:
leaf->eax = 0x00004143;
leaf->ebx = 0x03C0003F;
leaf->ecx = 0x000007FF;
leaf->edx = 0x00000001;
return;
case 3:
leaf->eax = 0x0000C163;
leaf->ebx = 0x0FC0003F;
leaf->ecx = 0x000007FF;
leaf->edx = 0x00000001;
return;
default:
leaf->eax = 0;
leaf->ebx = 0;
leaf->ecx = 0;
leaf->edx = 0;
return;
}
}
void zambezi_t::get_ext_cpuid_leaf_1E(cpuid_function_t *leaf) const
{
// CPUID function 0x80000001E - Topology Extensions
leaf->eax = 0;
leaf->ebx = (ncores - 1) << 8;
leaf->ecx = 0;
leaf->edx = 0;
}
void zambezi_t::dump_cpuid(void) const
{
bx_cpuid_t::dump_cpuid(0xD, 0x1E);
}
bx_cpuid_t *create_zambezi_cpuid(BX_CPU_C *cpu) { return new zambezi_t(cpu); }
#endif
| [
"lakizoli@yahoo.com"
] | lakizoli@yahoo.com |
6ce629250eeca0b26925b53e6c19da72d53da387 | cf7a600480d558bcb4ab72a9bb19500ec935576a | /src/irc.cpp | f6e802f4d485ec1e40139c2b2d98f88558fb77e0 | [
"MIT"
] | permissive | Healkiller/Validcoin | 360b9a6752cb098ba33d12eac6b27fd34f61e24c | 6c5b0615a340ad8b53d7b19b330050350d9c8c91 | refs/heads/master | 2020-04-10T01:09:53.682095 | 2018-12-10T21:39:25 | 2018-12-10T21:39:25 | 160,707,509 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,970 | cpp | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "irc.h"
#include "net.h"
#include "strlcpy.h"
#include "base58.h"
using namespace std;
using namespace boost;
int nGotIRCAddresses = 0;
void ThreadIRCSeed2(void* parg);
#pragma pack(push, 1)
struct ircaddr
{
struct in_addr ip;
short port;
};
#pragma pack(pop)
string EncodeAddress(const CService& addr)
{
struct ircaddr tmp;
if (addr.GetInAddr(&tmp.ip))
{
tmp.port = htons(addr.GetPort());
vector<unsigned char> vch(UBEGIN(tmp), UEND(tmp));
return string("u") + EncodeBase58Check(vch);
}
return "";
}
bool DecodeAddress(string str, CService& addr)
{
vector<unsigned char> vch;
if (!DecodeBase58Check(str.substr(1), vch))
return false;
struct ircaddr tmp;
if (vch.size() != sizeof(tmp))
return false;
memcpy(&tmp, &vch[0], sizeof(tmp));
addr = CService(tmp.ip, ntohs(tmp.port));
return true;
}
static bool Send(SOCKET hSocket, const char* pszSend)
{
if (strstr(pszSend, "PONG") != pszSend)
printf("IRC SENDING: %s\n", pszSend);
const char* psz = pszSend;
const char* pszEnd = psz + strlen(psz);
while (psz < pszEnd)
{
int ret = send(hSocket, psz, pszEnd - psz, MSG_NOSIGNAL);
if (ret < 0)
return false;
psz += ret;
}
return true;
}
bool RecvLineIRC(SOCKET hSocket, string& strLine)
{
while (true)
{
bool fRet = RecvLine(hSocket, strLine);
if (fRet)
{
if (fShutdown)
return false;
vector<string> vWords;
ParseString(strLine, ' ', vWords);
if (vWords.size() >= 1 && vWords[0] == "PING")
{
strLine[1] = 'O';
strLine += '\r';
Send(hSocket, strLine.c_str());
continue;
}
}
return fRet;
}
}
int RecvUntil(SOCKET hSocket, const char* psz1, const char* psz2=NULL, const char* psz3=NULL, const char* psz4=NULL)
{
while (true)
{
string strLine;
strLine.reserve(10000);
if (!RecvLineIRC(hSocket, strLine))
return 0;
printf("IRC %s\n", strLine.c_str());
if (psz1 && strLine.find(psz1) != string::npos)
return 1;
if (psz2 && strLine.find(psz2) != string::npos)
return 2;
if (psz3 && strLine.find(psz3) != string::npos)
return 3;
if (psz4 && strLine.find(psz4) != string::npos)
return 4;
}
}
bool Wait(int nSeconds)
{
if (fShutdown)
return false;
printf("IRC waiting %d seconds to reconnect\n", nSeconds);
for (int i = 0; i < nSeconds; i++)
{
if (fShutdown)
return false;
MilliSleep(1000);
}
return true;
}
bool RecvCodeLine(SOCKET hSocket, const char* psz1, string& strRet)
{
strRet.clear();
while (true)
{
string strLine;
if (!RecvLineIRC(hSocket, strLine))
return false;
vector<string> vWords;
ParseString(strLine, ' ', vWords);
if (vWords.size() < 2)
continue;
if (vWords[1] == psz1)
{
printf("IRC %s\n", strLine.c_str());
strRet = strLine;
return true;
}
}
}
bool GetIPFromIRC(SOCKET hSocket, string strMyName, CNetAddr& ipRet)
{
Send(hSocket, strprintf("USERHOST %s\r", strMyName.c_str()).c_str());
string strLine;
if (!RecvCodeLine(hSocket, "302", strLine))
return false;
vector<string> vWords;
ParseString(strLine, ' ', vWords);
if (vWords.size() < 4)
return false;
string str = vWords[3];
if (str.rfind("@") == string::npos)
return false;
string strHost = str.substr(str.rfind("@")+1);
// Hybrid IRC used by lfnet always returns IP when you userhost yourself,
// but in case another IRC is ever used this should work.
printf("GetIPFromIRC() got userhost %s\n", strHost.c_str());
CNetAddr addr(strHost, true);
if (!addr.IsValid())
return false;
ipRet = addr;
return true;
}
void ThreadIRCSeed(void* parg)
{
// Make this thread recognisable as the IRC seeding thread
RenameThread("validcoin-ircseed");
try
{
ThreadIRCSeed2(parg);
}
catch (std::exception& e) {
PrintExceptionContinue(&e, "ThreadIRCSeed()");
} catch (...) {
PrintExceptionContinue(NULL, "ThreadIRCSeed()");
}
printf("ThreadIRCSeed exited\n");
}
void ThreadIRCSeed2(void* parg)
{
// Don't connect to IRC if we won't use IPv4 connections.
if (IsLimited(NET_IPV4))
return;
// ... or if we won't make outbound connections and won't accept inbound ones.
if (mapArgs.count("-connect") && fNoListen)
return;
// ... or if IRC is not enabled.
if (!GetBoolArg("-irc", false))
return;
printf("ThreadIRCSeed started\n");
int nErrorWait = 10;
int nRetryWait = 10;
int nNameRetry = 0;
while (!fShutdown)
{
CService addrConnect("92.243.23.21", 6667); // irc.lfnet.org
CService addrIRC("irc.lfnet.org", 6667, true);
if (addrIRC.IsValid())
addrConnect = addrIRC;
SOCKET hSocket;
if (!ConnectSocket(addrConnect, hSocket))
{
printf("IRC connect failed\n");
nErrorWait = nErrorWait * 11 / 10;
if (Wait(nErrorWait += 60))
continue;
else
return;
}
if (!RecvUntil(hSocket, "Found your hostname", "using your IP address instead", "Couldn't look up your hostname", "ignoring hostname"))
{
closesocket(hSocket);
hSocket = INVALID_SOCKET;
nErrorWait = nErrorWait * 11 / 10;
if (Wait(nErrorWait += 60))
continue;
else
return;
}
CNetAddr addrIPv4("1.2.3.4"); // arbitrary IPv4 address to make GetLocal prefer IPv4 addresses
CService addrLocal;
string strMyName;
// Don't use our IP as our nick if we're not listening
// or if it keeps failing because the nick is already in use.
if (!fNoListen && GetLocal(addrLocal, &addrIPv4) && nNameRetry<3)
strMyName = EncodeAddress(GetLocalAddress(&addrConnect));
if (strMyName == "")
strMyName = strprintf("x%"PRIu64"", GetRand(1000000000));
Send(hSocket, strprintf("NICK %s\r", strMyName.c_str()).c_str());
Send(hSocket, strprintf("USER %s 8 * : %s\r", strMyName.c_str(), strMyName.c_str()).c_str());
int nRet = RecvUntil(hSocket, " 004 ", " 433 ");
if (nRet != 1)
{
closesocket(hSocket);
hSocket = INVALID_SOCKET;
if (nRet == 2)
{
printf("IRC name already in use\n");
nNameRetry++;
Wait(10);
continue;
}
nErrorWait = nErrorWait * 11 / 10;
if (Wait(nErrorWait += 60))
continue;
else
return;
}
nNameRetry = 0;
MilliSleep(500);
// Get our external IP from the IRC server and re-nick before joining the channel
CNetAddr addrFromIRC;
if (GetIPFromIRC(hSocket, strMyName, addrFromIRC))
{
printf("GetIPFromIRC() returned %s\n", addrFromIRC.ToString().c_str());
// Don't use our IP as our nick if we're not listening
if (!fNoListen && addrFromIRC.IsRoutable())
{
// IRC lets you to re-nick
AddLocal(addrFromIRC, LOCAL_IRC);
strMyName = EncodeAddress(GetLocalAddress(&addrConnect));
Send(hSocket, strprintf("NICK %s\r", strMyName.c_str()).c_str());
}
}
if (fTestNet) {
Send(hSocket, "JOIN #validcoinTEST\r");
Send(hSocket, "WHO #validcoinTEST\r");
} else {
// randomly join #validcoin00-#validcoin05
int channel_number = GetRandInt(5);
// Channel number is always 0 for initial release
//int channel_number = 0;
Send(hSocket, strprintf("JOIN #validcoin%02d\r", channel_number).c_str());
Send(hSocket, strprintf("WHO #validcoin%02d\r", channel_number).c_str());
}
int64_t nStart = GetTime();
string strLine;
strLine.reserve(10000);
while (!fShutdown && RecvLineIRC(hSocket, strLine))
{
if (strLine.empty() || strLine.size() > 900 || strLine[0] != ':')
continue;
vector<string> vWords;
ParseString(strLine, ' ', vWords);
if (vWords.size() < 2)
continue;
char pszName[10000];
pszName[0] = '\0';
if (vWords[1] == "352" && vWords.size() >= 8)
{
// index 7 is limited to 16 characters
// could get full length name at index 10, but would be different from join messages
strlcpy(pszName, vWords[7].c_str(), sizeof(pszName));
printf("IRC got who\n");
}
if (vWords[1] == "JOIN" && vWords[0].size() > 1)
{
// :username!username@50000007.F000000B.90000002.IP JOIN :#channelname
strlcpy(pszName, vWords[0].c_str() + 1, sizeof(pszName));
if (strchr(pszName, '!'))
*strchr(pszName, '!') = '\0';
printf("IRC got join\n");
}
if (pszName[0] == 'u')
{
CAddress addr;
if (DecodeAddress(pszName, addr))
{
addr.nTime = GetAdjustedTime();
if (addrman.Add(addr, addrConnect, 51 * 60))
printf("IRC got new address: %s\n", addr.ToString().c_str());
nGotIRCAddresses++;
}
else
{
printf("IRC decode failed\n");
}
}
}
closesocket(hSocket);
hSocket = INVALID_SOCKET;
if (GetTime() - nStart > 20 * 60)
{
nErrorWait /= 3;
nRetryWait /= 3;
}
nRetryWait = nRetryWait * 11 / 10;
if (!Wait(nRetryWait += 60))
return;
}
}
#ifdef TEST
int main(int argc, char *argv[])
{
WSADATA wsadata;
if (WSAStartup(MAKEWORD(2,2), &wsadata) != NO_ERROR)
{
printf("Error at WSAStartup()\n");
return false;
}
ThreadIRCSeed(NULL);
WSACleanup();
return 0;
}
#endif
| [
"healkillerhk@gmail.com"
] | healkillerhk@gmail.com |
9be1f807d255f22ce54772c5e12b0af4466b56e7 | 604336b59f7b2c1341f89d1a986d0e53034d2374 | /1DDR/ip/cl_axi_interconnect_1m2s/ip/cl_axi_interconnect_m00_regslice_0/sim/cl_axi_interconnect_m00_regslice_0.h | ad091d7c5edb14366542637259f4575e8e440bbc | [] | no_license | yyunon/tpch1 | 0f95bbfd07bb6e4643da281347c50085a3e3f0ba | 038327f9a1d5ab24e30f64dd7903f1e6661d3939 | refs/heads/master | 2023-08-29T00:17:05.900384 | 2021-11-07T17:55:07 | 2021-11-07T17:55:07 | 357,599,812 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,522 | h | #ifndef IP_CL_AXI_INTERCONNECT_M00_REGSLICE_0_H_
#define IP_CL_AXI_INTERCONNECT_M00_REGSLICE_0_H_
// (c) Copyright 1995-2020 Xilinx, Inc. All rights reserved.
//
// This file contains confidential and proprietary information
// of Xilinx, Inc. and is protected under U.S. and
// international copyright and other intellectual property
// laws.
//
// DISCLAIMER
// This disclaimer is not a license and does not grant any
// rights to the materials distributed herewith. Except as
// otherwise provided in a valid license issued to you by
// Xilinx, and to the maximum extent permitted by applicable
// law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND
// WITH ALL FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES
// AND CONDITIONS, EXPRESS, IMPLIED, OR STATUTORY, INCLUDING
// BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, NON-
// INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE; and
// (2) Xilinx shall not be liable (whether in contract or tort,
// including negligence, or under any other theory of
// liability) for any loss or damage of any kind or nature
// related to, arising under or in connection with these
// materials, including for any direct, or any indirect,
// special, incidental, or consequential loss or damage
// (including loss of data, profits, goodwill, or any type of
// loss or damage suffered as a result of any action brought
// by a third party) even if such damage or loss was
// reasonably foreseeable or Xilinx had been advised of the
// possibility of the same.
//
// CRITICAL APPLICATIONS
// Xilinx products are not designed or intended to be fail-
// safe, or for use in any application requiring fail-safe
// performance, such as life-support or safety devices or
// systems, Class III medical devices, nuclear facilities,
// applications related to the deployment of airbags, or any
// other applications that could lead to death, personal
// injury, or severe property or environmental damage
// (individually and collectively, "Critical
// Applications"). Customer assumes the sole risk and
// liability of any use of Xilinx products in Critical
// Applications, subject only to applicable laws and
// regulations governing limitations on product liability.
//
// THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS
// PART OF THIS FILE AT ALL TIMES.
//
// DO NOT MODIFY THIS FILE.
#ifndef XTLM
#include "xtlm.h"
#endif
#ifndef SYSTEMC_INCLUDED
#include <systemc>
#endif
#if defined(_MSC_VER)
#define DllExport __declspec(dllexport)
#elif defined(__GNUC__)
#define DllExport __attribute__ ((visibility("default")))
#else
#define DllExport
#endif
#include "cl_axi_interconnect_m00_regslice_0_sc.h"
class DllExport cl_axi_interconnect_m00_regslice_0 : public cl_axi_interconnect_m00_regslice_0_sc
{
public:
cl_axi_interconnect_m00_regslice_0(const sc_core::sc_module_name& nm);
virtual ~cl_axi_interconnect_m00_regslice_0();
public: // module pin-to-pin RTL interface
sc_core::sc_in< bool > aclk;
sc_core::sc_in< bool > aresetn;
sc_core::sc_in< sc_dt::sc_bv<7> > s_axi_awid;
sc_core::sc_in< sc_dt::sc_bv<64> > s_axi_awaddr;
sc_core::sc_in< sc_dt::sc_bv<8> > s_axi_awlen;
sc_core::sc_in< sc_dt::sc_bv<3> > s_axi_awsize;
sc_core::sc_in< sc_dt::sc_bv<2> > s_axi_awburst;
sc_core::sc_in< sc_dt::sc_bv<1> > s_axi_awlock;
sc_core::sc_in< sc_dt::sc_bv<4> > s_axi_awcache;
sc_core::sc_in< sc_dt::sc_bv<3> > s_axi_awprot;
sc_core::sc_in< sc_dt::sc_bv<4> > s_axi_awregion;
sc_core::sc_in< sc_dt::sc_bv<4> > s_axi_awqos;
sc_core::sc_in< bool > s_axi_awvalid;
sc_core::sc_out< bool > s_axi_awready;
sc_core::sc_in< sc_dt::sc_bv<512> > s_axi_wdata;
sc_core::sc_in< sc_dt::sc_bv<64> > s_axi_wstrb;
sc_core::sc_in< bool > s_axi_wlast;
sc_core::sc_in< bool > s_axi_wvalid;
sc_core::sc_out< bool > s_axi_wready;
sc_core::sc_out< sc_dt::sc_bv<7> > s_axi_bid;
sc_core::sc_out< sc_dt::sc_bv<2> > s_axi_bresp;
sc_core::sc_out< bool > s_axi_bvalid;
sc_core::sc_in< bool > s_axi_bready;
sc_core::sc_in< sc_dt::sc_bv<7> > s_axi_arid;
sc_core::sc_in< sc_dt::sc_bv<64> > s_axi_araddr;
sc_core::sc_in< sc_dt::sc_bv<8> > s_axi_arlen;
sc_core::sc_in< sc_dt::sc_bv<3> > s_axi_arsize;
sc_core::sc_in< sc_dt::sc_bv<2> > s_axi_arburst;
sc_core::sc_in< sc_dt::sc_bv<1> > s_axi_arlock;
sc_core::sc_in< sc_dt::sc_bv<4> > s_axi_arcache;
sc_core::sc_in< sc_dt::sc_bv<3> > s_axi_arprot;
sc_core::sc_in< sc_dt::sc_bv<4> > s_axi_arregion;
sc_core::sc_in< sc_dt::sc_bv<4> > s_axi_arqos;
sc_core::sc_in< bool > s_axi_arvalid;
sc_core::sc_out< bool > s_axi_arready;
sc_core::sc_out< sc_dt::sc_bv<7> > s_axi_rid;
sc_core::sc_out< sc_dt::sc_bv<512> > s_axi_rdata;
sc_core::sc_out< sc_dt::sc_bv<2> > s_axi_rresp;
sc_core::sc_out< bool > s_axi_rlast;
sc_core::sc_out< bool > s_axi_rvalid;
sc_core::sc_in< bool > s_axi_rready;
sc_core::sc_out< sc_dt::sc_bv<7> > m_axi_awid;
sc_core::sc_out< sc_dt::sc_bv<64> > m_axi_awaddr;
sc_core::sc_out< sc_dt::sc_bv<8> > m_axi_awlen;
sc_core::sc_out< sc_dt::sc_bv<3> > m_axi_awsize;
sc_core::sc_out< sc_dt::sc_bv<2> > m_axi_awburst;
sc_core::sc_out< sc_dt::sc_bv<1> > m_axi_awlock;
sc_core::sc_out< sc_dt::sc_bv<4> > m_axi_awcache;
sc_core::sc_out< sc_dt::sc_bv<3> > m_axi_awprot;
sc_core::sc_out< sc_dt::sc_bv<4> > m_axi_awregion;
sc_core::sc_out< sc_dt::sc_bv<4> > m_axi_awqos;
sc_core::sc_out< bool > m_axi_awvalid;
sc_core::sc_in< bool > m_axi_awready;
sc_core::sc_out< sc_dt::sc_bv<512> > m_axi_wdata;
sc_core::sc_out< sc_dt::sc_bv<64> > m_axi_wstrb;
sc_core::sc_out< bool > m_axi_wlast;
sc_core::sc_out< bool > m_axi_wvalid;
sc_core::sc_in< bool > m_axi_wready;
sc_core::sc_in< sc_dt::sc_bv<7> > m_axi_bid;
sc_core::sc_in< sc_dt::sc_bv<2> > m_axi_bresp;
sc_core::sc_in< bool > m_axi_bvalid;
sc_core::sc_out< bool > m_axi_bready;
sc_core::sc_out< sc_dt::sc_bv<7> > m_axi_arid;
sc_core::sc_out< sc_dt::sc_bv<64> > m_axi_araddr;
sc_core::sc_out< sc_dt::sc_bv<8> > m_axi_arlen;
sc_core::sc_out< sc_dt::sc_bv<3> > m_axi_arsize;
sc_core::sc_out< sc_dt::sc_bv<2> > m_axi_arburst;
sc_core::sc_out< sc_dt::sc_bv<1> > m_axi_arlock;
sc_core::sc_out< sc_dt::sc_bv<4> > m_axi_arcache;
sc_core::sc_out< sc_dt::sc_bv<3> > m_axi_arprot;
sc_core::sc_out< sc_dt::sc_bv<4> > m_axi_arregion;
sc_core::sc_out< sc_dt::sc_bv<4> > m_axi_arqos;
sc_core::sc_out< bool > m_axi_arvalid;
sc_core::sc_in< bool > m_axi_arready;
sc_core::sc_in< sc_dt::sc_bv<7> > m_axi_rid;
sc_core::sc_in< sc_dt::sc_bv<512> > m_axi_rdata;
sc_core::sc_in< sc_dt::sc_bv<2> > m_axi_rresp;
sc_core::sc_in< bool > m_axi_rlast;
sc_core::sc_in< bool > m_axi_rvalid;
sc_core::sc_out< bool > m_axi_rready;
protected:
virtual void before_end_of_elaboration();
private:
xtlm::xaximm_xtlm2pin_t<512,64,7,1,1,1,1,1>* mp_M_AXI_transactor;
xsc::common::scalar2vector_converter* mp_m_axi_arlock_converter;
sc_signal< bool > m_m_axi_arlock_converter_signal;
xsc::common::scalar2vector_converter* mp_m_axi_awlock_converter;
sc_signal< bool > m_m_axi_awlock_converter_signal;
sc_signal< bool > m_M_AXI_transactor_rst_signal;
xtlm::xaximm_pin2xtlm_t<512,64,7,1,1,1,1,1>* mp_S_AXI_transactor;
xsc::common::vector2scalar_converter* mp_s_axi_arlock_converter;
sc_signal< bool > m_s_axi_arlock_converter_signal;
xsc::common::vector2scalar_converter* mp_s_axi_awlock_converter;
sc_signal< bool > m_s_axi_awlock_converter_signal;
sc_signal< bool > m_S_AXI_transactor_rst_signal;
};
#endif // IP_CL_AXI_INTERCONNECT_M00_REGSLICE_0_H_
| [
"yonsel.yuksel@gmail.com"
] | yonsel.yuksel@gmail.com |
21d5f8e8af97057befc351057e0a8f44e0b6b9d4 | 235e2fe3f541a50c888630ce7b3744a95414c407 | /scene.cpp | 9358558c1672c59c648993a5473fe2b4e0e3489b | [] | no_license | evawebb/raytracer | e99647836297c61f6311686ef125a7a6ea3e7b2d | 8016d4beac0277efccbd39b8a126845e4d0a6ea6 | refs/heads/master | 2022-02-10T12:58:07.278744 | 2017-01-01T18:02:30 | 2017-01-01T18:02:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,979 | cpp | #include "scene.h"
Scene::Scene() {
width = 50;
height = 50;
}
Scene::Scene(int w, int h) {
width = w;
height = h;
}
Color Scene::color_at(int x, int y, double focal_length, int aa) {
double dim = (width < height) ? width : height;
double scale = dim / 2;
double adj_x = (x - scale) / scale;
double adj_y = (y - scale) / scale;
double total_r = 0;
double total_g = 0;
double total_b = 0;
for (int aa_x = 0; aa_x < aa; aa_x += 1) {
double adj_x_aa = (1 + 2 * aa_x) / (2 * aa * scale);
for (int aa_y = 0; aa_y < aa; aa_y += 1) {
double adj_y_aa = (1 + 2 * aa_y) / (2 * aa * scale);
Point origin =
transform *
Point(adj_x + adj_x_aa, adj_y + adj_y_aa, 0);
Point focal_point =
transform *
Point(0, 0, -focal_length);
Vector direction = (origin - focal_point).normalized();
Color c = cast_ray(
origin,
direction,
10,
500 <= x && x <= 502 && y == 400
);
total_r += c.r;
total_g += c.g;
total_b += c.b;
}
}
return Color(
total_r / (aa * aa),
total_g / (aa * aa),
total_b / (aa * aa)
);
}
Color Scene::cast_ray(Point origin, Vector direction, int limit, bool print) {
if (limit > 0) {
if (print) {
std::cout << "\nRay casting results summary:\n";
}
IntersectionEvent n_ie;
for (int m = 0; m < models.size(); m += 1) {
IntersectionEvent ie = models[m].intersect(origin, direction);
if (ie.intersected && ie.distance < n_ie.distance) {
n_ie = ie;
}
}
if (print) {
std::cout << "The intersection distance was: " << n_ie.distance << '\n';
}
if (n_ie.intersected) {
Color diffuse_comp(0, 0, 0);
Color ambient_comp(0, 0, 0);
Color specular_comp(0, 0, 0);
Color reflective_comp(0, 0, 0);
if (print) {
std::cout << "The intersection was at " << n_ie.intersection.to_s() << " on object " << n_ie.object_id << " of model " << n_ie.model_id << ".\n";
std::cout << "Barycentric u: " << n_ie.u << '\n';
std::cout << "Barycentric v: " << n_ie.v << '\n';
std::cout << "Texel s: " << n_ie.texel_s << '\n';
std::cout << "Texel t: " << n_ie.texel_t << '\n';
std::cout << "Object material summary:\n";
std::cout << " Shininess: " << n_ie.material->shininess << '\n';
std::cout << " Reflectivity: " << n_ie.material->reflectivity << '\n';
std::cout << " Ambient intensity: " << n_ie.material->ambient_intensity << '\n';
std::cout << " Diffuse intensity: " << n_ie.material->diffuse_intensity << '\n';
std::cout << " Specular intensity: " << n_ie.material->specular_intensity << '\n';
}
for (int l = 0; l < lights.size(); l += 1) {
Vector l_vector = lights[l].loc - n_ie.intersection;
double l_distance = l_vector.mag();
l_vector = l_vector.normalized();
if (print) {
std::cout << "Light " << (l + 1) << ":\n";
}
bool blocked = false;
for (int m = 0; m < models.size(); m += 1) {
IntersectionEvent b_ie = models[m].intersect(
n_ie.intersection + l_vector * 0.01,
l_vector
);
blocked = blocked || (b_ie.intersected && b_ie.distance < l_distance);
}
Color this_ac =
lights[l].ambient *
n_ie.material->ambient_texture->texel(n_ie.texel_s, n_ie.texel_t);
ambient_comp.r += this_ac.r;
ambient_comp.g += this_ac.g;
ambient_comp.b += this_ac.b;
if (print) {
std::cout << " Light ambient color: " << lights[l].ambient.to_s() << '\n';
std::cout << " Material ambient color: " << n_ie.material->ambient_texture->texel(n_ie.texel_s, n_ie.texel_t).to_s() << '\n';
std::cout << " Ambient component: " << this_ac.to_s() << '\n';
}
if (!blocked) {
Vector r_vector =
(
n_ie.normal *
n_ie.normal.dot(l_vector)
* 2
) - l_vector;
Color this_dc =
lights[l].diffuse *
n_ie.material->diffuse_texture->texel(n_ie.texel_s, n_ie.texel_t) *
std::max(0.0, l_vector.dot(n_ie.normal));
diffuse_comp.r += this_dc.r;
diffuse_comp.g += this_dc.g;
diffuse_comp.b += this_dc.b;
if (print) {
std::cout << " Light diffuse color: " << lights[l].diffuse.to_s() << '\n';
std::cout << " Material diffuse color: " << n_ie.material->diffuse_texture->texel(n_ie.texel_s, n_ie.texel_t).to_s() << '\n';
std::cout << " Diffuse dot product multiplier: " << std::max(0.0, l_vector.dot(n_ie.normal)) << '\n';
std::cout << " Diffuse component: " << this_dc.to_s() << '\n';
}
Color this_sc =
lights[l].specular *
n_ie.material->specular *
std::pow(
std::max(0.0, r_vector.dot(direction * -1)),
n_ie.material->shininess
);
specular_comp.r += this_sc.r;
specular_comp.g += this_sc.g;
specular_comp.b += this_sc.b;
if (print) {
std::cout << " Light specular color: " << lights[l].specular.to_s() << '\n';
std::cout << " Material specular color: " << n_ie.material->specular.to_s() << '\n';
std::cout << " Specular dot product multiplier: " << std::pow(std::max(0.0, r_vector.dot(direction * -1)), n_ie.material->shininess) << '\n';
std::cout << " Specular component: " << this_sc.to_s() << '\n';
}
} else {
if (print) {
std::cout << " This light is blocked.\n";
}
}
}
ambient_comp = ambient_comp * (1.0 / lights.size());
diffuse_comp = diffuse_comp * (1.0 / lights.size());
specular_comp = specular_comp * (1.0 / lights.size());
if (n_ie.material->reflectivity > 0) {
Vector ref_dir = (n_ie.normal * n_ie.normal.dot(direction * -1) * 2) + direction;
reflective_comp = cast_ray(
n_ie.intersection + ref_dir * 0.1,
ref_dir,
limit - 1,
false
);
}
Color final_color = reflective_comp.blend(
ambient_comp.blend(
diffuse_comp.blend(
specular_comp,
n_ie.material->diffuse_intensity,
n_ie.material->specular_intensity
),
n_ie.material->ambient_intensity,
1
),
n_ie.material->reflectivity
);
if (print) {
std::cout << "Final color: " << final_color.to_s() << "\n\n";
}
return final_color;
} else {
return Color(0, 0, 0);
}
}
}
void Scene::add_model(Model m) {
models.push_back(m);
}
void Scene::add_light(double x, double y, double z, Color i_ambient, Color i_diffuse, Color i_specular) {
lights.push_back(Light(
Point(x, y, z),
i_ambient,
i_diffuse,
i_specular
));
}
void Scene::add_transformation(Matrix next_matrix) {
transform = next_matrix * transform;
}
void Scene::translate_cam(Vector trans) {
add_transformation(Matrix(
1, 0, 0, trans.x,
0, 1, 0, trans.y,
0, 0, 1, trans.z,
0, 0, 0, 1
));
}
void Scene::rotate_cam(double radians, Vector axis) {
axis = axis.normalized();
double c = cos(radians);
double s = sin(radians);
double xx = axis.x * axis.x * (1 - c);
double xy = axis.x * axis.y * (1 - c);
double xz = axis.x * axis.z * (1 - c);
double yy = axis.y * axis.y * (1 - c);
double yz = axis.y * axis.z * (1 - c);
double zz = axis.z * axis.z * (1 - c);
add_transformation(Matrix(
xx + c, xy - axis.z * s, xz + axis.y * s, 0,
xy + axis.z * s, yy + c, yz - axis.x * s, 0,
xz - axis.y * s, yz + axis.x * s, zz + c, 0,
0, 0, 0, 1
));
}
| [
"ztwebb42@gmail.com"
] | ztwebb42@gmail.com |
b62df6967a9af57d554742e10701bf4c3641cad8 | 2114327ede17098a07abe83be8f3409bbacf6245 | /Turing Machine/Source.cpp | 9126c42df9d9ff76784fd42f2c4f27cb0a7497c7 | [] | no_license | hatim523/Turing-Machine | 1aab54ff90b4f2e6d6ab3845b100418fa950ade8 | 26a08432b44c7b9d36c83f757d88fcff804dc4d2 | refs/heads/master | 2020-05-17T19:19:33.379500 | 2019-04-28T13:44:13 | 2019-04-28T13:44:13 | 183,911,968 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,978 | cpp | #include<iostream>
#include<string.h>
#include<string>
using namespace std;
/************************************************************************************/
/* Author: Hatim */
/* Title: Turing Machine */
/* Currently built for {a^n b^n | n>0} */
/* Note: Create nodes before creating turing machine */
/* Please define the number of transitions from the outgoing node in constructor */
/************************************************************************************/
int node_num = 0;
class Node
{
private:
int node;
bool is_final;
Node **next_at;
int num_inputs;
char **transition_function;
public:
Node(int number_of_inputs_defined)
{
node = node_num++;
num_inputs = number_of_inputs_defined;
next_at = new Node*[num_inputs];
is_final = 0;
transition_function = new char*[num_inputs];
for (int i = 0; i < num_inputs; i++)
transition_function[i] = new char[3];
}
void transition_at_input(int input_number, char read, char write, Node *transit_state, char move) //Transition will be mapped through input number
{
next_at[input_number] = transit_state;
transition_function[input_number][0] = read;
transition_function[input_number][1] = write;
transition_function[input_number][2] = move;
}
int getRead(char symbol)
{
int num = -1;
for (int i = 0; i < num_inputs; i++)
{
if (transition_function[i][0] == symbol)
{
num = i;
break;
}
}
return num;
}
char getWrite(int ref)
{
return transition_function[ref][1];
}
int getDirection(int ref)
{
if (transition_function[ref][2] == 'r' || transition_function[ref][2] == 'R')
return 1;
else
return -1;
}
Node* getState(int ref)
{
return next_at[ref];
}
void make_final_state()
{
is_final = 1;
}
bool is_Final()
{
return is_final;
}
};
class Turing_Machine
{
private:
Node *head;
char *input;
int read_write_header;
public:
Turing_Machine(char *in)
{
input = in;
read_write_header = 3;
}
void Initial_State(Node *state)
{
head = state;
}
bool start_traversal()
{
Node *current_state = head;
bool accepted = true;
while (current_state != 0)
{
int transit_to = current_state->getRead(input[read_write_header]);
if (transit_to >= 0)
{
input[read_write_header] = current_state->getWrite(transit_to);
read_write_header += current_state->getDirection(transit_to);
current_state = current_state->getState(transit_to);
}
else
{
if (current_state->is_Final())
{
accepted = true;
current_state = 0;
}
else
{
current_state = 0;
accepted = false;
}
}
}
return accepted;
}
};
int main()
{
string input;
getline(cin, input);
/*
* Transfering string to tape
*/
char *tape = new char[input.size() + 7];
tape[0] = '-'; // - treated as null character
tape[1] = '-';
tape[2] = '-';
int i = 3;
for (int j=0; j < input.size(); i++, j++)
{
tape[i] = input[j];
}
tape[i++] = '-';
tape[i++] = '-';
tape[i++] = '-';
tape[i] = '\0';
/*
* Transfer complete
*/
//creating nodes
Node *q0 = new Node(2);
Node *q1 = new Node(3);
Node *q2 = new Node(3);
Node *q3 = new Node(2);
Node *q4 = new Node(0);
//transitions of q0
q0->transition_at_input(0, 'a', 'x', q1, 'r');
q0->transition_at_input(1, 'y', 'y', q3, 'r');
//transitions of q1
q1->transition_at_input(0, 'a', 'a', q1, 'r');
q1->transition_at_input(1, 'y', 'y', q1, 'r');
q1->transition_at_input(2, 'b', 'y', q2, 'l');
//transitions of q2
q2->transition_at_input(0, 'a', 'a', q2, 'l');
q2->transition_at_input(1, 'y', 'y', q2, 'l');
q2->transition_at_input(2, 'x', 'x', q0, 'r');
//transitions of q3
q3->transition_at_input(0, 'y', 'y', q3, 'r');
q3->transition_at_input(1, '-', '-', q4, 'r');
//making q4 final
q4->make_final_state();
Turing_Machine language(tape);
language.Initial_State(q0);
if (language.start_traversal())
cout << "Accepted!";
else
cout << "Rejected!";
return 0;
} | [
"k173626@nu.edu.pk"
] | k173626@nu.edu.pk |
a522c078469ad7b90df4f7927a1d69f821bb3a63 | db2d7c18a83d367322ea313123bc07cae2c05fa6 | /DSA Interviewbit + SDE Sheet/Strings/Minimum Appends for Palindrome.cpp | 6d74fb3955ed89a10c477091f74048add491da37 | [] | no_license | SARTHAK-27/Ultimate-DSA | 4f983f9cca3666b3b7f4dfec6d2cc7324e448562 | 6acb7794e91aebd0d22d0d5597044979c095b9c3 | refs/heads/main | 2023-08-24T23:50:01.324849 | 2021-09-20T04:02:19 | 2021-09-20T04:02:19 | 359,049,907 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,047 | cpp | int dp[1001][1001];
class Solution
{
public:
int LCS(string x, string y)
{
int n = x.length();
int m = y.length();
for (int i = 0; i < n + 1; i++)
{
for (int j = 0; j < m + 1; j++)
{
if (i == 0 || j == 0)
{
dp[i][j] = 0;
}
}
}
for (int i = 1; i < n + 1; i++)
{
for (int j = 1; j < m + 1; j++)
{
if (x[i - 1] == y[j - 1])
{
dp[i][j] = 1 + dp[i - 1][j - 1];
}
else
{
dp[i][j] = max(dp[i - 1][j], dp[i][j - 1]);
}
}
}
return dp[n][m];
}
int minInsertions(string A)
{
int len = A.length();
string B = "";
for (int i = len - 1; i >= 0; i--)
{
B += A[i];
}
int len_lps = LCS(A, B);
return len - len_lps;
}
};
| [
"sarthakasthana2014@gmail.com"
] | sarthakasthana2014@gmail.com |
d9a7b408040e5f5d64789cfab527dfc304f5746a | f1fc24db9abb9061cf12492bb9cf630c1cd79e9a | /test/test.cpp | b0e80b1f98274f69ea556341712facc0df780d11 | [
"Apache-2.0"
] | permissive | lhb8125/unstructure_frame_home_0218 | 20ec804d059bb591b963d9b5dee29cd0f8200e48 | e543850413879f120ce68d2c786002b166a62fe5 | refs/heads/master | 2021-01-06T09:10:16.512603 | 2020-02-23T11:54:35 | 2020-02-23T11:54:35 | 241,272,432 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,195 | cpp | /**
* @file: test.cpp
* @author: Liu Hongbin
* @brief:
* @date: 2019-10-09 11:04:42
* @last Modified by: lhb8125
* @last Modified time: 2020-02-23 15:42:43
*/
#include <iostream>
#include <fstream>
#include <string>
#include <yaml-cpp/yaml.h>
#include <assert.h>
#include <unistd.h>
#include "cstdlib"
#include "mpi.h"
#include "utilities.hpp"
#include "loadBalancer.hpp"
#include "parameter.hpp"
#include "cgnslib.h"
// #include "vectorInterfaces.h"
#define OUT std::cout
#define IN std::cin
#define ENDL std::endl
#define String std::string
using namespace HSF;
// #define DEBUG_YAML
// void loadRegionTopologyFromYAML(String filePtr, Array<Scalar> &s,
// ArrayArray<Label> &nei, Label procNum);
// void operator >> (const YAML::Node& node, Array<Scalar>& s);
// void operator >> (const YAML::Node& node, Array<Array<Label> >& nei);
// void operator >> (const YAML::Node& node, Array<Label>& regionIdx);
// void hdf5ToAdf(char* filePtr, char* desFilePtr);
int main(int argc, char** argv)
{
LoadBalancer *lb = new LoadBalancer();
OUT<<"hello world!"<<ENDL;
Parameter para("./config.yaml");
/// initialize MPI environment
printf("initialize MPI environment ......\n");
// int numproces, rank;
// MPI_Init(&argc, &argv);
// MPI_Comm_rank(MPI_COMM_WORLD, &rank);
// MPI_Comm_size(MPI_COMM_WORLD, &numproces);
// printf("This is process %d, %d processes are launched\n", rank, numproces);
init_utility_();
int nPara = 4;
// char meshFile[100];
Array<char*> mesh_file(10);
for (int i = 0; i < mesh_file.size(); ++i)
{
mesh_file[i] = new char[100];
}
// para.getPara(&nPara, meshFile, "char*", "domain1", "region", "0", "path");
para.getPara<char>(mesh_file, nPara, "domain1", "region", "0", "path");
printf("reading CGNS file: ");
for (int i = 0; i < mesh_file.size(); ++i)
{
printf("%s, ", mesh_file[i]);
}
printf("\n");
char resultFile[100];
nPara = 4;
para.getPara<char>(resultFile, nPara, "domain1", "region", "0", "resPath");
printf("writing CGNS file: %s\n", resultFile);
/// read CGNS file
Array<Region> regs;
Region reg;
regs.push_back(reg);
regs[0].initBeforeBalance(mesh_file);
/// load balance in region
lb->LoadBalancer_3(regs);
regs[0].initAfterBalance();
regs[0].writeMesh(resultFile);
// regs[0].getMesh().initMesh(resultFile);
// MPI_Finalize();
return 0;
}
// void loadRegionTopologyFromYAML(String filePtr, Array<Scalar> &s,
// ArrayArray<Label> &nei, Label procNum)
// {
// OUT<<"reading YAML file: "<<filePtr<<" ......"<<ENDL;
// std::ifstream fin(filePtr.c_str());
// YAML::Parser parse(fin);
// YAML::Node doc;
// parse.GetNextDocument(doc);
// const YAML::Node& measurement = doc["measurement"];
// for (int i = 0; i < measurement.size(); ++i)
// {
// measurement[i] >> s;
// }
// Array<Array<Label> > neiTmp;
// Array<Label> regIdxTmp;
// const YAML::Node& topology = doc["topology"];
// for (int i = 0; i < topology.size(); ++i)
// {
// topology[i] >> neiTmp;
// topology[i] >> regIdxTmp;
// }
// /// transform the vector<vector<int> > to ArrayArray
// nei.num = s.size();
// nei.startIdx = new Label[nei.num+1];
// nei.startIdx[0] = 0;
// for (int i = 0; i < nei.num; ++i)
// {
// nei.startIdx[i+1] = nei.startIdx[i]+neiTmp[regIdxTmp[i]].size();
// }
// nei.data = new Label[nei.startIdx[nei.num]];
// for (int i = 0; i < nei.num; ++i)
// {
// Label k = 0;
// for (int j = nei.startIdx[i]; j < nei.startIdx[i+1]; ++j)
// {
// nei.data[j] = neiTmp[regIdxTmp[i]][k];
// k++;
// }
// }
// #ifdef DEBUG_YAML
// /// check
// for (int i = 0; i < nei.num; ++i)
// {
// for (int j = nei.startIdx[i]; j < nei.startIdx[i+1]; ++j)
// {
// OUT<<nei.data[j]<<", ";
// }
// }
// OUT<<ENDL;
// #endif
// }
// void operator >> (const YAML::Node& node, Array<Scalar>& s)
// {
// String mea;
// node["mea"] >> mea;
// s.push_back(std::atof(mea.c_str()));
// #ifdef DEBUG_YAML
// for (int i = 0; i < s.size(); ++i)
// {
// OUT<<s[i]<<", ";
// }
// OUT<<ENDL;
// #endif
// }
// void operator >> (const YAML::Node& node, Array<Array<Label> >& nei)
// {
// // String neighbor;
// // node["neighbor"].as<string>() >> neighbor;
// Array<Label> neiTmp;
// int tmp;
// const YAML::Node& neighbor = node["neighbor"];
// for (int i = 0; i < neighbor.size(); ++i)
// {
// neighbor[i] >> tmp;
// neiTmp.push_back(tmp);
// }
// nei.push_back(neiTmp);
// #ifdef DEBUG_YAML
// for (int i = 0; i < nei.size(); ++i)
// {
// OUT<<"(";
// for (int j = 0; j < nei[i].size(); ++j)
// {
// OUT<<nei[i][j]<<", ";
// }
// OUT<<")";
// }
// OUT<<ENDL;
// #endif
// }
// void operator >> (const YAML::Node& node, Array<Label>& regionIdx)
// {
// Label tmp;
// node["regionIdx"] >> tmp;
// regionIdx.push_back(tmp);
// #ifdef DEBUG_YAML
// for (int i = 0; i < regionIdx.size(); ++i)
// {
// OUT<<regionIdx[i]<<", ";
// }
// OUT<<ENDL;
// #endif
// }
// void hdf5ToAdf(char* filePtr, char* desFilePtr)
// {
// int iFile;
// if(cg_open(filePtr, CG_MODE_MODIFY, &iFile))
// Terminate("readCGNSFile", cg_get_error());
// if(cg_save_as(iFile, desFilePtr, CG_FILE_ADF2, 0))
// Terminate("transformToADF", cg_get_error());
// } | [
"lhb8125@users.noreply.github.com"
] | lhb8125@users.noreply.github.com |
5d694667fb0bc5bdffcb0f545fcda7589d908c68 | 4c25432a6d82aaebd82fd48e927317b15a6bf6ab | /data/dataset_2017/dataset_2017_8_formatted_macrosremoved/mickeyandkaka/8294486_5630967708385280_mickeyandkaka.cpp | 365d9154bc138160e228ab132b67aa578d7ac5dd | [] | no_license | wzj1988tv/code-imitator | dca9fb7c2e7559007e5dbadbbc0d0f2deeb52933 | 07a461d43e5c440931b6519c8a3f62e771da2fc2 | refs/heads/master | 2020-12-09T05:33:21.473300 | 2020-01-09T15:29:24 | 2020-01-09T15:29:24 | 231,937,335 | 1 | 0 | null | 2020-01-05T15:28:38 | 2020-01-05T15:28:37 | null | UTF-8 | C++ | false | false | 1,615 | cpp | #include <algorithm>
#include <cassert>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
typedef long long LL;
typedef unsigned long long ULL;
typedef vector<int> VI;
typedef pair<int, int> PII;
vector<string> split(const string &s, char c) {
vector<string> v;
stringstream ss(s);
string x;
while (getline(ss, x, c))
v.push_back(x);
return v;
}
void err(vector<string>::iterator it) {}
template <typename T, typename... Args>
void err(vector<string>::iterator it, T a, Args... args) {
cerr << it->substr((*it)[0] == ' ', it->length()) << " = " << a << ", ";
err(++it, args...);
}
const int INF = 0x3f3f3f3f;
const double eps = 1e-8;
int T;
const int N = 1111;
LL d;
LL pos[N];
int v[N];
int n;
bool check(double cur_v) {
// for(int i=1; i<=m; i++)
return true;
}
int main() {
int cas = 1;
scanf("%d", &T);
while (T--) {
printf("Case #%d: ", cas++);
cin >> d >> n;
double tt = 0;
for (int i = 1; i <= n; i++) {
cin >> pos[i] >> v[i];
double tmp_t = 1.0 * (d - pos[i]) / v[i];
tt = max(tmp_t, tt);
}
double ans = 1.0 * d / tt;
// double lo = 1, hi = 1e9;
// while(hi - lo > eps)
//{
// double mid = (lo + hi) / 2.0;
// bool ok = check(mid);
// if(ok) lo = mid;
// else hi = mid;
//}
// double ans = lo;
printf("%.6f\n", ans);
}
return 0;
}
| [
"e.quiring@tu-bs.de"
] | e.quiring@tu-bs.de |
6d1c3519b2348cd4b7b4dacfafe7e08bd47f2905 | b70c43d17abe9337847575bc36023afcbd0e6cad | /test/MqttBroker/MqttBrokerTestContainerConfiguration.h | 8fdb3e0d1159fcde9015c31f21bfb36933f14c29 | [] | no_license | S3ler/CMqttSnForwarder | ca4600b7d6c85b940f7a06e42155e19c90bb56c7 | 072ddf0fe40be35cf780cb501a79550bc7b32a25 | refs/heads/master | 2020-04-25T12:03:30.930538 | 2020-01-14T12:29:19 | 2020-01-14T12:29:19 | 172,766,029 | 1 | 1 | null | 2020-01-15T16:33:57 | 2019-02-26T18:24:31 | C | UTF-8 | C++ | false | false | 876 | h | //
// Created by SomeDude on 22.07.2019.
//
#ifndef CMQTTSNFORWARDER_TEST_MQTTBROKER_MQTTBROKERTESTCONTAINERCONFIGURATION_H_
#define CMQTTSNFORWARDER_TEST_MQTTBROKER_MQTTBROKERTESTCONTAINERCONFIGURATION_H_
#include <string>
#include "MqttBrokerTestType.h"
#include "MqttBrokerProtocolTestType.h"
class MqttBrokerTestContainerConfiguration {
public:
const MqttBrokerProtocolTestType protocol_type;
const std::string brokerAddress;
const uint16_t brokerPort;
MqttBrokerTestContainerConfiguration(const MqttBrokerProtocolTestType protocol_type,
const std::string &broker_address,
const uint16_t broker_port);
static const MqttBrokerTestContainerConfiguration GetDefaultTestContainerConfiguration();
};
#endif //CMQTTSNFORWARDER_TEST_MQTTBROKER_MQTTBROKERTESTCONTAINERCONFIGURATION_H_
| [
"GabrielNikol@web.de"
] | GabrielNikol@web.de |
2c543f0d0980a8365fd42370f3ee0a802e9df4d4 | f725912e2e52fb212a2daba17909159ba88e210a | /src/os_services.cpp | 7f7d872925413b677e3076164361279eb7d84365 | [] | no_license | progr2012/scmRTOS_timer | 345d1a608d7e88340d0a37e02b44322fffc7f36e | dac6c29ba4fdf3b8ebe28de1ad1b3f01991a281d | refs/heads/main | 2023-03-23T05:34:17.375626 | 2021-03-21T20:12:29 | 2021-03-21T20:12:29 | 346,825,511 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,799 | cpp | //******************************************************************************
//*
//* FULLNAME: Single-Chip Microcontroller Real-Time Operating System
//*
//* NICKNAME: scmRTOS
//*
//* PURPOSE: OS Services Source
//*
//* Version: 5.0.0
//*
//*
//* Copyright (c) 2003-2015, scmRTOS Team
//*
//* Permission is hereby granted, free of charge, to any person
//* obtaining a copy of this software and associated documentation
//* files (the "Software"), to deal in the Software without restriction,
//* including without limitation the rights to use, copy, modify, merge,
//* publish, distribute, sublicense, and/or sell copies of the Software,
//* and to permit persons to whom the Software is furnished to do so,
//* subject to the following conditions:
//*
//* The above copyright notice and this permission notice shall be included
//* in all copies or substantial portions of the Software.
//*
//* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
//* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
//* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
//* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
//* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
//* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
//* THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//*
//* =================================================================
//* Project sources: https://github.com/scmrtos/scmrtos
//* Documentation: https://github.com/scmrtos/scmrtos/wiki/Documentation
//* Wiki: https://github.com/scmrtos/scmrtos/wiki
//* Sample projects: https://github.com/scmrtos/scmrtos-sample-projects
//* =================================================================
//*
//******************************************************************************
#include "scmRTOS.h"
using namespace OS;
bool OS::TService::resume_all(TProcessMap volatile & waiters_map)
{
TProcessMap Timeouted = ready_process_map(); // Process has its tag set in ReadyProcessMap if timeout expired,
// or it was waked up by OS::ForceWakeUpProcess()
TProcessMap CachedMap = waiters_map; // cache volatile
if( CachedMap & ~Timeouted ) // if any process has to be waked up
{
set_prio_tag(ready_process_map(), CachedMap); // place all waiting processes to the ready map
clr_prio_tag(CachedMap, ~Timeouted); // remove all non-timeouted processes from the waiting map.
waiters_map = CachedMap;
reschedule();
return true;
}
return false;
}
//--------------------------------------------------------------------------
bool OS::TService::resume_next_ready (TProcessMap volatile & waiters_map)
{
TProcessMap Active = ready_process_map(); // Cache volatile
TProcessMap Waiters = waiters_map; // Cache volatile
TProcessMap Timeouted = Active; // Process has its tag set in ReadyProcessMap if timeout expired,
// or it was waked up by OS::ForceWakeUpProcess()
TProcessMap Ready = Waiters & ~Timeouted;
if( Ready ) // if any process has to be waked up
{
TProcessMap PrioTag = highest_prio_tag(Ready); // get next ready process tag
set_prio_tag(Active, PrioTag); // place next ready process to the ready map
clr_prio_tag(Waiters, PrioTag); // remove process from the waiting map.
ready_process_map() = Active;
waiters_map = Waiters;
reschedule();
return true;
}
return false;
}
//--------------------------------------------------------------------------
//------------------------------------------------------------------------------
//
//
// TEventFlag
//
//
bool OS::TEventFlag::wait(timeout_t timeout)
{
TCritSect cs;
if(Value) // if flag already signaled
{
Value = efOff; // clear flag
return true;
}
else
{
cur_proc_timeout() = timeout;
suspend(ProcessMap);
if(is_timeouted(ProcessMap))
return false; // waked up by timeout or by externals
cur_proc_timeout() = 0;
return true; // otherwise waked up by signal() or signal_isr()
}
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
//
//
// TMutex
//
//
void OS::TMutex::lock()
{
TCritSect cs;
while(ValueTag)
{
// mutex already locked by another process, suspend current process
suspend(ProcessMap);
}
ValueTag = cur_proc_prio_tag(); // mutex has been successfully locked
}
//------------------------------------------------------------------------------
bool OS::TMutex::try_lock(timeout_t timeout)
{
TCritSect cs;
while (ValueTag)
{
// mutex already locked by another process, suspend current process
cur_proc_timeout() = timeout;
suspend(ProcessMap);
if(is_timeouted(ProcessMap))
return false; // waked up by timeout or by externals
cur_proc_timeout() = 0;
}
ValueTag = cur_proc_prio_tag(); // mutex has been successfully locked
return true;
}
//------------------------------------------------------------------------------
void OS::TMutex::unlock()
{
TCritSect cs;
if(ValueTag != cur_proc_prio_tag())
return; // the only process that had locked mutex can unlock the mutex
ValueTag = 0;
resume_next_ready(ProcessMap);
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
//
//
// TChannel
//
//
void OS::TChannel::push(uint8_t x)
{
TCritSect cs;
while (!Cbuf.get_free_size())
{
// channel is full, suspend current process
suspend(ProducersProcessMap);
}
Cbuf.put(x);
resume_all(ConsumersProcessMap);
}
//------------------------------------------------------------------------------
uint8_t OS::TChannel::pop()
{
TCritSect cs;
uint8_t x;
while(!Cbuf.get_count())
{
// channel is empty, suspend current process
suspend(ConsumersProcessMap);
}
x = Cbuf.get();
resume_all(ProducersProcessMap);
return x;
}
//------------------------------------------------------------------------------
void OS::TChannel::write(const uint8_t* data, const uint8_t count)
{
TCritSect cs;
while(Cbuf.get_free_size() < count)
{
// channel has not enough space, suspend current process
suspend(ProducersProcessMap);
}
Cbuf.write(data, count);
resume_all(ConsumersProcessMap);
}
//------------------------------------------------------------------------------
void OS::TChannel::read(uint8_t* const data, const uint8_t count)
{
TCritSect cs;
while(Cbuf.get_count() < count)
{
// channel doesn't contain enough data, suspend current process
suspend(ConsumersProcessMap);
}
Cbuf.read(data, count);
resume_all(ProducersProcessMap);
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
//
// OS::message template
//
// Function-members implementation
//
//
//------------------------------------------------------------------------------
bool OS::TBaseMessage::wait(timeout_t timeout)
{
TCritSect cs;
if(NonEmpty) // message already send
{
NonEmpty = false;
return true;
}
else
{
cur_proc_timeout() = timeout;
suspend(ProcessMap);
if(is_timeouted(ProcessMap))
return false;
cur_proc_timeout() = 0;
return true;
}
}
//------------------------------------------------------------------------------
| [
"noreply@github.com"
] | noreply@github.com |
565f770f1c89d094ce97db8faf346f5363f66182 | c5271b18225b183c54526f13ab968b942c5d1c49 | /codeforces/DIV3/617/B.cpp | 1b34402d88bb5b94658668e0f7db8f9fa5861a6e | [] | no_license | coderpen-me/competitive_programming | afbc41e0eed12741ba4dcc2650a02e667506739c | 3d8d00b9099871c1b044e1ac3f25cc1eb17dba64 | refs/heads/master | 2021-06-28T09:48:01.156675 | 2021-03-09T19:01:09 | 2021-03-09T19:01:09 | 220,846,911 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,317 | cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define vi vector<int>
#define vs vector<string>
#define vvi vector<vector<int>>
#define LP(i, n) for (ll i = 0; i < n; i++)
#define LP1(i, n) for (ll i = 1; i <= n; i++)
#define BLP1(i, n) for (ll i = n; i > 0; i--)
#define BLP(i, n) for (ll i = n; i >= 0; i--)
#define el '\n'
#define IOS() \
ios_base::sync_with_stdio(0); \
cin.tie(0);
#define tc() testcases()
#define pvi(A) printvectorint(A)
#define pvs(A) printvectorstring(A)
#define pvvi(A) printvectorvectorint(A)
#define a1(a) cout << a << " ";
#define a2(a, b) cout << a << " " << b << " ";
#define a3(a, b, c) cout << a << " " << b << " " << c << " ";
#define a4(a, b, c, d) cout << a << " " << b << " " << c << " " << d << " ";
#define a5(a, b, c, d, e) cout << a << " " << b << " " << c << " " << d << " " << e << " ";
#define b1(a) cout << a << "\n";
#define b2(a, b) cout << a << " " << b << "\n";
#define b3(a, b, c) cout << a << " " << b << " " << c << "\n";
#define b4(a, b, c, d) cout << a << " " << b << " " << c << " " << d << "\n";
#define b5(a, b, c, d, e) cout << a << " " << b << " " << c << " " << d << " " << e << "\n";
#define nl cout << "\n"
const ll MAXn = 1e5 + 5, MAXlg = __lg(MAXn) + 2;
const ll MOD = 1000000007;
const ll INF = ll(1e15);
ll a[MAXn], b[MAXn], c[MAXn], d[MAXn];
ll t = 0, u = 0, v = 0, w = 0, x = 0, y = 0, z = 0;
ll sum = 0, sum1 = 0, mul = 0, subs = 0, test = 0, num = 0, num1 = 0;
//ll aa=0, bb=0, cc=0, dd=0, ee=0;
//ll count=0, ctl=0, ctrl=0, divi=0, flag=0, cal=0, must=0, test=0;
string in;
int testcases()
{
cin >> test;
return test;
}
void printvectorint(vector<int> A)
{
nl;
for (auto x : A)
{
a1(x);
}
nl;
}
void printvectorstring(vector<string> A)
{
nl;
for (auto x : A)
{
cout << (x);
}
nl;
}
void printvectorvectorint(vector<vector<int>> A)
{
nl;
for (auto x : A)
{
for (auto y : x)
{
a1(y);
}
nl;
}
nl;
}
int main(){
IOS();
t = tc();
//t = 1;
while(t--){
cin>>u;
z = 0;
while(u > 9){
v = u/10;
z += v*10;
u = (u % 10) + v;
}
z += u % 10;
b1(z);
}
return 0;
} | [
"coderpen@gmail.com"
] | coderpen@gmail.com |
aa030f08a7520f82e011f92ce935b3bde99c9f9e | 74870e1d278f20027ea0213d9d87ee6128a01f65 | /Q1158.cpp | d5da0599fd7a66235cfb30e9cbfe11308e720c4f | [] | no_license | jleun1403/BOJ_CPP | 795816db9e8a2828ec48aaf9f8da9276d4b0abef | 415502a8fd7093f469a3b7bf1c5e756505ae0e76 | refs/heads/master | 2020-07-10T01:28:42.157301 | 2019-08-24T11:41:03 | 2019-08-24T11:41:03 | 204,131,610 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 643 | cpp | #include <list>
#include <iostream>
using namespace std;
int main(){
int n, m;
scanf("%d", &n);
scanf("%d", &m);
list<int> l;
for (int i = 0 ; i < n ; i++)
l.push_back(i+1);
auto a = l.end();
a--;
cout << '<';
while(l.size() > 1) {
auto temp = a;
for (int i = 1 ; i < m ; i++) {
temp++;
if (temp == l.end())
temp = l.begin();
}
a = temp++;
if (temp == l.end())
temp = l.begin();
cout << *temp<< ','<< ' ';
l.erase(temp);
}
cout << l.front() << '>';
}
| [
"david1403@hanmail.net"
] | david1403@hanmail.net |
5af38e6125a308e1e58761b0c3b21dc1d4716883 | f3aef96ff99a3ccf16bb00bcfae897bf1ca07284 | /player/src/main/cpp64/player/MediaPlayer.cpp | 0a27448c6298856671acfb151f74b8e840216c0b | [] | no_license | hongye007/SimpleVideo | 7880617dbba458f2ff518ed08041a52fa92ee27e | 08a2a110bd0080d7e107354f99511519b43c70b1 | refs/heads/master | 2021-05-18T12:06:07.904900 | 2020-10-14T13:29:11 | 2020-10-14T13:29:11 | 251,237,458 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,041 | cpp | //
// Created by 周文业 on 2020/5/11.
//
#include "MediaPlayer.h"
jint MediaPlayer::playVideo(JNIEnv *env) {
//读取帧
while (av_read_frame(pFormatCtx, vPacket) >= 0) {
if (vPacket->stream_index == videoindex) {
//视频解码
int ret = avcodec_send_packet(vCodecCtx, vPacket);
if (ret < 0 && ret != AVERROR(EAGAIN) && ret != AVERROR_EOF)
return -7;
ret = avcodec_receive_frame(vCodecCtx, vFrame);
if (ret < 0 && ret != AVERROR_EOF)
return -8;
//转化格式
sws_scale(img_convert_ctx, (const uint8_t *const *) vFrame->data, vFrame->linesize, 0,
vCodecCtx->height,
pFrameRGBA->data, pFrameRGBA->linesize);
if (ANativeWindow_lock(nativeWindow, &windowBuffer, NULL) < 0) {
} else {
//将图像绘制到界面上,注意这里pFrameRGBA一行的像素和windowBuffer一行的像素长度可能不一致
//需要转换好,否则可能花屏
uint8_t *dst = (uint8_t *) windowBuffer.bits;
for (int h = 0; h < height; h++) {
memcpy(dst + h * windowBuffer.stride * 4,
v_out_buffer + h * pFrameRGBA->linesize[0],
pFrameRGBA->linesize[0]);
}
ANativeWindow_unlockAndPost(nativeWindow);
}
}
av_packet_unref(vPacket);
}
//释放内存
sws_freeContext(img_convert_ctx);
av_free(vPacket);
av_free(pFrameRGBA);
avcodec_close(vCodecCtx);
avformat_close_input(&pFormatCtx);
return 0;
}
jint MediaPlayer::prepareVideo(JNIEnv *env, jstring url, jobject surface) {
int i;
AVCodec *vCodec;
char input_str[500] = {0};
//读取输入的视频频文件地址
sprintf(input_str, "%s", env->GetStringUTFChars(url, NULL));
//分配一个AVFormatContext结构
pFormatCtx = avformat_alloc_context();
//打开文件
if (avformat_open_input(&pFormatCtx, input_str, NULL, NULL) != 0) {
return -1;
}
//查找文件的流信息
if (avformat_find_stream_info(pFormatCtx, NULL) < 0) {
return -2;
}
//在流信息中找到视频流
videoindex = -1;
for (i = 0; i < pFormatCtx->nb_streams; i++) {
if (pFormatCtx->streams[i]->codecpar->codec_type == AVMEDIA_TYPE_VIDEO) {
videoindex = i;
break;
}
}
if (videoindex == -1) {
return -3;
}
//获取相应视频流的解码器
avCodecParameters = pFormatCtx->streams[videoindex]->codecpar;
vCodec = avcodec_find_decoder(avCodecParameters->codec_id);
vCodecCtx = avcodec_alloc_context3(vCodec);
avcodec_parameters_to_context(vCodecCtx, avCodecParameters);
//打开解码器
if (avcodec_open2(vCodecCtx, vCodec, NULL) < 0) {
return -4;
}
//获取界面传下来的surface
nativeWindow = ANativeWindow_fromSurface(env, surface);
if (0 == nativeWindow) {
return -5;
}
width = vCodecCtx->width;
height = vCodecCtx->height;
//分配一个帧指针,指向解码后的原始帧
vFrame = av_frame_alloc();
vPacket = (AVPacket *) av_malloc(sizeof(AVPacket));
pFrameRGBA = av_frame_alloc();
//绑定输出buffer
int numBytes = av_image_get_buffer_size(AV_PIX_FMT_RGBA, width, height, 1);
v_out_buffer = (uint8_t *) av_malloc(numBytes * sizeof(uint8_t));
av_image_fill_arrays(pFrameRGBA->data, pFrameRGBA->linesize, v_out_buffer, AV_PIX_FMT_RGBA,
width, height, 1);
img_convert_ctx = sws_getContext(width, height, vCodecCtx->pix_fmt,
width, height, AV_PIX_FMT_RGBA, SWS_BICUBIC, NULL, NULL, NULL);
if (0 >
ANativeWindow_setBuffersGeometry(nativeWindow, width, height, WINDOW_FORMAT_RGBA_8888)) {
ANativeWindow_release(nativeWindow);
return -6;
}
return 0;
}
| [
"zhouwenye@meituan.com"
] | zhouwenye@meituan.com |
64a18c5de9fb9a74bd507980cd8783f78305482f | 748262c162329b99b1eaa45f41b89a5da9f57f03 | /Chapter2/Scheduling.cpp | ea36ac05f6b01c2b830a06d9fb6db7d933b1a98a | [] | no_license | tsukakei/AntBook | 22425c80ddfff725263094ba8ba969bf14a91aaf | eabd88d904f8c92d7251ede0d72d49dd6acb17e6 | refs/heads/master | 2020-06-20T19:46:46.070454 | 2016-12-11T03:59:56 | 2016-12-11T03:59:56 | 74,824,199 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 578 | cpp | #include <cstdio>
#include <map>
#include <algorithm>
using namespace std;
const int MAX_N = 100000;
int N, S[MAX_N], T[MAX_N];
pair<int, int> itv[MAX_N];
int main() {
scanf("%d", &N);
for (int i = 0; i < N; i++) {
scanf("%d", &S[i]);
}
for (int i = 0; i < N; i++) {
scanf("%d", &T[i]);
}
for (int i = 0; i < N; i++) {
itv[i].first = T[i];
itv[i].second = S[i];
}
sort(itv, itv + N);
int ans = 0, t = 0;
for (int i = 0; i < N; i++) {
if (t < itv[i].second) {
ans++;
t = itv[i].first;
}
}
printf("%d\n", ans);
}
| [
"t.k.columbus1012@gmail.com"
] | t.k.columbus1012@gmail.com |
ca41b1ab34b0219bd0e3a0f600ee6ea17e5e7cc8 | 4de61cba1855fc2528857a56938d06f8be3f792b | /C++Primer/testSome/staticConst.cpp | 6367a3c9a34f4ceec1f95eec846a8881b39d19ab | [] | no_license | chenfan2014/CFgit | ea7dd863bddc3232725c6bebc38d025d3812870c | b6e06589537862e634b1f710d8e9221244a6a6c5 | refs/heads/master | 2020-12-24T17:18:01.417439 | 2015-05-13T01:06:46 | 2015-05-13T01:06:46 | 23,918,600 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 375 | cpp | #include <iostream>
#include <string>
#include <vector>
using namespace std;
class Base{
private:
static int i;
const int c;
public:
static const int b = 100;
Base()
:c(100)
{}
};
int Base::i = 1231321;
const int Base::b;
int main(int argc, const char *argv[])
{
cout << Base::b << endl;
return 0;
}
| [
"chenfan"
] | chenfan |
6a193d0b5b88f98e0931f0f35303607b92b38abe | c9c11fbd0b84290c3202a076d693261ff9441b15 | /P6/SDLProject/PlayerBulPool.cpp | a16959cdd26fb82ba07a7f225e23b508f61e55bc | [] | no_license | yl5741/Games | 58a6d579c9e8d001ee6be97bfc59334e004c9db2 | 9e6538e78373628c499c96bf4ea05e942d450651 | refs/heads/master | 2022-12-07T17:10:39.369367 | 2020-08-21T10:41:13 | 2020-08-21T10:41:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,116 | cpp | #include "PlayerBulPool.h"
#include "Util.h"
PlayerBulPool::PlayerBulPool(int a, GLuint texID): amountToPool(a){
sound = new Sound();
for (int i = 0; i < amountToPool; i++) {
bulToPool = new PlayerBul();
bulToPool->modelMatrix = glm::mat4(1.0f);
bulToPool->textureID = texID;
bulToPool->isActive = false;
pooledBul.push_back(bulToPool);
}
}
PlayerBul* PlayerBulPool::getPooledBul() {
for (int i = 0; i < pooledBul.size(); i++) {
if (!pooledBul[i]->isActive) {
pooledBul[i]->isActive = true;
return pooledBul[i];
}
}
return NULL;
}
void PlayerBulPool::Update(float deltaTime, Player* player, PlayerHB* playerHB, Entity* enemies, int enemyCount, Entity* bullets, int bulletCount) {
if (fire) {
player->bulTimer += deltaTime;
if (player->bulTimer >= player->fireRate)
{
player->bulTimer = 0.0f;
for (int i = 0; i < 9; i++) {
getPooledBul()->Fire(player->position, player->fireMode, i);
}
}
sound->playShootSound();
}
for (int i = 0; i < pooledBul.size(); i++) {
pooledBul[i]->Update(deltaTime, player, playerHB, enemies, enemyCount, bullets, bulletCount);
}
} | [
"ly5741.nyu.edu"
] | ly5741.nyu.edu |
32bbc47402a4c067108ef748f005b823be0384e0 | be4341a9cc824ff3e70495004a85d62b0a4bbfcb | /src/main.cpp | dd79941d17ea4fb60c664ef5f9b51da4206e23f6 | [
"MIT"
] | permissive | azumf/CarND-MPC-Project | 2d636719c47660b79268705240754d2ca81d7a76 | b6bd8e8813733e147d9032d6c52fd78ee07913b5 | refs/heads/master | 2021-04-15T05:05:38.054720 | 2018-03-22T19:20:41 | 2018-03-22T19:20:41 | 126,384,312 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,819 | cpp | #include <math.h>
#include <uWS/uWS.h>
#include <chrono>
#include <iostream>
#include <thread>
#include <vector>
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
#include "MPC.h"
#include "json.hpp"
// for convenience
using json = nlohmann::json;
// For converting back and forth between radians and degrees.
constexpr double pi() { return M_PI; }
double deg2rad(double x) { return x * pi() / 180; }
double rad2deg(double x) { return x * 180 / pi(); }
// Checks if the SocketIO event has JSON data.
// If there is data the JSON object in string format will be returned,
// else the empty string "" will be returned.
string hasData(string s) {
auto found_null = s.find("null");
auto b1 = s.find_first_of("[");
auto b2 = s.rfind("}]");
if (found_null != string::npos) {
return "";
} else if (b1 != string::npos && b2 != string::npos) {
return s.substr(b1, b2 - b1 + 2);
}
return "";
}
// Evaluate a polynomial.
double polyeval(Eigen::VectorXd coeffs, double x) {
double result = 0.0;
for (int i = 0; i < coeffs.size(); i++) {
result += coeffs[i] * pow(x, i);
}
return result;
}
// Fit a polynomial.
// Adapted from
// https://github.com/JuliaMath/Polynomials.jl/blob/master/src/Polynomials.jl#L676-L716
Eigen::VectorXd polyfit(Eigen::VectorXd xvals, Eigen::VectorXd yvals,
int order) {
assert(xvals.size() == yvals.size());
assert(order >= 1 && order <= xvals.size() - 1);
Eigen::MatrixXd A(xvals.size(), order + 1);
for (int i = 0; i < xvals.size(); i++) {
A(i, 0) = 1.0;
}
for (int j = 0; j < xvals.size(); j++) {
for (int i = 0; i < order; i++) {
A(j, i + 1) = A(j, i) * xvals(j);
}
}
auto Q = A.householderQr();
auto result = Q.solve(yvals);
return result;
}
int main() {
uWS::Hub h;
// MPC is initialized here!
MPC mpc;
h.onMessage([&mpc](uWS::WebSocket<uWS::SERVER> ws, char *data, size_t length,
uWS::OpCode opCode) {
// "42" at the start of the message means there's a websocket message event.
// The 4 signifies a websocket message
// The 2 signifies a websocket event
string sdata = string(data).substr(0, length);
cout << sdata << endl;
if (sdata.size() > 2 && sdata[0] == '4' && sdata[1] == '2') {
string s = hasData(sdata);
if (s != "") {
auto j = json::parse(s);
string event = j[0].get<string>();
if (event == "telemetry") {
// j[1] is the data JSON object
vector<double> ptsx = j[1]["ptsx"];
vector<double> ptsy = j[1]["ptsy"];
double px = j[1]["x"];
double py = j[1]["y"];
double psi = j[1]["psi"];
double v = j[1]["speed"];
// initial steering / throttle
double steer_value = j[1]["steering_angle"];
double throttle_value = j[1]["throttle"];
double latency = 0.1;
double Lf = 2.67;
px += v * cos(psi) * latency;
py += v * sin(psi) * latency;
psi -= v * steer_value / Lf * latency;
v += throttle_value * latency;
// Transform map coord. to car coord.
for (unsigned int i = 0; i < ptsx.size(); i++){
double diff_x = ptsx[i] - px;
double diff_y = ptsy[i] - py;
ptsx[i] = (diff_x * cos(0-psi) - diff_y * sin(0-psi));
ptsy[i] = (diff_x * sin(0-psi) + diff_y * cos(0-psi));
}
double* ptrx_ = &ptsx[0];
double* ptry_ = &ptsy[0];
Eigen::Map<Eigen::VectorXd> rdpts_x_eigen(ptrx_, 6);
Eigen::Map<Eigen::VectorXd> rdpts_y_eigen(ptry_, 6);
// coefficients
auto coeffs = polyfit(rdpts_x_eigen, rdpts_y_eigen, 3);
// cte and epsi
double cte = polyeval(coeffs, 0);
double epsi = -atan(coeffs[1]);
// Create state vector
Eigen::VectorXd state(6);
state << 0, 0, 0, v, cte, epsi;
vector<double> solver_inputs = mpc.Solve(state, coeffs);
//steer_value = solver_inputs[0]/(deg2rad(25)*Lf);
steer_value = solver_inputs[0]/(deg2rad(25));
throttle_value = solver_inputs[1];
/*
* TODO: Calculate steering angle and throttle using MPC.
*
* Both are in between [-1, 1].
*
*/
json msgJson;
// NOTE: Remember to divide by deg2rad(25) before you send the steering value back.
// Otherwise the values will be in between [-deg2rad(25), deg2rad(25] instead of [-1, 1].
msgJson["steering_angle"] = steer_value;
msgJson["throttle"] = throttle_value;
//Display the MPC predicted trajectory
vector<double> mpc_x_vals;
vector<double> mpc_y_vals;
mpc_x_vals.push_back(0);
mpc_y_vals.push_back(0);
//.. add (x,y) points to list here, points are in reference to the vehicle's coordinate system
// the points in the simulator are connected by a Green line
for (unsigned int i = 2; i < solver_inputs.size(); i++){
if (i % 2 == 0){
mpc_x_vals.push_back(solver_inputs[i]);
}
else {
mpc_y_vals.push_back(solver_inputs[i]);
}
}
msgJson["mpc_x"] = mpc_x_vals;
msgJson["mpc_y"] = mpc_y_vals;
//Display the waypoints/reference line
vector<double> next_x_vals;
vector<double> next_y_vals;
//.. add (x,y) points to list here, points are in reference to the vehicle's coordinate system
// the points in the simulator are connected by a Yellow line
double poly_incr = 2.5;
int num_roadpts = 50;
for (int i = 0; i < num_roadpts; i++){
next_x_vals.push_back(i * poly_incr);
next_y_vals.push_back(polyeval(coeffs, i * poly_incr));
}
msgJson["next_x"] = next_x_vals;
msgJson["next_y"] = next_y_vals;
auto msg = "42[\"steer\"," + msgJson.dump() + "]";
// std::cout << msg << std::endl;
// Latency
// The purpose is to mimic real driving conditions where
// the car does actuate the commands instantly.
//
// Feel free to play around with this value but should be to drive
// around the track with 100ms latency.
//
// NOTE: REMEMBER TO SET THIS TO 100 MILLISECONDS BEFORE
// SUBMITTING.
this_thread::sleep_for(chrono::milliseconds(100));
ws.send(msg.data(), msg.length(), uWS::OpCode::TEXT);
}
} else {
// Manual driving
std::string msg = "42[\"manual\",{}]";
ws.send(msg.data(), msg.length(), uWS::OpCode::TEXT);
}
}
});
// We don't need this since we're not using HTTP but if it's removed the
// program
// doesn't compile :-(
h.onHttpRequest([](uWS::HttpResponse *res, uWS::HttpRequest req, char *data,
size_t, size_t) {
const std::string s = "<h1>Hello world!</h1>";
if (req.getUrl().valueLength == 1) {
res->end(s.data(), s.length());
} else {
// i guess this should be done more gracefully?
res->end(nullptr, 0);
}
});
h.onConnection([&h](uWS::WebSocket<uWS::SERVER> ws, uWS::HttpRequest req) {
std::cout << "Connected!!!" << std::endl;
});
h.onDisconnection([&h](uWS::WebSocket<uWS::SERVER> ws, int code,
char *message, size_t length) {
ws.close();
std::cout << "Disconnected" << std::endl;
});
int port = 4567;
if (h.listen(port)) {
std::cout << "Listening to port " << port << std::endl;
} else {
std::cerr << "Failed to listen to port" << std::endl;
return -1;
}
h.run();
}
| [
"fuchs.al@web.de"
] | fuchs.al@web.de |
73de5d5470f8e3e95c8a2fb4d4e4182b6322511b | eeeeb4fc149a23b7269ac5b94fe7cfb3ddc9e6b5 | /PhTranslateCOM/KannadaTranslator.h | ee0b9bf365cbaeb5d0b34da9ffa5b4d69fac869f | [] | no_license | rajeshwarn/Transliteration | df48dbc8716dcf2d83372c37ea0d77ae62318267 | 22a29cf8948bbfed8470654d1785cd991f739c5c | refs/heads/master | 2020-12-24T15:14:26.549820 | 2015-03-05T13:33:23 | 2015-03-05T13:33:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,021 | h | // KannadaTranslator.h : Declaration of the CKannadaTranslator
#pragma once
#include "resource.h" // main symbols
#include "PhTranslateCOM_i.h"
#if defined(_WIN32_WCE) && !defined(_CE_DCOM) && !defined(_CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA)
#error "Single-threaded COM objects are not properly supported on Windows CE platform, such as the Windows Mobile platforms that do not include full DCOM support. Define _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA to force ATL to support creating single-thread COM object's and allow use of it's single-threaded COM object implementations. The threading model in your rgs file was set to 'Free' as that is the only threading model supported in non DCOM Windows CE platforms."
#endif
// CKannadaTranslator
class ATL_NO_VTABLE CKannadaTranslator :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CKannadaTranslator, &CLSID_KannadaTranslator>,
public IDispatchImpl<IPhTranslator, &IID_IPhTranslator, &LIBID_PhTranslateCOMLib, /*wMajor =*/ 1, /*wMinor =*/ 0>
{
public:
CKannadaTranslator()
{
}
DECLARE_REGISTRY_RESOURCEID(IDR_KANNADATRANSLATOR)
BEGIN_COM_MAP(CKannadaTranslator)
COM_INTERFACE_ENTRY(IPhTranslator)
COM_INTERFACE_ENTRY(IDispatch)
END_COM_MAP()
DECLARE_PROTECT_FINAL_CONSTRUCT()
HRESULT FinalConstruct()
{
return S_OK;
}
void FinalRelease()
{
}
public:
// IPhTranslator Methods
public:
STDMETHOD(Translate)( BSTR inPhoneticString, BSTR * pTranslatedString)
{
std::wstring strRet;
::Translate(GetKannadaTranslator(), (wchar_t*)inPhoneticString, strRet);
try
{
*pTranslatedString = SysAllocString(strRet.c_str()); // Caller should free this using SysFreeString
}
catch(...)
{
return E_OUTOFMEMORY;
}
return S_OK;
}
STDMETHOD(SavePhoneticTable)(BSTR bstrPhTableFilePath);
STDMETHOD(LoadPhoneticTable)(BSTR bstrPhTableFilePath);
};
OBJECT_ENTRY_AUTO(__uuidof(KannadaTranslator), CKannadaTranslator)
| [
"venkat.kondrasu@gmail.com"
] | venkat.kondrasu@gmail.com |
b1b07e2d533ccb2c86ce104f072a5d9efffad1ff | 486daa9b1945e65f59db8877fae2eca52844b0ef | /model/src/EnumTypeImpl.h | 49ebf3e1edc946fc9c0c35038ed3bf2ce6de7497 | [
"Apache-2.0"
] | permissive | mballance-sf/open-ps | 2a20d146d3d4c00a6d709f3a45efaed5c0678eb4 | a5ed44ce30bfe59462801ca7de4361d16950bcd2 | refs/heads/master | 2020-03-17T04:05:02.416863 | 2018-06-01T02:17:07 | 2018-06-01T02:17:07 | 133,262,113 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,303 | h | /*
* EnumTypeImpl.h
*
* Licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in
* writing, software distributed under the License is
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See
* the License for the specific language governing
* permissions and limitations under the License.
*
* Created on: Mar 16, 2018
* Author: ballance
*/
#ifndef MODEL_SRC_ENUMTYPEIMPL_H_
#define MODEL_SRC_ENUMTYPEIMPL_H_
#include <string>
#include "BaseItemImpl.h"
#include "IEnumType.h"
class EnumTypeImpl : public BaseItemImpl, public virtual IEnumType {
public:
EnumTypeImpl(
const std::string &name,
const std::vector<IEnumerator *> &enumerators);
virtual ~EnumTypeImpl();
virtual const std::string &getName() const { return m_name; }
virtual const std::vector<IEnumerator *> &getEnumerators() const { return m_enumerators; }
virtual IBaseItem *clone() const;
private:
std::string m_name;
std::vector<IEnumerator *> m_enumerators;
};
#endif /* MODEL_SRC_ENUMTYPEIMPL_H_ */
| [
"matt.ballance@gmail.com"
] | matt.ballance@gmail.com |
1f358b4a90ce527208b05c7be60829050dad4e30 | 076389ae543ee83723f2b05ce530df2bdd712da9 | /difference/constvar.cpp | 767ec32071534d9546939310f2b6c6a14661a198 | [] | no_license | zhudisheng/The-Cplusplus-programming-language | e31183d4e98ee8d3d285fa21f8b973630ff496f3 | 6369e0f6fb568534d6933b5245c8e267175920b9 | refs/heads/master | 2021-05-17T11:38:46.670776 | 2020-04-08T02:11:15 | 2020-04-08T02:11:15 | 250,759,088 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 691 | cpp | #include <stdio.h>
int main()
{
const int x = 1;
const int &rx = x;
int &nrx = const_cast<int&>(rx);
nrx = 5;
printf("x = %d\n",x);
printf("rx = %d\n",rx);
printf("nrx = %d\n",nrx);
printf("&x = %p\n",&x);
printf("&rx = %p\n",&rx);
printf("&rnx = %p\n",&nrx);
volatile const int y = 2;
int *p = const_cast<int*>(&y);
*p = 6;
printf("y = %d\n",y);
printf("*p = %d\n",*p);
printf("p = %p\n",p);
printf("&y = %p\n",&y);
const int z = y;
p = const_cast<int*>(&z);
*p = 7;
printf("z = %d\n",z);
printf("p = %p\n",p);
char c = 'c';
char &rc = c;
const int &trc = c;
rc = 'a';
printf("c = %c\n",c);
printf("rc = %c\n",rc);
printf("trc = %c\n",trc);
return 0;
}
| [
"zhuran@mail.ustc.edu.cn"
] | zhuran@mail.ustc.edu.cn |
539ae0b7750f420c217133459731c4b9511257d7 | 244a44556eeee1df094bf882851bf8eeeaad6a97 | /USACO/PreviousContests/BRONZE/USACO2013/DEC/RecordKeeping/RecordKeeping/main.cpp | 36ad8d6b6995f132a30998d76a9756363d306f29 | [] | no_license | dhruvshah1214/usaco | 9a002e6adbe707cd672e8372dfdaa139b43ca3a1 | 5b97f19ae685ac49ca304e9912648e06975509b2 | refs/heads/master | 2023-01-10T23:31:00.157647 | 2022-12-21T09:14:48 | 2022-12-21T09:14:48 | 90,556,457 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,293 | cpp | //
// main.cpp
// RecordKeeping
//
// Created by Dhruv Shah on 8/5/15.
// Copyright (c) 2015 DhruvShah. All rights reserved.
//
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
using namespace std;
int N, mostOcc = 0;
string cowGroups[1001][3];
bool compGroups(string g1[3], string g2[3]) {
int numberMatching = 0;
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
if(g1[i] == g2[j]) {
numberMatching++;
}
}
}
return (numberMatching == 3);
}
int main(int argc, const char * argv[]) {
ifstream in("records.in");
ofstream out("records.out");
in >> N;
string line;
for (int i = 0; getline(in, line); i++) {
if (i == 0) {
continue;
}
stringstream ss(line);
for (int j = 0; j < 3; j++)
{
ss >> cowGroups[i - 1][j];
}
}
for (int i = 0; i < N; i++) {
int numOcc = 0;
for (int j = 0; j < N; j++) {
if (compGroups(cowGroups[i], cowGroups[j])) {
numOcc++;
}
}
if (numOcc > mostOcc) {
mostOcc = numOcc;
}
}
cout << mostOcc << endl;
out << mostOcc << endl;
return 0;
}
| [
"dhruv.shah@gmail.com"
] | dhruv.shah@gmail.com |
406cd9f11757c3571a101a9a2a7443b6b6bf1e64 | b1af8bb863a6730e6e4e93129efbad89d33cf509 | /SDK/SCUM_Shemagh_Scarf_06_parameters.hpp | 8f831f642215b54955ccf597db202707ee5676e6 | [] | no_license | frankie-11/SCUM_SDK7.13.2020 | b3bbd8fb9b6c03120b865a6254eca6a2389ea654 | 7b48bcf9e8088aa8917c07dd6756eac90e3f693a | refs/heads/master | 2022-11-16T05:48:55.729087 | 2020-07-13T23:48:50 | 2020-07-13T23:48:50 | 279,433,512 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,634 | hpp | #pragma once
// SCUM (4.24) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------------------------------------------------------
// Function ConZ.ClothesItem.UpdateMaterialParamsOnClients
struct AShemagh_Scarf_06_C_UpdateMaterialParamsOnClients_Params
{
};
// Function ConZ.ClothesItem.SetDirtiness
struct AShemagh_Scarf_06_C_SetDirtiness_Params
{
float* dirtiness; // (Parm, ZeroConstructor, IsPlainOldData)
};
// Function ConZ.ClothesItem.OnRep_MaterialParameters
struct AShemagh_Scarf_06_C_OnRep_MaterialParameters_Params
{
};
// Function ConZ.ClothesItem.GetWarmth
struct AShemagh_Scarf_06_C_GetWarmth_Params
{
int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData)
};
// Function ConZ.ClothesItem.GetCapacityY
struct AShemagh_Scarf_06_C_GetCapacityY_Params
{
int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData)
};
// Function ConZ.ClothesItem.GetCapacityX
struct AShemagh_Scarf_06_C_GetCapacityX_Params
{
int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData)
};
}
#ifdef _MSC_VER
#pragma pack(pop)
#endif
| [
"60810131+frankie-11@users.noreply.github.com"
] | 60810131+frankie-11@users.noreply.github.com |
112889db364ba056683a21f01e6fa6039821a20a | d0c44dd3da2ef8c0ff835982a437946cbf4d2940 | /cmake-build-debug/programs_tiling/function14220/function14220_schedule_7/function14220_schedule_7_wrapper.cpp | 8f38fe6536108d21763d95a3e520e4c4c5c1bf56 | [] | no_license | IsraMekki/tiramisu_code_generator | 8b3f1d63cff62ba9f5242c019058d5a3119184a3 | 5a259d8e244af452e5301126683fa4320c2047a3 | refs/heads/master | 2020-04-29T17:27:57.987172 | 2019-04-23T16:50:32 | 2019-04-23T16:50:32 | 176,297,755 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 926 | cpp | #include "Halide.h"
#include "function14220_schedule_7_wrapper.h"
#include "tiramisu/utils.h"
#include <cstdlib>
#include <iostream>
#include <time.h>
#include <fstream>
#include <chrono>
#define MAX_RAND 200
int main(int, char **){
Halide::Buffer<int32_t> buf00(1024, 65536);
Halide::Buffer<int32_t> buf0(1024, 65536);
init_buffer(buf0, (int32_t)0);
auto t1 = std::chrono::high_resolution_clock::now();
function14220_schedule_7(buf00.raw_buffer(), buf0.raw_buffer());
auto t2 = std::chrono::high_resolution_clock::now();
std::chrono::duration<double> diff = t2 - t1;
std::ofstream exec_times_file;
exec_times_file.open("../data/programs/function14220/function14220_schedule_7/exec_times.txt", std::ios_base::app);
if (exec_times_file.is_open()){
exec_times_file << diff.count() * 1000000 << "us" <<std::endl;
exec_times_file.close();
}
return 0;
} | [
"ei_mekki@esi.dz"
] | ei_mekki@esi.dz |
b65c75575fb7fc590a6ae028a04e5694686500a9 | b628756ba33abb9fee7115c2a2a3adf8b67ee2f0 | /play/Benchmark.cpp | 5c24960cc69e7ef6c2065cf10d2fe839499a6eb5 | [
"Zlib",
"BSL-1.0"
] | permissive | AlexandraTole/Giotto | 87bc6b31645faba280381295ac50cf607fc92e02 | 9ee00649e1c6f0f3cc6027650e02b15208a2da9c | refs/heads/master | 2021-05-23T06:16:11.963103 | 2017-06-18T18:17:01 | 2017-06-18T18:17:01 | 94,700,762 | 1 | 0 | null | 2017-06-26T16:45:09 | 2017-06-18T16:56:20 | C++ | UTF-8 | C++ | false | false | 8,180 | cpp | /*
Giotto
Copyright (C) 2017 George Oros
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
See copyright notice at http://lidsdl.org/license.php
*/
#include "Benchmark.hpp"
/******************************************************* Benchmark *******************************************************/
#include <cstdlib>
#include <iostream>
#include <chrono>
#include <cstring>
#include <cfloat>
#define SZ_X 16384
#define SZ_Y 16384
#define EXEC_CNT 10
#define BYTE_PATTERN 0x11223344
static double Algo0(std::uint32_t * ptr)
{
int i;
int j;
auto start = std::chrono::high_resolution_clock::now();
for (i = 0; i < SZ_Y; i++)
{
for (j = 0; j < SZ_X; j++)
{
ptr[i * SZ_Y + j] = BYTE_PATTERN;
}
}
auto end = std::chrono::high_resolution_clock::now();
i = SZ_Y - 1;
j = SZ_X - 1;
if (ptr[i * SZ_Y + j] != BYTE_PATTERN)
{
std::cout << "Error!" << std::endl;
}
return std::chrono::duration<double>(end - start).count();
}
static double Algo1(std::uint32_t * ptr)
{
uint32_t i;
uint32_t j;
std::uint32_t max = SZ_X * SZ_Y;
if (max % 16 != 0)
{
std::cout << "Loop unroll trebuie facut calumea daca max % 16 != 0!";
}
i = 0;
auto start = std::chrono::high_resolution_clock::now();
while (i < max)
{
*(ptr + i + 0) = BYTE_PATTERN;
*(ptr + i + 1) = BYTE_PATTERN;
*(ptr + i + 2) = BYTE_PATTERN;
*(ptr + i + 3) = BYTE_PATTERN;
*(ptr + i + 4) = BYTE_PATTERN;
*(ptr + i + 5) = BYTE_PATTERN;
*(ptr + i + 6) = BYTE_PATTERN;
*(ptr + i + 7) = BYTE_PATTERN;
*(ptr + i + 8) = BYTE_PATTERN;
*(ptr + i + 9) = BYTE_PATTERN;
*(ptr + i + 10) = BYTE_PATTERN;
*(ptr + i + 11) = BYTE_PATTERN;
*(ptr + i + 12) = BYTE_PATTERN;
*(ptr + i + 13) = BYTE_PATTERN;
*(ptr + i + 14) = BYTE_PATTERN;
*(ptr + i + 15) = BYTE_PATTERN;
i += 16;
}
auto end = std::chrono::high_resolution_clock::now();
i = SZ_Y - 1;
j = SZ_X - 1;
if (ptr[i * SZ_Y + j] != BYTE_PATTERN)
{
std::cout << "Error!" << std::endl;
}
return std::chrono::duration<double>(end - start).count();
}
static double Algo2(uint32_t * ptr)
{
int i;
int j;
auto start = std::chrono::high_resolution_clock::now();
std::memset(ptr, 0x11, SZ_X * SZ_Y * sizeof(uint32_t));
auto end = std::chrono::high_resolution_clock::now();
i = SZ_Y - 1;
j = SZ_X - 1;
if (ptr[i * SZ_Y + j] != 0x11111111)
{
std::cout << "Error!" << std::endl;
}
return std::chrono::duration<double>(end - start).count();
}
#include <thread>
// #pragma GCC push_options
// #pragma GCC optimize("Ofast")
static void Algo3Part(uint64_t * ptr, uint64_t * endptr, const uint64_t bp)
{
while (ptr < endptr )
{
*(ptr + 0) = bp;
*(ptr + 1) = bp;
*(ptr + 2) = bp;
*(ptr + 3) = bp;
*(ptr + 4) = bp;
*(ptr + 5) = bp;
*(ptr + 6) = bp;
*(ptr + 7) = bp;
ptr += 8;
}
}
static double Algo3(uint32_t * ptr)
{
std::uint64_t bp = (std::uint64_t)BYTE_PATTERN << (std::uint64_t)32 | (std::uint64_t)BYTE_PATTERN;
std::uint64_t max64 = SZ_X * SZ_Y / 2;
std::uint64_t m = max64 / 4;
std::uint64_t* p1 = (std::uint64_t*)ptr;
std::uint64_t* e1 = (std::uint64_t*)(p1 + m);
std::uint64_t* p2 = (std::uint64_t*)e1;
std::uint64_t* e2 = (std::uint64_t*)(e1 + m);
std::uint64_t* p3 = (std::uint64_t*)e2;
std::uint64_t* e3 = (std::uint64_t*)(e2 + m);
std::uint64_t* p4 = (std::uint64_t*)e3;
std::uint64_t* e4 = (std::uint64_t*)(e3 + m);
std::thread t1;
std::thread t2;
std::thread t3;
auto start = std::chrono::high_resolution_clock::now();
t1 = std::thread(Algo3Part, p1, e1, bp);
t2 = std::thread(Algo3Part, p2, e2, bp);
t3 = std::thread(Algo3Part, p3, e3, bp);
Algo3Part(p4, e4, bp);
t1.join();
t2.join();
t3.join();
auto end = std::chrono::high_resolution_clock::now();
//
int i;
int j;
i = SZ_Y - 1;
j = SZ_X - 1;
if (ptr[i * SZ_Y + j] != BYTE_PATTERN)
{
std::cout << "Error!" << std::endl;
}
return std::chrono::duration<double>(end - start).count();
}
// #pragma GCC pop_options
static void DoAlgo(const int algo_index)
{
int k;
double diff[EXEC_CNT];
std::uint32_t* ptr;
int step_new;
int step_old = 0;
void * buff;
size_t buffsize;
double (*algo_ptr)(uint32_t*);
switch (algo_index)
{
case 0:
std::cout << "Algo0 selected - standard Matrix" << std::endl;
algo_ptr = &Algo0;
break;
case 1:
std::cout << "Algo1 selected - liniar; manual loop unroll" << std::endl;
algo_ptr = &Algo1;
break;
case 2:
std::cout << "Algo2 selected - memset" << std::endl;
algo_ptr = &Algo2;
break;
case 3:
std::cout << "Algo3 selected - 64 bit pointers" << std::endl;
algo_ptr = &Algo3;
break;
default:
std::cout << "Wrong algo index" << std::endl;
return;
break;
}
buffsize = SZ_X * SZ_Y * sizeof(uint32_t);
std::cout << ((buffsize / 1024.0) / 1024.0) << "MB dataset" << std::endl;
buff = std::malloc(buffsize);
if (buff == NULL)
{
std::cout << "malloc fail!" << std::endl;
exit(1);
}
ptr = (std::uint32_t *)buff;
(void)algo_ptr(ptr);
for (k = 0; k < EXEC_CNT; k++)
{
step_new = (k * 100) / EXEC_CNT;
if (step_new != step_old)
{
if (step_new % 5 == 0) std::cout << ".";
std::cout.flush();
step_old = step_new;
}
diff[k] = algo_ptr(ptr);
std::memset(buff, 0, buffsize);
}
std::cout << " done." << std::endl;
double sum = 0.0;
double min = DBL_MAX;
double max = DBL_MIN;
int min_index = -1;
int max_index = -1;
for (k = 0; k < EXEC_CNT; k++)
{
sum += diff[k];
if (diff[k] < min)
{
min = diff[k];
min_index = k;
}
if (diff[k] > max)
{
max = diff[k];
max_index = k;
}
}
double avg = sum / EXEC_CNT;
std::cout << "Done in " << sum << "sec. " << EXEC_CNT << " runs" << std::endl;
std::cout << "Average of " << avg << "sec" << std::endl;
std::cout << "Min " << min << "sec. Run " << min_index << std::endl;
std::cout << "Max " << max << "sec. Run " << max_index << std::endl;
double bytes_written = static_cast<double>(EXEC_CNT) * static_cast<double>(SZ_X) *
static_cast<double>(SZ_Y) * static_cast<double>(sizeof(uint32_t));
double bw = (((bytes_written / sum) / 1024.0) / 1024.0 / 1024.0);
std::cout << "Bandwidth=" << bw << " GB/sec" << std::endl;
std::free(buff);
}
void _doBenchmark(void)
{
std::cout << "****************************************" << std::endl;
DoAlgo(0);
std::cout << "****************************************" << std::endl;
DoAlgo(1);
std::cout << "****************************************" << std::endl;
DoAlgo(2);
std::cout << "****************************************" << std::endl;
DoAlgo(3);
}
| [
"georgeoros@Georges-MacBook.local"
] | georgeoros@Georges-MacBook.local |
68ca46b6d0d34a922834b6835bdb85088bce0992 | 123eea07deb390a13d5dfb81bb9d08b0543dbdf1 | /Microcontroller/Tahap-2-MQTT/water-pump/water-pump.ino | ca2c0e29b83104d5b14c0b43a33ee383921d840e | [] | no_license | MohamadNurhidayat/pkl-online-iot | a1695d807888ee93a67631c0ae6863e144cf4f30 | 17397fb5e5acd2940c23849b741ee8f7c950cd85 | refs/heads/master | 2022-12-27T07:36:06.949544 | 2020-10-07T06:32:24 | 2020-10-07T06:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,654 | ino | /*
* PLEASE DONT DELETE AND EDIT
* Develop by : Nurman Hariyanto
* Email : nurman.hariyanto13@gmail.com
* Project : PKL-ONLINE Relay Water Pump
* Version : 1.0
* Description : This code trigger water pump turn on/off from message payload rabbitmq
* Microcontroller : Wemos Mini ESP8266
* NodeMCU ESP8266
* Device : Relay Module 1 Channel
* Water pump A3 waterproof
*/
/*
* YOU CAN EDIT NOW
*/
/*
* Include library
*/
#include <PubSubClient.h>
#include <ESP8266WiFi.h>
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/*
* Connection parameter
* -Wifi -> internet connection foor data communication
* -RabbitMQ/MQTT -> protoocol data communication
*/
const char* wifiSsid = "LSKKHomeAuto";
const char* wifiPassword = "1234567890";
const char* mqttHost = "rmq2.pptik.id";
const char* mqttUserName = "/smkmerdekabandung:smkmerdekabandung";
const char* mqttPassword = "qwerty";
//const char* mqttClient = "IOT-Water-Pumpp";
const char* mqttQueueAktuator = "Aktuator";
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/*7
* Device parameter
* -Guid -> Id Device (unique) you can generate from here (https://www.uuidgenerator.net/version1)
* -status device -> save last state from the pump is on or off (1 = on , 0 = off)
* -pin microcontroller
* -mac device
*
*/
String deviceGuid = "3735ffa4-f729-11ea-adc1-0242ac120002"; //You can change this guid with your guid
int devicePin = D1;
/*
* Wifi setup WiFi client and mac address
*/
WiFiClient espClient;
PubSubClient client(espClient);
byte mac[6]; //array temp mac address
String MACAddress;
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/*
* Set up WiFi connection
*/
void setup_wifi(){
delay(10);
//We start by connecting to a WiFi network
Serial.println();
Serial.print("Connecting to :");
Serial.println(wifiSsid);
WiFi.begin(wifiSsid, wifiPassword);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/*
* Function for Get Mac Address from microcontroller
*/
String mac2String(byte ar[]) {
String s;
for (byte i = 0; i < 6; ++i)
{
char buf[3];
sprintf(buf, "%2X", ar[i]);
s += buf;
if (i < 5) s += ':';
}
return s;
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/*
* Function for Print Mac Address
*/
void printMACAddress() {
WiFi.macAddress(mac);
MACAddress = mac2String(mac);
Serial.println(MACAddress);
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/*
* Function for Get message payload from MQTT rabbit mq
*/
void callback(char* topic, byte* payload, unsigned int length){
Serial.println();
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/*
* Function for Reconnecting to MQTT/RabbitMQ
*/
void reconnect() {
// Loop until we're reconnected
printMACAddress();
const char* CL;
CL = MACAddress.c_str();
Serial.println(CL);
while (!client.connected()) {
Serial.print("Attempting MQTT connection...");
// Attempt to connect
if (client.connect(CL, mqttUserName, mqttPassword)) {
Serial.println("connected");
} else {
Serial.print("failed, rc=");
Serial.print(client.state());
Serial.println(" try again in 5 seconds");
ESP.restart();
delay(5000);
}
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/*
* Function for Setup Pin Mode,wifi,mqtt,and serial
*/
void setup()
{
pinMode(devicePin, OUTPUT);
digitalWrite(devicePin, HIGH);
//pinMode(input, INPUT);
Serial.begin(115200);
setup_wifi();
printMACAddress();
client.setServer(mqttHost, 1883);
client.setCallback(callback);
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/*
* This functioon for loop your program
*/
void loop() {
//if you disconnected from wifi and mqtt
if (!client.connected()) {
reconnect();
}
digitalWrite(devicePin,HIGH); //turn the relay on
String pumpOn = String(deviceGuid + "#" + "1");
char statusPumpOn [50];
pumpOn.toCharArray(statusPumpOn, sizeof(statusPumpOn));
client.publish(mqttAktuator,statusPumpOn );
delay(5000); //wait for 5 seconds
digitalWrite(devicePin,LOW); //turn the relay off
String pumpOff = String(deviceGuid + "#" + "0");
char statusPumpOff [50];
pumpOff.toCharArray(statusPumpOff, sizeof(statusPumpOff));
client.publish(mqttAktuator,statusPumpOff );
delay(5000); //wait for 5 seconds
client.loop();
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
| [
"nurman.hariyanto13@gmail.com"
] | nurman.hariyanto13@gmail.com |
061cd61be543b644324baf21d8944269619b5c66 | 43a8e5797b9e765fc4dbe57a243b098e8197d6d1 | /RealtimeGPURayTracer/RealtimeGPURayTracer/SimplePass.h | 56f7116eba8e8a3c55c6514f10f2f2e503afcefe | [] | no_license | jxu586/580 | 4dfedcb27d4863bdf511633d5c042575bcd30945 | 942eef490d2260730b1df8475bcb3271279ed452 | refs/heads/master | 2020-12-24T16:50:11.966764 | 2014-11-16T21:48:41 | 2014-11-16T21:48:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 274 | h | #ifndef _SIMPLE_PASS_H_
#define _SIMPLE_PASS_H_
#include "RenderPass.h"
class CSimplePass :
public CRenderPass
{
public:
CSimplePass(void);
virtual ~CSimplePass(void);
virtual int Init();
virtual void RenderBegin(void *pArgs);
virtual void RenderEnd();
};
#endif
| [
"jxu586@usc.edu"
] | jxu586@usc.edu |
a862f65e49ab7c3c10e518afe9ff77808c12a09e | e49a47f4773906e95d36dcf053ff1bc4398962de | /project3/forward_euler.h | 32af6dec1a7141a9961b26b908969b47008c8689 | [] | no_license | egilsk/fys3150x | b8d226fb8f9d227378c75e3f76d392c46e0de84b | 9ce593369590d6561686f562008a0cdae2920222 | refs/heads/master | 2021-07-16T09:53:12.197887 | 2018-12-20T08:11:04 | 2018-12-20T08:11:04 | 145,827,986 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 281 | h | #ifndef FORWARD_EULER_H
#define FORWARD_EULER_H
#include "system.h"
class ForwardEuler
{
public:
// Constructor
ForwardEuler() {}
// Destructor
~ForwardEuler() {}
// Integrator
void integrate(System* system, const double h);
};
#endif // FORWARD_EULER_H
| [
"egilsk@gaztak.uio.no"
] | egilsk@gaztak.uio.no |
a068e7df208b16e749e3fa4c18916a003bd1b04d | 4f63be3e3611466511742491cb18797ebcfd9f57 | /PC-daima/PlatForm/Server/MainServer/UserCustomLogo.cpp | 42d63ffe3315ed7e3a62df42bb57685497a8f585 | [] | no_license | xubingyue/wulejiu | 0a9083c08270b453dff316cc827d943908572559 | ee71a1e299b700436f01c3acab7e4617826b9f85 | refs/heads/master | 2020-05-24T06:38:40.276805 | 2017-03-30T05:54:12 | 2017-03-30T05:54:12 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 9,152 | cpp | /*if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[RecommendTable]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[RecommendTable]
GO
CREATE TABLE [dbo].[RecommendTable] (
[id] [int] NULL ,
[UserID] [int] NULL ,
[RecommendID] [int] NULL
) ON [PRIMARY]
GO*/
#include "StdAfx.h"
#include "UserCustomLogo.h"
#include "GameLogonManage.h"
#include "MD5.h"
CUserCustomLogo::~CUserCustomLogo(void)
{
}
/*
Function :OnNetMessage
Notes :网络消息
Author :Fred Huang
Date :2008-03-18
Parameter :
NetMessageHead :网络消息头
void * :数据指针
UINT :数据包的大小
UING :未使用,原指IP地址
UINT :客户在服务器的SOCKET索引
return :void
*/
void CUserCustomLogo::OnNetMessage(NetMessageHead * pNetHead, void * pData, UINT uSize, ULONG uAccessIP, UINT uIndex, DWORD dwHandleID)
{
if(pNetHead->bMainID!=MDM_GR_USER_LOGO)
return;
switch(pNetHead->bAssistantID)
{
case ASS_ULC_UPLOAD: //上传文件,接收到的数据也包含在里面
OnUploadFace(pData,uSize,uIndex,dwHandleID);
break;
case ASS_ULC_INFOREQUEST: //客户端请求用户的头像信息
OnRequestLogoInformation(pData,uSize,uIndex,dwHandleID);
break;
case ASS_ULC_DOWNREQUEST: //请求下载某个用户的头像文件
OnDownloadRequest(pData,uSize,uIndex,dwHandleID);
break;
case ASS_ULC_DOWNRESULT: //返回下载的结构,事实上只用于请求下一个数据块
OnDownloadResult(pData,uSize,uIndex,dwHandleID);
break;
}
}
/*
Function :OnUploadFace
Notes :接收到上传文件数据包,分块上传
Author :Fred Huang
Date :2008-03-18
Parameter :
void * :数据指针
UINT :数据包的大小
UINT :客户在服务器的SOCKET索引
UINT :未知
return :void
*/
void CUserCustomLogo::OnUploadFace(void *pData,UINT uSize,UINT uIndex,DWORD dwHandleID)
{
//检查包大小
if(sizeof(MSG_UL_C_UPLOAD)!=uSize)
return;
//取管理窗口
CGameLogonManage *pWnd=(CGameLogonManage*)pParentWnd;
MSG_UL_C_UPLOAD *msg=(MSG_UL_C_UPLOAD*)pData;
long dwUserID=msg->dwUserID;
//根据用户ID号设置目录,每个用户用一个目录
CString savePath;
savePath.Format("%s\\%d",pWnd->m_CustomFacePath,dwUserID/1000);
::CreateDirectory(savePath,NULL);
savePath.Format("%s\\%d",pWnd->m_CustomFacePathUpload,dwUserID/1000);
::CreateDirectory(savePath,NULL);
//要保存的文件名
savePath.Format("%s\\%d\\%d.png",pWnd->m_CustomFacePathUpload,dwUserID/1000,dwUserID);
//如果是第一个数据包,要创建文件,否则只写
UINT dwFlag=CFile::modeWrite;
if(msg->nBlockIndex==0)
dwFlag|=CFile::modeCreate;
//要返回的消息,只返回数据块的索引和块数
MSG_UL_S_UPLOADRESULT resultMsg;
ZeroMemory(&resultMsg,sizeof(MSG_UL_S_UPLOADRESULT));
resultMsg.dwUserID=dwUserID;
resultMsg.nBlockCount=msg->nBlockCount;
resultMsg.nBlockIndex=msg->nBlockIndex;
resultMsg.bNeedCheck=pWnd->m_bCustomFaceNeedCheck;
try
{
//写入文件
CFile fw(savePath,dwFlag);
fw.Seek(msg->nBlockIndex*512,CFile::begin);
fw.Write(msg->szData,msg->nPackageSize);
fw.Close();
}
catch (...)
{//写文件失败
TRACE("CATCH:%s with %s\n",__FILE__,__FUNCTION__);
pWnd->m_TCPSocket.SendData(uIndex,&resultMsg,sizeof(MSG_UL_S_UPLOADRESULT),MDM_GR_USER_LOGO,ASS_ULS_UPLOADFAILED,dwHandleID,0);
return;
}
//返回消息
pWnd->m_TCPSocket.SendData(uIndex,&resultMsg,sizeof(MSG_UL_S_UPLOADRESULT),MDM_GR_USER_LOGO,ASS_ULS_UPLOADSUCCEED,dwHandleID,0);
TRACE("Receive Custom Logo File %d of %d at %s\n",msg->nBlockIndex,msg->nBlockCount,savePath);
//文件上传完成的操作,注意,nBlockIndex是从开始的,所以nBlockCount-1才是最后一块数据
if(msg->nBlockIndex==msg->nBlockCount-1)
{
//计算文件的MD5值
MD5_CTX md5;
CFile fr(savePath,CFile::modeRead);
int len=fr.GetLength();
byte *buf=new byte[len+1];
ZeroMemory(buf,len+1);
fr.Read(buf,len);
fr.Close();
md5.MD5Update(buf,len);
byte *md5buf=new byte[16];
ZeroMemory(md5buf,16);
md5.MD5Final(md5buf);
CString strmd5="",szChar;
for(int i=0;i<16;i++)
{
szChar.Format("%2x",md5buf[i]);
strmd5+=szChar;
}
delete md5buf;
delete buf;
//更新数据库
UL_GP_I_UpdateUserLogo UL_Update;
ZeroMemory(&UL_Update,sizeof(UL_GP_I_UpdateUserLogo));
UL_Update.dwUserID=dwUserID;
if(pWnd->m_bCustomFaceNeedCheck)
UL_Update.nIconIndex=0x200+msg->dwUserSourceLogo;
else
UL_Update.nIconIndex=0x100+msg->dwUserSourceLogo;
memcpy(UL_Update.szLogoMD5,strmd5,32);
pWnd->m_SQLDataManage.PushLine(&UL_Update.DataBaseHead,sizeof(UL_GP_I_UpdateUserLogo),DTK_GP_USERLOGO_UPDATE,uIndex,0);
TRACE("Receive Custom Logo Completed\n");
//接收完成了
}
}
/*
Function :OnRequestLogoInformation
Notes :请求某个用户的头像文件信息
Author :Fred Huang
Date :2008-03-18
Parameter :
void * :数据指针
UINT :数据包的大小
UINT :客户在服务器的SOCKET索引
UINT :未知
return :void
*/
void CUserCustomLogo::OnRequestLogoInformation(void * pData, UINT uSize, UINT uIndex, DWORD dwHandleID)
{
if(sizeof(MSG_UL_C_INFORREQUEST)!=uSize)
return;
MSG_UL_C_INFORREQUEST * msg=(MSG_UL_C_INFORREQUEST*)pData;
//需要向数据库查询,所以以下代码是建立一个数据库查询的请求,并加入队列中
UL_GP_I_RequestInformationLogoMD5 UL_LogoMD5;
ZeroMemory(&UL_LogoMD5,sizeof(UL_GP_I_RequestInformationLogoMD5));
UL_LogoMD5.dwUserID=msg->dwUserID;
UL_LogoMD5.dwRequestUserID=msg->dwRequestUserID;
CGameLogonManage *pWnd=(CGameLogonManage*)pParentWnd;
pWnd->m_SQLDataManage.PushLine(&UL_LogoMD5.DataBaseHead,sizeof(UL_GP_I_RequestInformationLogoMD5),DTK_GP_USERLOGO_GETMD5,uIndex,0);
}
/*
Function :OnDownloadRequest
Notes :请求下载头像文件
Author :Fred Huang
Date :2008-03-18
Parameter :
void * :数据指针
UINT :数据包的大小
UINT :客户在服务器的SOCKET索引
UINT :未知
return :void
*/
void CUserCustomLogo::OnDownloadRequest(void* pData, UINT uSize, UINT uIndex, DWORD dwHandleID)
{
if(sizeof(MSG_UL_C_DOWNREQUEST)!=uSize)
return;
MSG_UL_C_DOWNREQUEST *msg=(MSG_UL_C_DOWNREQUEST *)pData;
//开始下载第一块数据
downloadCustomFace(msg->dwRequestUserID,0,uIndex,dwHandleID);
}
/*
Function :downloadCustomFace
Notes :读取头像文件并发给请求的客户端
Author :Fred Huang
Date :2008-03-18
Parameter :
long :用户的ID号,是被请求下载的用户ID号
long :数据块的索引
UINT :客户在服务器的SOCKET索引
DWORD :未知
return :void
*/
void CUserCustomLogo::downloadCustomFace(long dwUserID, long nBlockIndex, UINT uIndex, DWORD dwHandleID)
{
//取管理窗口指针
CGameLogonManage *pWnd=(CGameLogonManage*)pParentWnd;
//计算头像文件名
CString logoFile;
logoFile.Format("%s\\%d\\%d.png",pWnd->m_CustomFacePath,dwUserID/1000,dwUserID);
//查询文件是否存在
CFileFind ff;
BOOL bFoundFile=ff.FindFile(logoFile);
ff.Close();
if(!bFoundFile)
return;
//读取文件块,每个块大小为
char buf[513]={0}; //多一个字节
CFile fr(logoFile,CFile::modeRead);
int filelen=fr.GetLength(); //文件大小
int packagesize=512; //数据块大小
if(nBlockIndex*512>filelen) //是否超出了文件的结尾
{
fr.Close();
return;
}
if(nBlockIndex*512+packagesize>filelen) //最后一块大小是否超出了文件的结尾
packagesize=filelen-nBlockIndex*512; //最不足块大小的数据
fr.Seek(nBlockIndex*512,CFile::begin); //文件定位
fr.Read(buf,packagesize); //读数据
fr.Close(); //关闭文件
//填充数据结构
MSG_UL_S_DOWN msg;
ZeroMemory(&msg,sizeof(MSG_UL_S_DOWN));
msg.dwUserID=dwUserID; //用户ID
msg.nBlockIndex=nBlockIndex; //数据块索引
msg.nBlockSize=512; //数据块大小
msg.nPackageSize=packagesize; //数据包的大小
msg.nFileSize=filelen; //文件大小
msg.nBlockCount=(filelen-1)/512+1; //数据块数量
memcpy(msg.szData,buf,packagesize); //数据
//发送数据
pWnd->m_TCPSocket.SendData(uIndex,&msg,sizeof(MSG_UL_S_DOWN),MDM_GR_USER_LOGO,ASS_ULS_DOWN,dwHandleID,0);
}
/*
Function :OnDownloadResult
Notes :客户端返回了接收数据包的结果,事实上,客户端只有在接收成功了才会发过来
Author :Fred Huang
Date :2008-03-18
Parameter :
void * :数据指针
UINT :数据包的大小
UINT :客户在服务器的SOCKET索引
UINT :未知
return :void
*/
void CUserCustomLogo::OnDownloadResult(void * pData, UINT uSize, UINT uIndex, DWORD dwHandleID)
{
if(sizeof(MSG_UL_C_DOWNRESULT)!=uSize)
return;
MSG_UL_C_DOWNRESULT *msg=(MSG_UL_C_DOWNRESULT *)pData;
//msg->nBlockIndex这个数据块已成功发送,所以发送下一个数据块
msg->nBlockIndex++;
downloadCustomFace(msg->dwUserID,msg->nBlockIndex,uIndex,dwHandleID);// msg->dwRequestUserID,0,uIndex,dwHandleID);
}
| [
"zhifeng.zhang@ericsson.com"
] | zhifeng.zhang@ericsson.com |
552fd0821875601173426d10a3443d76bddeb5bf | 0b72ad0c7060ffb5672e05392d145d95662febab | /Products/FileBackup/Uni_ver/UI/AM01.h | bf3c4186b1f4c686cae2000c392a35f07f008337 | [] | no_license | xfxf123444/japan | d55912cff16fd63caab0e5b206f1a3fcd66aea5e | 29e5f9cab5f431417cb1cf435477adeb6a5f8b31 | refs/heads/master | 2021-01-10T01:17:25.067789 | 2015-12-20T09:06:13 | 2015-12-20T09:06:13 | 43,422,127 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,506 | h | // AM01.h : main header file for the AM01 application
//
#ifndef AM01_APPLICATION_HEAD_FILE_H
#define AM01_APPLICATION_HEAD_FILE_H
#include "stdafx.h"
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include <afxext.h>
#include "resource.h" // main symbols
#include <winioctl.h>
#include "MainWnd.h" // Added by ClassView
BOOL GetCurrentSetting(AM01_PROG_SETTING *pSetting);
BOOL SetCurrentSetting(WCHAR *szSetting);
BOOL SelectFile(WCHAR *szFileExt,WCHAR *szFileType,WCHAR *szFile);
BOOL GetBecky2DataPath(WCHAR *szPath);
BOOL GetOutlookDataPath(WCHAR *szPath);
BOOL ShutdownSystem();
BOOL IsValidAMGPath(WCHAR *szPath);
BOOL IsValidRMIMGPath(WCHAR *szPath);
BOOL CheckConflict(WCHAR *szSource,WCHAR *szTargetImg,BOOL bImage);
#define BECKY2DATAKEY L"Software\\RimArts\\B2\\Settings"
#define AMSOFTWAREKEY L"Software\\FrontLine\\FileBackup\\6.00"
/////////////////////////////////////////////////////////////////////////////
// CAM01App:
// See magnaram.cpp for the implementation of this class
//
class CAM01App : public CWinApp
{
public:
CAM01App();
void CloseSplash();
protected:
//{{AFX_VIRTUAL(CYGSetupApp)
public:
virtual BOOL InitInstance();
virtual int ExitInstance();
//}}AFX_VIRTUAL
// Implementation
protected:
//{{AFX_MSG(CAM01App)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
protected:
private:
CMainWnd *m_pSaveMainWnd;
};
/////////////////////////////////////////////////////////////////////////////
#endif
| [
"xfxf123444@gmail.com"
] | xfxf123444@gmail.com |
f544c6a60a9a44cfb3a2821dfa34a5a19fc12e0d | a608fd71b3209fafd718c676c9b5ceef59aeaddb | /spl_project1/ast.hpp | 8f07429a309db148f18b2fcd2885678635e2be7e | [] | no_license | better-712/Compilers-project | a1a0fa058be6bf8a245faabc0dc9c1c16bda9534 | 49053d0d090edb01e1cc3c9e74f441c3d17403ec | refs/heads/master | 2023-03-16T06:57:29.349274 | 2020-02-12T14:01:05 | 2020-02-12T14:01:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,794 | hpp | //
// Created by 10578 on 10/9/2019.
//
#ifndef __AST_HPP__
#define __AST_HPP__
#include <iostream>
#include <utility>
#include <vector>
#include <stack>
#include <string>
#include <algorithm>
#include <variant>
#include "parser.tab.hpp"
#include "utils.hpp"
#include "scanner.hpp"
/**
* Abstract syntax tree of SUSTech Programming Language.
*/
namespace SPL {
/* Class pre-definition */
class AST_Node;
class Leaf_Node;
class Program_Node;
class ExtDefList_Node;
class ExtDef_Node;
class ExtDecList_Node;
class Specifier_Node;
class StructSpecifier_Node;
class VarDec_Node;
class FunDec_Node;
class VarList_Node;
class ParamDec_Node;
class CompSt_Node;
class StmtList_Node;
class Stmt_Node;
class DefList_Node;
class Def_Node;
class DecList_Node;
class Dec_Node;
class Exp_Node;
class Args_Node;
/* Alias */
using token_type = SPL_Parser::token_type;
using token = SPL_Parser::token;
/**
* Base AST Node.
*/
class AST_Node {
public:
int line_no = INT32_MAX;
int propagate_line_no();
virtual bool is_leaf();
virtual bool is_empty();
virtual ~AST_Node() = default;
virtual std::string to_string() = 0;
virtual std::vector<AST_Node *> get_child() = 0;
};
/**
* Leaf terminal node.
*/
class Leaf_Node : public AST_Node {
public:
token_type leaf_type;
Scan_Info *info;
std::variant<unsigned int, float, char> value;
Leaf_Node(token_type leaf_type, Scan_Info *info);
bool is_leaf() override;
std::string to_string() override;
std::vector<AST_Node *> get_child() override;
};
/* High-level definition */
class Program_Node : public AST_Node {
public:
ExtDefList_Node *ext_def_list;
explicit Program_Node(ExtDefList_Node *ext_def_list) : ext_def_list{ext_def_list} {
line_no = propagate_line_no();
};
std::string to_string() override;
std::vector<AST_Node *> get_child() override;
};
class ExtDefList_Node : public AST_Node {
public:
ExtDef_Node *ext_def;
ExtDefList_Node *ext_def_list;
ExtDefList_Node(ExtDef_Node *ext_def, ExtDefList_Node *ext_def_list)
: ext_def{ext_def}, ext_def_list{ext_def_list} {};
std::string to_string() override;
std::vector<AST_Node *> get_child() override;
};
class Empty_ExtDefList_Node : public ExtDefList_Node {
public:
Empty_ExtDefList_Node() : ExtDefList_Node(nullptr, nullptr) {};
std::string to_string() override;
std::vector<AST_Node *> get_child() override;
};
class ExtDef_Node : public AST_Node {
public:
Specifier_Node *specifier;
ExtDecList_Node *ext_dec_list;
Leaf_Node *semi;
FunDec_Node *fun_dec;
CompSt_Node *comp_st;
ExtDef_Node(Specifier_Node *specifier, ExtDecList_Node *ext_dec_list, Leaf_Node *semi)
: specifier{specifier}, ext_dec_list{ext_dec_list}, semi{semi}, fun_dec{nullptr},
comp_st{nullptr} {};
ExtDef_Node(Specifier_Node *specifier, Leaf_Node *semi)
: specifier{specifier}, ext_dec_list{nullptr}, semi{semi}, fun_dec{nullptr},
comp_st{nullptr} {};
ExtDef_Node(Specifier_Node *specifier, FunDec_Node *fun_dec, CompSt_Node *comp_st)
: specifier{specifier}, ext_dec_list{nullptr}, semi{nullptr}, fun_dec{fun_dec},
comp_st{comp_st} {};
std::string to_string() override;
std::vector<AST_Node *> get_child() override;
};
class ExtDecList_Node : public AST_Node {
public:
VarDec_Node *var_dec;
Leaf_Node *comma;
ExtDecList_Node *ext_dec_list;
explicit ExtDecList_Node(VarDec_Node *var_dec, Leaf_Node *comma = nullptr,
ExtDecList_Node *ext_dec_list = nullptr)
: var_dec{var_dec}, comma{comma}, ext_dec_list{ext_dec_list} {};
std::string to_string() override;
std::vector<AST_Node *> get_child() override;
};
/* specifier */
class Specifier_Node : public AST_Node {
public:
Leaf_Node *type;
StructSpecifier_Node *struct_specifier;
explicit Specifier_Node(Leaf_Node *type) : type{type}, struct_specifier{nullptr} {};
explicit Specifier_Node(StructSpecifier_Node *struct_specifier) : type{nullptr},
struct_specifier{struct_specifier} {};
std::string to_string() override;
std::vector<AST_Node *> get_child() override;
};
class StructSpecifier_Node : public AST_Node {
public:
Leaf_Node *_struct;
Leaf_Node *id;
Leaf_Node *lc;
DefList_Node *def_list;
Leaf_Node *rc;
StructSpecifier_Node(Leaf_Node *_struct, Leaf_Node *id,
Leaf_Node *lc = nullptr, DefList_Node *def_list = nullptr, Leaf_Node *rc = nullptr)
: _struct{_struct}, id{id}, lc{lc}, def_list{def_list}, rc{rc} {};
std::string to_string() override;
std::vector<AST_Node *> get_child() override;
};
/* declarator */
class VarDec_Node : public AST_Node {
public:
std::string to_string() override;
};
class ID_VarDec_Node : public VarDec_Node {
public:
Leaf_Node *id;
explicit ID_VarDec_Node(Leaf_Node *id) : id{id} {};
std::vector<AST_Node *> get_child() override;
};
class Array_VarDec_Node : public VarDec_Node {
public:
VarDec_Node *var_dec;
Leaf_Node *lb;
Leaf_Node *_int;
Leaf_Node *rb;
explicit Array_VarDec_Node(VarDec_Node *var_dec, Leaf_Node *lb, Leaf_Node *_int, Leaf_Node *rb)
: var_dec{var_dec}, lb{lb}, _int{_int}, rb{rb} {};
std::vector<AST_Node *> get_child() override;
};
class FunDec_Node : public AST_Node {
public:
Leaf_Node *id;
Leaf_Node *lp;
VarList_Node *var_list;
Leaf_Node *rp;
FunDec_Node(Leaf_Node *id, Leaf_Node *lp, VarList_Node *var_list, Leaf_Node *rp)
: id{id}, lp{lp}, var_list{var_list}, rp{rp} {};
FunDec_Node(Leaf_Node *id, Leaf_Node *lp, Leaf_Node *rp)
: id{id}, lp{lp}, var_list{nullptr}, rp{rp} {};
std::vector<AST_Node *> get_child() override;
std::string to_string() override;
};
class VarList_Node : public AST_Node {
public:
ParamDec_Node *param_dec;
Leaf_Node *comma;
VarList_Node *var_list;
explicit VarList_Node(ParamDec_Node *param_dec, Leaf_Node *comma = nullptr, VarList_Node *var_list = nullptr)
: param_dec{param_dec}, comma{comma}, var_list{var_list} {};
std::vector<AST_Node *> get_child() override;
std::string to_string() override;
};
class ParamDec_Node : public AST_Node {
public:
Specifier_Node *specifier;
VarDec_Node *var_dec;
ParamDec_Node(Specifier_Node *specifier, VarDec_Node *var_dec)
: specifier{specifier}, var_dec{var_dec} {};
std::vector<AST_Node *> get_child() override;
std::string to_string() override;
};
/* statement */
class CompSt_Node : public AST_Node {
public:
Leaf_Node *lc;
DefList_Node *def_list;
StmtList_Node *stmt_list;
Leaf_Node *rc;
CompSt_Node(Leaf_Node *lc, DefList_Node *def_list, StmtList_Node *stmt_list, Leaf_Node *rc)
: lc{lc}, def_list{def_list}, stmt_list{stmt_list}, rc{rc} {};
std::string to_string() override;
std::vector<AST_Node *> get_child() override;
};
class StmtList_Node : public AST_Node {
public:
Stmt_Node *stmt;
StmtList_Node *stmt_list;
explicit StmtList_Node(Stmt_Node *stmt, StmtList_Node *stmt_list)
: stmt{stmt}, stmt_list{stmt_list} {};
std::string to_string() override;
std::vector<AST_Node *> get_child() override;
};
class Empty_StmtList_Node : public StmtList_Node {
public:
Empty_StmtList_Node() : StmtList_Node(nullptr, nullptr) {};
std::string to_string() override;
std::vector<AST_Node *> get_child() override;
};
class Stmt_Node : public AST_Node {
public:
std::string to_string() override;
};
class Exp_Stmt_Node : public Stmt_Node {
public:
Exp_Node *exp;
Leaf_Node *semi;
Exp_Stmt_Node(Exp_Node *exp, Leaf_Node *semi) : exp{exp}, semi{semi} {};
std::vector<AST_Node *> get_child() override;
};
class CompSt_Stmt_Node : public Stmt_Node {
public:
CompSt_Node *comp_st;
explicit CompSt_Stmt_Node(CompSt_Node *comp_st) : comp_st{comp_st} {};
std::vector<AST_Node *> get_child() override;
};
class Return_Stmt_Node : public Stmt_Node {
public:
Leaf_Node *ret;
Exp_Node *exp;
Leaf_Node *semi;
explicit Return_Stmt_Node(Leaf_Node *ret, Exp_Node *exp, Leaf_Node *semi)
: ret{ret}, exp{exp}, semi{semi} {};
std::vector<AST_Node *> get_child() override;
};
class If_Stmt_Node : public Stmt_Node {
public:
Leaf_Node *_if;
Leaf_Node *lp;
Exp_Node *exp;
Leaf_Node *rp;
Stmt_Node *stmt_if;
Leaf_Node *_else;
Stmt_Node *stmt_else;
explicit If_Stmt_Node(Leaf_Node *if_, Leaf_Node *lp, Exp_Node *exp, Leaf_Node *rp, Stmt_Node *stmt_if,
Leaf_Node *_else = nullptr, Stmt_Node *stmt_else = nullptr)
: _if{if_}, lp{lp}, exp{exp},
rp{rp}, stmt_if{stmt_if},
_else{_else},
stmt_else{stmt_else} {};
std::vector<AST_Node *> get_child() override;
};
class While_Stmt_Node : public Stmt_Node {
public:
Leaf_Node *_while;
Leaf_Node *lp;
Exp_Node *exp;
Leaf_Node *rp;
Stmt_Node *stmt;
explicit While_Stmt_Node(Leaf_Node *_while, Leaf_Node *lp, Exp_Node *exp, Leaf_Node *rp, Stmt_Node *stmt)
: _while{_while}, lp{lp}, exp{exp}, rp{rp}, stmt{stmt} {};
std::vector<AST_Node *> get_child() override;
};
/* local definition */
class DefList_Node : public AST_Node {
public:
Def_Node *def;
DefList_Node *def_list;
DefList_Node(Def_Node *def, DefList_Node *def_list) : def{def}, def_list{def_list} {};
std::string to_string() override;
std::vector<AST_Node *> get_child() override;
};
class Empty_DefList_Node : public DefList_Node {
public:
Empty_DefList_Node() : DefList_Node(nullptr, nullptr) {};
std::string to_string() override;
std::vector<AST_Node *> get_child() override;
};
class Def_Node : public AST_Node {
public:
Specifier_Node *specifier;
DecList_Node *dec_list;
Leaf_Node *semi;
Def_Node(Specifier_Node *specifier, DecList_Node *dec_list, Leaf_Node *semi) : specifier{specifier},
dec_list{dec_list},
semi{semi} {};
std::string to_string() override;
std::vector<AST_Node *> get_child() override;
};
class DecList_Node : public AST_Node {
public:
Dec_Node *dec;
Leaf_Node *comma;
DecList_Node *dec_list;
explicit DecList_Node(Dec_Node *dec, Leaf_Node *comma = nullptr, DecList_Node *dec_list = nullptr)
: dec{dec}, comma{comma}, dec_list{dec_list} {};
std::string to_string() override;
std::vector<AST_Node *> get_child() override;
};
class Empty_DecList_Node : public DecList_Node {
public:
Empty_DecList_Node() : DecList_Node(nullptr, nullptr) {};
std::string to_string() override;
std::vector<AST_Node *> get_child() override;
};
class Dec_Node : public AST_Node {
public:
VarDec_Node *var_dec;
Leaf_Node *assign;
Exp_Node *exp;
explicit Dec_Node(VarDec_Node *var_dec, Leaf_Node *assign = nullptr, Exp_Node *exp = nullptr)
: var_dec{var_dec}, assign{assign}, exp{exp} {};
std::string to_string() override;
std::vector<AST_Node *> get_child() override;
};
/* Expression */
class Exp_Node : public AST_Node {
public:
std::string to_string() override;
};
class Parentheses_Exp_Node : public Exp_Node {
public:
Leaf_Node *lp;
Exp_Node *exp;
Leaf_Node *rp;
Parentheses_Exp_Node(Leaf_Node *lp, Exp_Node *exp, Leaf_Node *rp) : lp{lp}, exp{exp}, rp{rp} {};
std::vector<AST_Node *> get_child() override;
};
class ID_Parentheses_Exp_Node : public Exp_Node {
public:
Leaf_Node *id;
Leaf_Node *lp;
Args_Node *args;
Leaf_Node *rp;
ID_Parentheses_Exp_Node(Leaf_Node *id, Leaf_Node *lp, Args_Node *args, Leaf_Node *rp)
: id{id}, lp{lp}, args{args}, rp{rp} {};
ID_Parentheses_Exp_Node(Leaf_Node *id, Leaf_Node *lp, Leaf_Node *rp)
: id{id}, lp{lp}, args{nullptr}, rp{rp} {};
std::vector<AST_Node *> get_child() override;
};
class Bracket_Exp_Node : public Exp_Node {
public:
Exp_Node *exp1;
Leaf_Node *lb;
Exp_Node *exp2;
Leaf_Node *rb;
Bracket_Exp_Node(Exp_Node *exp1, Leaf_Node *lb, Exp_Node *exp2, Leaf_Node *rb)
: exp1{exp1}, lb{lb}, exp2{exp2}, rb{rb} {};
std::vector<AST_Node *> get_child() override;
};
class Dot_Exp_Node : public Exp_Node {
public:
Exp_Node *exp;
Leaf_Node *dot;
Leaf_Node *id;
Dot_Exp_Node(Exp_Node *exp, Leaf_Node *dot, Leaf_Node *id) : exp{exp}, dot{dot}, id{id} {};
std::vector<AST_Node *> get_child() override;
};
class Binary_Exp_Node : public Exp_Node {
public:
Exp_Node *left;
Leaf_Node *op_node;
Exp_Node *right;
Binary_Exp_Node(Exp_Node *left, Leaf_Node *op_type, Exp_Node *right)
: op_node{op_type}, left{left}, right{right} {};
std::vector<AST_Node *> get_child() override;
};
class Unary_Exp_Node : public Exp_Node {
public:
Leaf_Node *op_node;
Exp_Node *node;
Unary_Exp_Node(Leaf_Node *op_node, Exp_Node *node) : op_node{op_node}, node{node} {};
std::vector<AST_Node *> get_child() override;
};
class Leaf_Exp_Node : public Exp_Node {
public:
Leaf_Node *leaf;
explicit Leaf_Exp_Node(Leaf_Node *leaf) : leaf{leaf} {};
std::vector<AST_Node *> get_child() override;
};
class Args_Node : public AST_Node {
public:
Exp_Node *exp;
Leaf_Node *comma;
Args_Node *args;
explicit Args_Node(Exp_Node *exp, Leaf_Node *comma = nullptr, Args_Node *args = nullptr)
: exp{exp}, comma{comma}, args{args} {};
std::string to_string() override;
std::vector<AST_Node *> get_child() override;
};
/* Useful Function */
Leaf_Node *make_leaf(token_type leaf_type, Scan_Info *info);
Leaf_Node *make_leaf(token_type leaf_type, std::string lexeme, int line_no);
void print_ast(AST_Node *node, int indent_level = 0);
}
#endif //__AST_HPP__
| [
"11610127@mail.sustech.edu.cn"
] | 11610127@mail.sustech.edu.cn |
f5b81122e1712ccbc06f8f88fd0ec028e20b55e5 | ebd6f68d47e192da7f81c528312358cfe8052c8d | /decoders/swig/openfst-1.6.3/src/test/rand-fst.h | f2f34c67109e44518d9b404f67cda103f7cd6b7c | [
"Apache-2.0"
] | permissive | inishchith/DeepSpeech | 965ad34d69eb4d150ddf996d30d02a1b29c97d25 | dcb7c716bc794d7690d96ed40179ed1996968a41 | refs/heads/master | 2021-01-16T16:16:05.282278 | 2020-05-19T08:00:33 | 2020-05-19T08:00:33 | 243,180,319 | 1 | 0 | Apache-2.0 | 2020-02-26T05:54:51 | 2020-02-26T05:54:50 | null | UTF-8 | C++ | false | false | 2,502 | h | #ifndef FST_TEST_RAND_FST_H_
#define FST_TEST_RAND_FST_H_
#include <fst/log.h>
#include <fst/mutable-fst.h>
#include <fst/verify.h>
namespace fst {
// Generates a random FST.
template <class Arc, class WeightGenerator>
void RandFst(const int num_random_states, const int num_random_arcs,
const int num_random_labels, const float acyclic_prob,
WeightGenerator *weight_generator, MutableFst<Arc> *fst) {
typedef typename Arc::Label Label;
typedef typename Arc::StateId StateId;
typedef typename Arc::Weight Weight;
// Determines direction of the arcs wrt state numbering. This way we
// can force acyclicity when desired.
enum ArcDirection {
ANY_DIRECTION = 0,
FORWARD_DIRECTION = 1,
REVERSE_DIRECTION = 2,
NUM_DIRECTIONS = 3
};
ArcDirection arc_direction = ANY_DIRECTION;
if (rand() / (RAND_MAX + 1.0) < acyclic_prob)
arc_direction = rand() % 2 ? FORWARD_DIRECTION : REVERSE_DIRECTION;
fst->DeleteStates();
StateId ns = rand() % num_random_states;
if (ns == 0) return;
for (StateId s = 0; s < ns; ++s) fst->AddState();
StateId start = rand() % ns;
fst->SetStart(start);
size_t na = rand() % num_random_arcs;
for (size_t n = 0; n < na; ++n) {
StateId s = rand() % ns;
Arc arc;
arc.ilabel = rand() % num_random_labels;
arc.olabel = rand() % num_random_labels;
arc.weight = (*weight_generator)();
arc.nextstate = rand() % ns;
if ((arc_direction == FORWARD_DIRECTION ||
arc_direction == REVERSE_DIRECTION) &&
s == arc.nextstate) {
continue; // skips self-loops
}
if ((arc_direction == FORWARD_DIRECTION && s > arc.nextstate) ||
(arc_direction == REVERSE_DIRECTION && s < arc.nextstate)) {
StateId t = s; // reverses arcs
s = arc.nextstate;
arc.nextstate = t;
}
fst->AddArc(s, arc);
}
StateId nf = rand() % (ns + 1);
for (StateId n = 0; n < nf; ++n) {
StateId s = rand() % ns;
Weight final = (*weight_generator)();
fst->SetFinal(s, final);
}
VLOG(1) << "Check FST for sanity (including property bits).";
CHECK(Verify(*fst));
// Get/compute all properties.
uint64 props = fst->Properties(kFstProperties, true);
// Select random set of properties to be unknown.
uint64 mask = 0;
for (int n = 0; n < 8; ++n) {
mask |= rand() & 0xff;
mask <<= 8;
}
mask &= ~kTrinaryProperties;
fst->SetProperties(props & ~mask, mask);
}
} // namespace fst
#endif // FST_TEST_RAND_FST_H_
| [
"inishchith@gmail.com"
] | inishchith@gmail.com |
be0496747f66f18cbda1d34fb45bdde101935360 | 1faa14478c2318857e17382fd4b1c711b82f96ce | /mainwindow.cpp | 039ba47f8e9694e0d3d9ece8eee8d0e7e10db0fa | [] | no_license | indeema-bushko/qtsimplescada | 77f25a16683dc11454058f4c1e37149d5c06dbac | 15e244d5d93abf5b31933408726af2053c05365a | refs/heads/master | 2021-05-15T05:30:51.602969 | 2017-09-30T21:21:13 | 2017-09-30T21:21:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,267 | cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include "VSimpleScada/vobject.h"
#include "VSimpleScada/vboardinfo.h"
#include "VSimpleScada/ventity/vconnecteddeviceinfo.h"
#include <QDebug>
#include <QFileDialog>
#include <QTimer>
#include <QMessageBox>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
mBoard = ui->centralWidget;
mBoard->setEditable(true);
connect(mBoard, SIGNAL(objectSelected(VObject *)), this, SLOT(updateObjectInfoDialog(VObject *)));
connect(ui->widgetObjectParametrs, SIGNAL(deletePressed(VObjectInfo*)), this, SLOT(deleteObject(VObjectInfo *)));
connect(ui->widgetObjectParametrs, SIGNAL(savePressed(VObjectInfo*)), this, SLOT(updateSavedObject(VObjectInfo *)));
mObjectInfoDialog = ui->widgetObjectParametrs;
ui->centralWidget->setContextMenuPolicy(Qt::CustomContextMenu);
connect(ui->centralWidget, SIGNAL(customContextMenuRequested(const QPoint&)),this, SLOT(showContextMenu(const QPoint&)));
mTimer = new QTimer(this);
connect(mTimer, SIGNAL(timeout()), this, SLOT(updateStatus()));
mTimer->start(1000);
connect(ui->actionQuit, SIGNAL(triggered(bool)), this, SLOT(close()));
connect(ui->actionSave, SIGNAL(triggered(bool)), this, SLOT(save()));
connect(ui->actionOpen, SIGNAL(triggered(bool)), this, SLOT(open()));
}
MainWindow::~MainWindow()
{
delete mTimer;
delete ui;
}
void MainWindow::showContextMenu(const QPoint &pos)
{
bool lShowOrder = (mBoard->getSeletedObjects().count() > 0);
QMenu lContextMenu{this};
lContextMenu.addAction(tr("Add Object"), this, SLOT(addNewObject()));
QMenu *lOrder = lContextMenu.addMenu("Order");
lOrder->setEnabled(lShowOrder);
if (lShowOrder) {
lOrder->addAction(tr("Bring to front"), this, SLOT(bringToFront()));
lOrder->addAction(tr("Send to back"), this, SLOT(sendToBack()));
}
lContextMenu.exec(ui->centralWidget->mapToGlobal(pos));
}
void MainWindow::addNewObject()
{
if (mBoard->objects()->count() == 2) {
VObjectInfo *lInfo = new VObjectInfo();
lInfo->setId(2);
lInfo->setBackGroundImage(":/resources/some_structure.png");
lInfo->setShowBackgroundImage(true);
lInfo->setShowMarkers(false);
mBoard->createNewObject(lInfo);
} else {
mBoard->createNewObject();
}
}
void MainWindow::bringToFront()
{
if (!mBoard->getSeletedObjects().isEmpty()) {
VObject *lObject = mBoard->getSeletedObjects().first();
mBoard->bringToFront(lObject);
}
}
void MainWindow::sendToBack()
{
if (!mBoard->getSeletedObjects().isEmpty()) {
VObject *lObject = mBoard->getSeletedObjects().first();
mBoard->sendToBack(lObject);
}
}
void MainWindow::updateObjectInfoDialog(VObject *object)
{
if (object != nullptr) {
mObjectInfoDialog->updateWithObjectInfo(object->info());
} else {
mObjectInfoDialog->updateWithObjectInfo(nullptr);
}
}
void MainWindow::deleteObject(VObjectInfo *info)
{
if (info != nullptr) {
mBoard->deleteObjectWithId(info->id());
}
}
void MainWindow::updateSavedObject(VObjectInfo *info)
{
if (info != nullptr) {
mBoard->updateObjectWithId(info->id());
}
}
//this method is called with timer
//You can use it to update statuses ok markers.
void MainWindow::updateStatus()
{
int lNumber = 3;
int lRandomValue = qrand() % lNumber;
mBoard->updateStatusWithId(0, (VObjectStatus)lRandomValue);
lRandomValue = qrand() % lNumber;
mBoard->updateStatusWithId(1, (VObjectStatus)lRandomValue);
}
void MainWindow::save()
{
QFileDialog lDialog(this);
lDialog.setFileMode(QFileDialog::AnyFile);
lDialog.setAcceptMode(QFileDialog::AcceptSave);
lDialog.setDirectory(QDir::currentPath());
lDialog.setWindowTitle(tr("Save Project"));
lDialog.setNameFilter(tr("iReDS Project (*.irp)"));
VBoardInfo *lBoardInfo = new VBoardInfo();
VBoardController *lController = new VBoardController();
VDeviceInfo lDeviceInfo;
if (lDialog.exec() == QDialog::Accepted) {
QStringList lFiles = lDialog.selectedFiles();
if (lFiles.count() > 0) {
QString lFileName = lFiles.at(0);
if (!lFileName.contains(".irp")) {
lFileName.append(".irp");
}
QStringList lIps;
for (VObject *object :*mBoard->objects()) {
lBoardInfo->appendObjectInfo(object->info());
}
QList<VBoardInfo*> lBoardInfoList;
lBoardInfoList.append(lBoardInfo);
lController->initConnectedDevices(lBoardInfoList);
lDeviceInfo.setName("Test Device");
lDeviceInfo.setIp(QHostAddress("127.0.0.0"));
QList<VDeviceInfo> lList;
lList.append(lDeviceInfo);
QString lDevices = VConnectedDeviceInfo::XMLFromDeviceInfo(lList, lController); //<----;
//create xml for boards of each device
QFile lFile(lFileName);
if (lFile.open(QIODevice::WriteOnly | QIODevice::Text)) {
QTextStream lOut(&lFile);
lOut.setCodec("UTF-8");
lOut << lDevices;
} else {
QString lMessage(tr("Something went wrong while trying to create file"));
lMessage.append(" ").append(lFileName);
QMessageBox lMsgBox;
lMsgBox.setText(lMessage);
lMsgBox.exec();
}
lFile.close();
qDeleteAll(lBoardInfoList);
}
}
delete lController;
mBoard->setEditable(true);
}
void MainWindow::open()
{
QString lFileName = QFileDialog::getOpenFileName(this,
tr("Open Project"), QDir::currentPath(), tr("iReDS Project (*.irp)"));
if (!lFileName.isEmpty()) {
mObjectInfoDialog->updateWithObjectInfo(nullptr);
for (VObject *object : *mBoard->objects()) {
mBoard->deleteObject(object);
}
VConnectedDeviceInfo* lConnectedDevceInfo = new VConnectedDeviceInfo();
QByteArray lRawData;
QFile lFile(lFileName);
if (lFile.open(QIODevice::ReadOnly | QIODevice::Text)) {
QTextStream lStreamFileOut(&lFile);
lStreamFileOut.setCodec("UTF-8");
lRawData = lStreamFileOut.readAll().toUtf8();
lFile.close();
lConnectedDevceInfo->initFromXml(lRawData);
for (int i = 0; i < lConnectedDevceInfo->connecteDeviceList.count(); ++i) {
for (VBoardInfo *boardInfo : lConnectedDevceInfo->connecteDeviceList.at(i)->boardList) {
if (boardInfo != nullptr) {
mBoard->setEditable(false);
for (VObjectInfo *info : boardInfo->objectList()) {
mBoard->createNewObject(info);
}
}
}
}
mBoard->update();
mBoard->setEditable(true);
} else {
qDebug() << " - Error open preferences file -> " << lFile.fileName();
}
delete lConnectedDevceInfo;
}
}
| [
"volodymyr.shevchyk@indeema.com"
] | volodymyr.shevchyk@indeema.com |
86c9efca49bc54759ac4a4159f90d86351b46113 | 18488c64ea8073545133e78a884cac4d6669ccf0 | /contest/Contest3/bai8.cpp | 651a6a7f9fbb62811e86efe6dab4d5e6ab9bf180 | [] | no_license | manhtung001/Datastructure-Algorithm-PTIT | f6b1c3bbc2476af3989b8796696dbbb7750e91fe | c41a344d4fbfd92bf587eac14861568d2029321b | refs/heads/master | 2023-06-24T07:19:33.970580 | 2021-07-21T13:44:54 | 2021-07-21T13:44:54 | 344,992,505 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 592 | cpp | #include<bits/stdc++.h>
using namespace std;
struct Job{
int start;
int finish;
};
bool compare(Job s1, Job s2){
return (s1.finish < s2.finish);
}
void solution(Job arr[], int n){
sort(arr, arr+n, compare);
int k = 1;
int i = 0;
for (int j = 1; j < n ; j++){
if (arr[j].start >= arr[i].finish){
k++;
i = j;
}
}
cout << k << endl;
}
int main(){
struct Job arr[1005];
int t, n ; cin >> t;
while(t--){
cin >> n;
for (int i = 0; i < n; i++) cin >> arr[i].start;
for (int i = 0; i < n; i++) cin >> arr[i].finish;
solution(arr, n);
}
}
| [
"khongtung001@gmail.com"
] | khongtung001@gmail.com |
202c06aac866efe4490b7ac903e9ac0f6684dee7 | fd5e6ea643853dacc1ff5c6ed99d1d7cd26d50fa | /base_obj.h | dac8d226f670f9fce83eb8beb585718bc9a161af | [] | no_license | swelgan/membles | dec0a268364b1058f4b7af3110b6422d35b5a106 | 572e310562e080c40921658ec2639ba122faeefd | refs/heads/master | 2020-05-18T06:00:43.784084 | 2014-06-26T05:19:03 | 2014-06-26T05:19:03 | 20,864,788 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,513 | h | /* Copyright (c) 2014, Jue Wang
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef BASE_OBJ_H
#define BASE_OBJ_H
#include <fstream>
#include "controller_config.h"
#include "device_config.h"
namespace membles
{
class BaseObj
{
public:
BaseObj()
: log_(NULL),
csv_(NULL),
trc_(NULL),
cycle_(0),
busy_(false),
verbose_(false)
{}
virtual void step() = 0;
Cycle cycle() const { return cycle_; }
bool busy() const { return busy_; }
void set_verbose() { verbose_ = true; }
protected:
// log output
ofstream *log_;
// csv output
ofstream *csv_;
// trace output
ofstream *trc_;
// current simulated cycle
Cycle cycle_;
// busy doing something
bool busy_;
// verbosity
bool verbose_;
};
class MemObj : public BaseObj
{
public:
MemObj()
: BaseObj(),
ctrl_cfg_(NULL),
dev_cfg_(NULL)
{}
bool init(CtrlCfg *ctrl_cfg, DevCfg *dev_cfg,
ofstream *log, ofstream *csv, ofstream *trc);
protected:
// controller configuration (global)
CtrlCfg *ctrl_cfg_;
// device configuration (per-channel)
DevCfg *dev_cfg_;
};
}
#endif
| [
"swelgan@gmail.com"
] | swelgan@gmail.com |
ad09ffaf4860d925feaca2fdd4799097fb8d6191 | 91a882547e393d4c4946a6c2c99186b5f72122dd | /Source/XPSP1/NT/admin/darwin/src/msitools/orca/valpp.cpp | 0858630caf1fa9d8ab228772f201a956c8d68df2 | [] | no_license | IAmAnubhavSaini/cryptoAlgorithm-nt5src | 94f9b46f101b983954ac6e453d0cf8d02aa76fc7 | d9e1cdeec650b9d6d3ce63f9f0abe50dabfaf9e2 | refs/heads/master | 2023-09-02T10:14:14.795579 | 2021-11-20T13:47:06 | 2021-11-20T13:47:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,046 | cpp | //+-------------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 1998
//
//--------------------------------------------------------------------------
// ValPage.cpp : implementation file
//
#include "stdafx.h"
#include "orca.h"
#include "ValPP.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CValPropPage property page
IMPLEMENT_DYNCREATE(CValPropPage, CPropertyPage)
CValPropPage::CValPropPage() : CPropertyPage(CValPropPage::IDD)
{
//{{AFX_DATA_INIT(CValPropPage)
m_strICEs = _T("");
m_bSuppressInfo = FALSE;
m_bSuppressWarn = FALSE;
m_bClearResults = FALSE;
//}}AFX_DATA_INIT
m_bValChange = false;
}
CValPropPage::~CValPropPage()
{
}
extern bool InitCUBCombo(CComboBox *pBox, CString strDefault);
extern bool FreeCUBCombo(CComboBox *pBox);
void CValPropPage::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CValPropPage)
DDX_Text(pDX, IDC_RUNICE, m_strICEs);
DDX_Check(pDX, IDC_SUPPRESSINFO, m_bSuppressInfo);
DDX_Check(pDX, IDC_SUPPRESSWARNING, m_bSuppressWarn);
DDX_Control(pDX, IDC_VALDIR, m_ctrlCUBFile);
DDX_Check(pDX, IDC_CLEARRESULTS, m_bClearResults);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CValPropPage, CPropertyPage)
//{{AFX_MSG_MAP(CValPropPage)
ON_WM_DESTROY()
ON_EN_CHANGE(IDC_RUNICE, OnChange)
ON_BN_CLICKED(IDC_SUPPRESSINFO, OnChange)
ON_BN_CLICKED(IDC_SUPPRESSWARNING, OnChange)
ON_CBN_SELCHANGE(IDC_VALDIR, OnChange)
ON_CBN_EDITCHANGE(IDC_VALDIR, OnChange)
ON_BN_CLICKED(IDC_WARNSUMM, OnChange)
ON_BN_CLICKED(IDC_CLEARRESULTS, OnChange)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CValPropPage message handlers
void CValPropPage::OnChange()
{
m_bValChange = true;
}
BOOL CValPropPage::OnInitDialog()
{
CComboBox* pBox = (CComboBox*)GetDlgItem(IDC_VALDIR);
InitCUBCombo(pBox, m_strCUBFile);
return TRUE;
}
BOOL CValPropPage::OnKillActive()
{
CComboBox* pBox = (CComboBox*)GetDlgItem(IDC_VALDIR);
int iIndex = pBox->GetCurSel();
if (CB_ERR == iIndex)
{
// no qualified component was chosen, explicit path
pBox->GetWindowText(m_strCUBFile);
}
else
{
// qualified component was chosen. Get the qualifier
DWORD cchCUBFile = MAX_PATH;
TCHAR *szQualifier = static_cast<TCHAR*>(pBox->GetItemDataPtr(iIndex));
m_strCUBFile = TEXT(":");
m_strCUBFile += szQualifier;
}
return CPropertyPage::OnKillActive();
}
void CValPropPage::OnDestroy()
{
FreeCUBCombo(&m_ctrlCUBFile);
CWnd::OnDestroy();
}
IMPLEMENT_DYNCREATE(CMsmPropPage, CPropertyPage)
CMsmPropPage::CMsmPropPage() : CPropertyPage(CMsmPropPage::IDD)
{
//{{AFX_DATA_INIT(CMsmPropPage)
m_iMemoryCount = 3;
m_bWatchLog = FALSE;
m_bAlwaysConfig = FALSE;
//}}AFX_DATA_INIT
m_bMSMChange = false;
}
CMsmPropPage::~CMsmPropPage()
{
}
void CMsmPropPage::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CMsmPropPage)
DDX_Text(pDX, IDC_MEMORY, m_iMemoryCount);
DDX_Check(pDX, IDC_WATCHLOG, m_bWatchLog);
DDX_Check(pDX, IDC_ALWAYSCONFIG, m_bAlwaysConfig);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CMsmPropPage, CPropertyPage)
//{{AFX_MSG_MAP(CMsmPropPage)
ON_EN_CHANGE(IDC_MEMORY, OnChange)
ON_BN_CLICKED(IDC_WATCHLOG, OnChange)
ON_BN_CLICKED(IDC_ALWAYSCONFIG, OnChange)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
void CMsmPropPage::OnChange()
{
m_bMSMChange = true;
}
BOOL CMsmPropPage::OnInitDialog()
{
// can't watch the merge log on Win9X due to lack of pipe support.
OSVERSIONINFOA osviVersion;
osviVersion.dwOSVersionInfoSize = sizeof(OSVERSIONINFOA);
::GetVersionExA(&osviVersion); // fails only if size set wrong
if (osviVersion.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS)
{
CButton* pCheck = (CButton*)GetDlgItem(IDC_WATCHLOG);
if (pCheck)
pCheck->EnableWindow(FALSE);
}
UpdateData(FALSE);
return TRUE;
}
| [
"support@cryptoalgo.cf"
] | support@cryptoalgo.cf |
88359f2ee29e3667145478820769a81a271270d4 | 2860ff476bcb2eed8f579bd9f11e905703927a1c | /backends/analysis/analysis.cpp | bc42d94d5010d8c2b17c0f32794635caee31af84 | [
"Apache-2.0"
] | permissive | eduardocoelholima/bf4 | 72a44f768b0e5082430e2dfc4a5e849ce411043c | 2e15e50acc4314737d99093b3d900fa44d795958 | refs/heads/master | 2023-01-23T08:13:25.373185 | 2020-11-25T11:00:35 | 2020-11-25T11:00:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 26,178 | cpp | //
// Created by dragos on 27.09.2018.
//
#include "analysis.h"
#include "DependencyGraph.h"
#include "ExternSpecialization.h"
#include "HandleHeaders.h"
#include "HandleStacks.h"
#include "ImplementPacket.h"
#include "InlineActionsInControls.h"
#include "InstantiatePackageModels.h"
#include "Interpreter.h"
#include "MakeImplementations.h"
#include "MakeStateless.h"
#include "PackageSpecialization.h"
#include "RemoveBuiltins.h"
#include "RemoveTableCalls.h"
#include "RenameMethods.h"
#include "RenderTemplate.h"
#include "SpecializeExternFunctions.h"
#include "fixes.h"
#include "infer.h"
#include "instrumentation_helper.h"
#include "sovler.h"
#include "v1_integrator.h"
#include "vTypeChecker.h"
#include <analysis/analysis_server/DatabaseServer.h>
#include <analysis/analysis_server/ProgramDatabase.h>
#include <analysis/commands/CommandParser.h>
#include <analysis/commands/InstantiateCommands.h>
#include <analysis/mutexhdrs/MutexInstrument.h>
#include <analysis/ub/BugReport.h>
#include <analysis/ub/ExplicitUB.h>
#include <common/applyOptionsPragmas.h>
#include <common/parseInput.h>
#include <graphs/controls.h>
#include <graphs/parsers.h>
#include <lib/crash.h>
#include <midend/complexComparison.h>
#include <midend/copyStructures.h>
#include <midend/eliminateTuples.h>
#include <midend/expandEmit.h>
#include <midend/nestedStructs.h>
#include <midend/parserUnroll.h>
#include <p4/actionsInlining.h>
#include <p4/createBuiltins.h>
#include <p4/inlining.h>
#include <p4/removeReturns.h>
#include <p4/simplifyDefUse.h>
#include <p4/toP4/toP4.h>
#include <analysis/tofino/TofinoIntegration.h>
#include <analysis/ub/bmv2/EgressSpecNotSet.h>
#include <thrift/protocol/TBinaryProtocol.h>
#include <thrift/server/TSimpleServer.h>
#include <thrift/transport/TBufferTransports.h>
#include <thrift/transport/TServerSocket.h>
#undef __PROFILE__
#ifdef __PROFILE__
#include <valgrind/callgrind.h>
#endif
using namespace ::apache::thrift;
using namespace ::apache::thrift::protocol;
using namespace ::apache::thrift::transport;
using namespace ::apache::thrift::server;
using boost::shared_ptr;
using namespace ::p4_thrift;
namespace analysis {
class AF4Frontend {
Options &options;
P4::ReferenceMap refMap;
P4::TypeMap typeMap;
public:
AF4Frontend(Options &options) : options(options) {}
const IR::P4Program *run(const IR::P4Program *parsedProgram) {
P4::ParseAnnotations::HandlerMap handlers = {PARSE("model", Expression),
PARSE("impl", Expression)};
P4::ParseAnnotations pe("analysis", true, handlers, true);
auto pab = new ParseAnnotationBodies(&pe, &typeMap);
auto thisevaluator = new P4::Evaluator(&refMap, &typeMap);
std::ofstream logger("log.p4");
PassManager passManager(
{pab,
new P4::CreateBuiltins(),
new CreateAnalysisHelpers(),
new DoCreateMutablePacket(),
new DoAddErrorField,
new P4::UniqueNames(&refMap),
new P4::MoveDeclarations(),
new P4::MoveInitializers(),
new P4::ResolveReferences(&refMap),
new P4::TypeInference(&refMap, &typeMap, false),
new RenameParameters(&refMap, &typeMap),
new analysis::CastReplace(&refMap, &typeMap),
new P4::RemoveReturns(&refMap),
new P4::ResolveReferences(&refMap),
new P4::TypeInference(&refMap, &typeMap, false),
new PassRepeated({new analysis::RemoveTypedefs(&refMap, &typeMap)}),
new P4::ClearTypeMap(&typeMap),
new P4::ResolveReferences(&refMap),
new P4::TypeInference(&refMap, &typeMap, false),
new HandleHeaders(&refMap, &typeMap),
new PacketExtract(&refMap, &typeMap),
new ImplementPacket(&refMap, &typeMap),
new analysis::RemoveTypedefs(&refMap, &typeMap),
new P4::ClearTypeMap(&typeMap),
new P4::ResolveReferences(&refMap),
new P4::TypeInference(&refMap, &typeMap, false),
new MaterializeConstants(&refMap, &typeMap),
new analysis::Normalize(&refMap, &typeMap),
new analysis::MoveReturnsInward(&refMap, &typeMap),
new analysis::HandleArrayIndices(&refMap, &typeMap),
new analysis::MakeMultiAssign(&refMap, &typeMap),
new analysis::SplitInouts(&refMap, &typeMap),
new analysis::DisentangleExternParams(&refMap, &typeMap),
new P4::ToP4(&logger, false)});
if (options.generatePacket.isNullOrEmpty()) {
} else {
// model check
bug_report_options bug_report_options;
bug_report_options.packet_file = options.generatePacket;
passManager.addPasses(
{new BugReport(&refMap, &typeMap, bug_report_options)});
}
passManager.addPasses({thisevaluator});
passManager.setName("AF4Frontend");
passManager.addDebugHook(options.getDebugHook(), true);
passManager.setStopOnError(true);
parsedProgram = parsedProgram->apply(passManager);
return parsedProgram;
}
};
class RenderBackend : public PassManager {
Options &options;
P4::ReferenceMap refMap;
P4::TypeMap typeMap;
public:
RenderBackend(Options &options) : options(options) {
setName("RenderBackend");
std::ifstream f(options.integrationTemplate);
if (!f.good()) {
BUG("integration template %1% doesn't exist",
options.integrationTemplate);
}
f.close();
addPasses(
{new P4::ResolveReferences(&refMap),
new P4::TypeInference(&refMap, &typeMap, false),
new DoCreateMutablePacket, new CreateAnalysisHelpers,
new RenderTemplate(&refMap, &typeMap, options.integrationTemplate,
options.renderIntegration)});
}
};
class InstrumentBackend : public PassManager {
Options &options;
P4::ReferenceMap refMap;
P4::TypeMap typeMap;
START(instrumentation);
END(instrumentation);
std::ofstream dump_to;
public:
InstrumentBackend(Options &options)
: options(options), dump_to(options.dump_instrumented) {
BUG_CHECK(!options.dump_instrumented.isNullOrEmpty(),
"expecting option --dump-instrument");
setName("InstrumentBackend");
auto evaluator = new P4::EvaluatorPass(&refMap, &typeMap);
passes.push_back(
new VisitFunctor([this]() { START_ASG(instrumentation); }));
addPasses({new P4::ResolveReferences(&refMap),
new P4::TypeInference(&refMap, &typeMap, false)});
addPasses({new CreateAnalysisHelpers});
passes.push_back(new P4::RemoveLeftSlices(&refMap, &typeMap));
passes.push_back(evaluator);
passes.push_back(new RemoveV1Controls(&refMap, &typeMap));
passes.push_back(new GenerateAssertions(
&refMap, &typeMap, options.instrument_keys, options.instrument_ifs));
passes.push_back(new P4::ExpandEmit(&refMap, &typeMap));
for (auto &p : options.parser_invariants) {
passes.push_back(
new MutexInstrument(&refMap, &typeMap, p.first, p.second));
}
// bmv2 specific instrumentation
addPasses({new P4::ClearTypeMap(&typeMap),
new P4::ResolveReferences(&refMap),
new P4::TypeInference(&refMap, &typeMap, false)});
passes.push_back(new EgressSpecNotSet(&refMap, &typeMap));
passes.push_back(new RegistersOutOfBounds(&refMap, &typeMap));
passes.push_back(new TofinoBugs(&refMap, &typeMap));
passes.push_back(new P4::ToP4(&dump_to, false));
passes.push_back(new VisitFunctor([this]() {
END_ASG(instrumentation);
LOG3("instrumentation time " << DURATION(instrumentation));
}));
}
};
class ExpandBackend : public PassManager {
Options &options;
P4::ReferenceMap refMap;
P4::TypeMap typeMap;
std::ofstream dump_to;
public:
ExpandBackend(Options &options)
: options(options), dump_to(options.expand_to) {
setName("ExpandBackend");
auto evaluator = new P4::EvaluatorPass(&refMap, &typeMap);
addPasses({new P4::ResolveReferences(&refMap),
new P4::TypeInference(&refMap, &typeMap, false)});
addPasses({new CreateAnalysisHelpers});
passes.push_back(new RemoveV1Controls(&refMap, &typeMap));
passes.push_back(new MakePopulatedTables(&refMap, &typeMap));
passes.push_back(new RemoveTableCalls(&refMap, &typeMap));
passes.push_back(new HandleStacks(&refMap, &typeMap));
passes.push_back(evaluator);
passes.push_back(new P4::Inline(&refMap, &typeMap, evaluator));
passes.push_back(new P4::InlineActions(&refMap, &typeMap));
passes.push_back(new P4::InlineActionsInControls(&refMap, &typeMap));
passes.push_back(evaluator);
passes.push_back(new P4::ToP4(&dump_to, false));
}
};
class CommandsBackend : public PassManager {
Options &options;
P4::ReferenceMap refMap;
P4::TypeMap typeMap;
std::ofstream dump_to;
public:
CommandsBackend(Options &options)
: options(options), dump_to(options.slash_file) {
setName("CommandsBackend");
BUG_CHECK(!options.slash_file.isNullOrEmpty(),
"expecting --slash-file option");
analysis::CommandParser cmdparser;
auto cmds = cmdparser.readCommands(options.commands);
auto all = new Commands(std::move(cmds));
addPasses({new P4::ResolveReferences(&refMap),
new P4::TypeInference(&refMap, &typeMap, false),
new InstantiateCommands(&refMap, &typeMap, *all)});
passes.push_back(new ToP4(&dump_to, false));
}
};
class AF4Backend : public PassManager {
Options &options;
P4::ReferenceMap refMap;
P4::TypeMap typeMap;
public:
AF4Backend(Options &options) : options(options) {
setName("AF4Backend");
// af4
addPasses({new P4::ResolveReferences(&refMap),
new P4::TypeInference(&refMap, &typeMap, false)});
if (options.serverAddress) {
addPasses({new VisitFunctor([&](const IR::Node *prog) {
analysis::ProgramDatabase programDatabase(
&refMap, &typeMap, prog->to<IR::P4Program>(), "run");
std::shared_ptr<DatabaseServer> handler(
new analysis::DatabaseServer(&programDatabase));
std::shared_ptr<TProcessor> processor(new p4_serviceProcessor(handler));
std::shared_ptr<TServerTransport> serverTransport(new TServerSocket(
options.serverAddress->first, options.serverAddress->second));
std::shared_ptr<TTransportFactory> transportFactory(
new TBufferedTransportFactory());
std::shared_ptr<TProtocolFactory> protocolFactory(
new TBinaryProtocolFactory());
TSimpleServer server(processor, serverTransport, transportFactory,
protocolFactory);
server.serve();
return prog;
})});
} else {
addPasses({new ExplicitUB(&refMap, &typeMap)});
}
}
};
class MidEnd : public PassManager {
public:
START(instrumentation);
END(instrumentation);
P4::ReferenceMap refMap;
P4::TypeMap typeMap;
IR::ToplevelBlock *toplevel = nullptr;
std::set<const IR::P4Action *> sureFailures;
std::set<const IR::Statement *> uselessStatements;
std::set<const IR::P4Action *> uselessActions;
const IR::P4Program *old_prog = nullptr;
std::ofstream *fix_file = nullptr;
explicit MidEnd(Options &options) {
bool isv1 = options.langVersion == CompilerOptions::FrontendVersion::P4_14;
refMap.setIsV1(isv1);
auto evaluator = new P4::EvaluatorPass(&refMap, &typeMap);
passes.push_back(new TypeChecking(&refMap, &typeMap));
passes.push_back(
new VisitFunctor([this](const IR::Node *program) -> const IR::Node * {
BUG_CHECK(program->is<IR::P4Program>(), "expected P4Program %1%",
program);
return (old_prog = program->to<IR::P4Program>());
}));
if (!options.renderIntegration.isNullOrEmpty()) {
if (!options.no_instrument) {
passes.push_back(
new VisitFunctor([this]() { START_ASG(instrumentation); }));
passes.push_back(new P4::RemoveLeftSlices(&refMap, &typeMap));
passes.push_back(evaluator);
passes.push_back(new GenerateAssertions(&refMap, &typeMap,
options.instrument_keys,
options.instrument_ifs));
passes.push_back(new P4::ExpandEmit(&refMap, &typeMap));
for (auto &p : options.parser_invariants) {
passes.push_back(
new MutexInstrument(&refMap, &typeMap, p.first, p.second));
}
passes.push_back(new RemoveTableCalls(&refMap, &typeMap));
passes.push_back(new HandleStacks(&refMap, &typeMap));
passes.push_back(evaluator);
passes.push_back(new P4::Inline(&refMap, &typeMap, evaluator));
passes.push_back(new P4::InlineActions(&refMap, &typeMap));
passes.push_back(new P4::InlineActionsInControls(&refMap, &typeMap));
passes.push_back(evaluator);
passes.push_back(new VisitFunctor([this]() {
END_ASG(instrumentation);
LOG3("instrumentation time " << DURATION(instrumentation));
}));
// passes.push_back(new RenameMethods(&refMap, &typeMap));
}
passes.push_back(new DoCreateMutablePacket);
passes.push_back(new CreateAnalysisHelpers);
passes.push_back(new RenderTemplate(&refMap, &typeMap,
options.integrationTemplate,
options.renderIntegration));
if (!options.render_only) {
passes.push_back(new VisitFunctor([&, this]() {
auto old = options.file;
options.file = options.renderIntegration;
auto parsedProgram = P4::parseP4File(options);
AF4Frontend frontend(options);
frontend.run(parsedProgram);
options.file = old;
}));
}
passes.push_back(evaluator);
} else if (!options.spec.isNullOrEmpty()) {
if (!options.fixes.isNullOrEmpty()) {
passes.push_back(
new ToP4(new std::ofstream(options.fixes + ".orig"), false));
}
passes.push_back(new PrintTableStats());
if (!options.dump_instrumented.isNullOrEmpty()) {
passes.push_back(
new ToP4(new std::ofstream(options.dump_instrumented), false));
}
if (!options.instrument_only && !options.verify_only)
passes.push_back(new Infer(&refMap, &typeMap, options.spec, old_prog,
options.fixes, options.optimize));
if (options.verify_only)
passes.push_back(new Verify(&refMap, &typeMap, options.p4v_style,
options.vera_style));
} else if (options.commands) {
analysis::CommandParser cmdparser;
auto cmds = cmdparser.readCommands(options.commands);
auto all = new Commands(std::move(cmds));
passes.push_back(new InstantiateCommands(&refMap, &typeMap, *all));
passes.push_back(new RemoveTableCalls(&refMap, &typeMap));
passes.push_back(evaluator);
passes.push_back(new P4::Inline(&refMap, &typeMap, evaluator));
passes.push_back(new P4::InlineActions(&refMap, &typeMap));
passes.push_back(new P4::InlineActionsInControls(&refMap, &typeMap));
passes.push_back(evaluator);
}
addPasses({evaluator, new VisitFunctor([this, evaluator]() {
toplevel = evaluator->getToplevelBlock();
})});
setName("AnalyzerMidEnd");
}
IR::ToplevelBlock *process(const IR::P4Program *&program) {
program = program->apply(*this);
return toplevel;
}
};
analysis::Options::Options() {
registerOption("--use-packet", nullptr,
[this](const char *) {
usePacket = true;
return true;
},
"use rich packet model with z3 support");
registerOption("--serve", nullptr,
[this](const char *) {
serve = true;
serverAddress = std::make_pair<std::string, unsigned>(
"localhost", 12345);
return true;
},
"start server");
registerOption("--server-address", "server_address",
[this](const char *arg) {
std::vector<std::string> split;
boost::split(split, arg, boost::is_any_of(":"));
unsigned port = 12345;
if (split.size() > 1) {
port =
static_cast<unsigned int>(std::atoi(split[1].c_str()));
}
serverAddress = std::make_pair(split[0], port);
return true;
},
"dump packet here");
registerOption("--generate-packet", "file",
[this](const char *arg) {
generatePacket = arg;
return true;
},
"dump packet here");
registerOption("--commands", "file",
[this](const char *arg) {
commands = arg;
return true;
},
"takes as input a commands file and outputs slashed program "
"to slash_file");
registerOption("--render-integration", "file",
[this](const char *arg) {
renderIntegration = arg;
return true;
},
"dump integration code");
registerOption("--no-slice", nullptr,
[this](const char *) {
noslice = true;
return true;
},
"don't use slicing anymore");
registerOption("--no-instrument", nullptr,
[this](const char *) {
no_instrument = true;
return true;
},
"don't instrument");
registerOption("--render-only", nullptr,
[this](const char *) {
render_only = true;
return true;
},
"only render template, no af4 run");
registerOption("--alias-instrument", "alias",
[this](const char *arg) {
std::string x = arg;
auto comma = x.find(',');
if (comma != std::string::npos) {
auto parser = x.substr(0, comma);
auto control = x.substr(comma + 1);
parser_invariants.emplace_back(parser, control);
}
return true;
},
"do instrumentation for a pair of parser,control. The "
"format is parsername,control");
registerOption(
"--integration-template", "file",
[this](const char *arg) {
integrationTemplate = arg;
return true;
},
"integration template to render (default: ./psa_integration.p4");
registerOption("--cleanup-tofino", "file",
[this](const char *arg) {
cleanupTofino = arg;
return true;
},
"cleanup tofino program - i.e. remove RegisterAction");
registerOption("--optimize", nullptr,
[this](const char *) {
optimize = true;
return true;
},
"try to optimize inference algo\n");
registerOption("--verify-only", nullptr,
[this](const char *) {
verify_only = true;
return true;
},
"only run verification pass\n");
registerOption("--vera-style", nullptr,
[this](const char *) {
vera_style = true;
return true;
},
"only run verification pass\n");
registerOption("--no-p4v-style", nullptr,
[this](const char *) {
p4v_style = false;
return true;
},
"only run verification pass\n");
registerOption("--with-defaults", nullptr,
[this](const char *) {
with_defaults = true;
return true;
},
"case split on default actions\n");
registerOption("--instrument-only", nullptr,
[this](const char *) {
instrument_only = true;
return true;
},
"only do instrumentation and stop\n");
registerOption(
"--expand-to", "expanded",
[this](const char *f) {
expand_to = f;
return true;
},
"enable table call expansion and friends and dump to expanded\n");
registerOption("--revive-packet", nullptr,
[this](const char *) {
handle_revived = true;
return true;
},
"instrument packet revived bug - i.e. set egress spec after "
"packet has been dropped\n");
registerOption("--slash-file", "slash_file",
[this](const char *arg) {
slash_file = arg;
return true;
},
"csv file which describes inhibited parser transitions"
"(default is no file = all transitions allowed)\n");
registerOption("--slash-generate", nullptr,
[this](const char *) {
slash_generate = true;
return true;
},
"csv file which describes inhibited parser transitions"
"(default is no file = all transitions allowed)\n");
registerOption("--fixes", "fixes",
[this](const char *arg) {
fixes = arg;
return true;
},
"output file after fixing is complete"
"(default is no file = no analysis to be performed)\n");
registerOption("--infer", "infer_file",
[this](const char *arg) {
spec = arg;
return true;
},
"output controller spec file"
"(default is no file = no analysis to be performed)\n");
registerOption("--without-keys", nullptr,
[this](const char *) {
instrument_keys = false;
return true;
},
"instrument table keys"
"(default is true)\n");
registerOption("--without-ifs", nullptr,
[this](const char *) {
instrument_ifs = false;
return true;
},
"stop if instrumentation"
"(default is true)\n");
registerOption("--with-control", nullptr,
[this](const char *) {
with_control = true;
return true;
},
"instrument instructions in control flow"
"(default is false)\n");
registerOption("--dump-instrumented", "dump_instrumented",
[this](const char *arg) {
dump_instrumented = arg;
return true;
},
"instrument instructions in control flow"
"(default is false)\n");
}
}; // end analysis
int main(int argc, char **argv) {
setup_gc_logging();
setup_signals();
AutoCompileContext autoAnalysisContext(new ::analysis::AnalysisContext);
auto &options = ::analysis::AnalysisContext::get().options();
options.langVersion = CompilerOptions::FrontendVersion::P4_16;
options.compilerVersion = "0.0.5";
if (options.process(argc, argv) != nullptr)
options.setInputFile();
if (::errorCount() > 0)
return 1;
auto hook = options.getDebugHook();
auto program = P4::parseP4File(options);
if (program == nullptr || ::errorCount() > 0)
return 1;
try {
P4::P4COptionPragmaParser optionsPragmaParser;
program->apply(P4::ApplyOptionsPragmas(optionsPragmaParser));
P4::ParseAnnotations::HandlerMap handlers = {PARSE("model", Expression)};
P4::ParseAnnotations pe("analysis", true, handlers, true);
if (!options.renderIntegration.isNullOrEmpty() ||
!options.commands.isNullOrEmpty() ||
!options.dump_instrumented.isNullOrEmpty() ||
!options.expand_to.isNullOrEmpty() ||
!options.cleanupTofino.isNullOrEmpty()) {
P4::FrontEnd fe(pe);
fe.addDebugHook(hook);
program = fe.run(options, program);
if (program == nullptr || ::errorCount() > 0)
return 1;
PassManager *be = nullptr;
if (!options.cleanupTofino.isNullOrEmpty()) {
BUG("tofino backend is not implemented in this version");
be = new analysis::CleanupTofinoBackend(options.cleanupTofino);
} else if (!options.renderIntegration.isNullOrEmpty()) {
be = new analysis::RenderBackend(options);
} else if (!options.commands.isNullOrEmpty()) {
be = new analysis::CommandsBackend(options);
} else if (!options.dump_instrumented.isNullOrEmpty()) {
be = new analysis::InstrumentBackend(options);
} else if (!options.expand_to.isNullOrEmpty()) {
be = new analysis::ExpandBackend(options);
} else {
BUG("");
}
be->addDebugHook(hook, true);
program = program->apply(*be);
} else {
START(front);
#ifdef __PROFILE__
CALLGRIND_START_INSTRUMENTATION;
#endif
std::cerr << "starting frontend\n";
analysis::AF4Frontend fe(options);
program = fe.run(program);
#ifdef __PROFILE__
CALLGRIND_STOP_INSTRUMENTATION;
CALLGRIND_DUMP_STATS;
#endif
END(front);
if (program == nullptr || ::errorCount() > 0)
return 1;
std::cerr << "frontend done in " << DURATION(front) << "ms\n";
// af4
analysis::AF4Backend backend(options);
program->apply(backend);
}
if (program == nullptr || ::errorCount() > 0)
return 1;
} catch (const Util::P4CExceptionBase &bug) {
std::cerr << bug.what() << std::endl;
return 1;
}
return 0;
}
| [
"dragos.dumitrescu92@gmail.com"
] | dragos.dumitrescu92@gmail.com |
032dac60655f61423c541e14f894f3a53169ff71 | aed4b83a53ddc1b2fbc150294845b13dc78768c7 | /ETradeUserInfo.cpp | 10c698f8ce90c07643f80187142469a38e991575 | [] | no_license | Jason6583/TradingSystem | 927d1678d52541744274735e55033c5274309e5e | cab27779e4271332903241a8b9b87cad22194c7c | refs/heads/master | 2021-05-30T02:01:19.208342 | 2015-11-11T09:52:54 | 2015-11-11T09:52:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,690 | cpp |
#include "ETradeUserInfo.h"
ETradeUserInfo::ETradeUserInfo(){
this->authorizingPasswordErrorMsg=false;
}
ETradeUserInfo::ETradeUserInfo(const tstring& id, const tstring& password, const tstring& authorizingPassword, bool authorizingPasswordErrorMsg)
:id(id),
password(password),
authorizingPassword(authorizingPassword){
this->authorizingPasswordErrorMsg = authorizingPasswordErrorMsg;
}
ETradeUserInfo::ETradeUserInfo(const ETradeUserInfo& source)
:id(source.id),
password(source.password),
authorizingPassword(source.authorizingPassword){
this->authorizingPasswordErrorMsg = source.authorizingPasswordErrorMsg;
}
ETradeUserInfo::~ETradeUserInfo(){}
void ETradeUserInfo::AssignUserInfo(const tstring& id, const tstring& password, const tstring& authorizingPassword, bool authorizingPasswordErrorMsg){
this->id.assign(id);
this->password.assign(password);
this->authorizingPassword.assign(authorizingPassword);
this->authorizingPasswordErrorMsg = authorizingPasswordErrorMsg;
}
ETradeUserInfo& ETradeUserInfo::operator=(const ETradeUserInfo& source){
this->id.assign(source.id);
this->password.assign(source.password);
this->authorizingPassword.assign(source.authorizingPassword);
this->authorizingPasswordErrorMsg=source.authorizingPasswordErrorMsg;
return *this;
}
bool ETradeUserInfo::operator==(const ETradeUserInfo& other){
bool ret = false;
if( this->id==other.id &&
this->password==other.password &&
this->authorizingPassword==other.authorizingPassword &&
this->authorizingPasswordErrorMsg==other.authorizingPasswordErrorMsg){
ret = true;
}
return ret;
}
bool ETradeUserInfo::operator!=(const ETradeUserInfo& other){
bool ret = false;
if( this->id!=other.id ||
this->password!=other.password ||
this->authorizingPassword!=other.authorizingPassword ||
this->authorizingPasswordErrorMsg!=other.authorizingPasswordErrorMsg){
ret = true;
}
return ret;
}
bool ETradeUserInfo::IsEqual(const ETradeUserInfo& other){
bool ret = false;
if( this->id.compare(other.id)==0 &&
this->password.compare(other.password)==0 &&
this->authorizingPassword.compare(other.authorizingPassword)==0 &&
this->authorizingPasswordErrorMsg==other.authorizingPasswordErrorMsg){
ret = true;
}
return ret;
}
bool ETradeUserInfo::IsNotEqual(const ETradeUserInfo& other){
bool ret = false;
if( this->id.compare(other.id)!=0 ||
this->password.compare(other.password)!=0 ||
this->authorizingPassword.compare(other.authorizingPassword)!=0 ||
this->authorizingPasswordErrorMsg==other.authorizingPasswordErrorMsg){
ret = true;
}
return ret;
} | [
"sanghapark1021@gmail.com"
] | sanghapark1021@gmail.com |
12832a06dc0122a44751e735407fba3563460c8a | e03ee7312e700a0525894402f1aa38d7b48f900b | /SpriteEditor/spritegraphicsview.cpp | 554b48eb96efd727a39531fa7e379d01b20ba244 | [] | no_license | jacksonwildemurphy/pixel-sprite-editor | 230fdbb00974ed5d0f77770f4e3af030bbfb2033 | a83030dca008228735d9fe8bee1086f15ef9441b | refs/heads/master | 2020-05-25T15:41:16.894797 | 2017-12-22T18:17:00 | 2017-12-22T18:17:00 | 69,267,160 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 566 | cpp | #include "spritegraphicsview.h"
SpriteGraphicsView::SpriteGraphicsView(QWidget *parent) :
QGraphicsView(parent)
{
}
void SpriteGraphicsView::mousePressEvent(QMouseEvent * event)
{
QPointF point = mapToScene(event->pos());
emit mousePressSignal(point);
}
void SpriteGraphicsView::mouseMoveEvent (QMouseEvent *event)
{
QPointF point = mapToScene (event->pos());
emit mouseMoveSignal(point);
}
void SpriteGraphicsView::mouseReleaseEvent(QMouseEvent *event)
{
QPointF point = mapToScene (event->pos());
emit mouseReleaseSignal(point);
}
| [
"jackson@Jacksons-MacBook-Air.local"
] | jackson@Jacksons-MacBook-Air.local |
6331ba99488501a9df84cc48ff6ad4fb1837f65c | c0a5964e9f33e1ff2222f46ed9f5e07b7563c31b | /Обучение/Interview/test task project05 bisness technologyes/test task project05 bisness technologyes/main.cpp | 8487fdc4d4594434fa16e73ca8d91e2456aaf3c7 | [] | no_license | vlad99902/CodeAbbey | 3e5554cbf962467bfc692985202cfc02ddcdaf31 | be8bda5261f4cd2b2495d8730ef215a3a18afbab | refs/heads/master | 2022-11-13T06:40:30.149955 | 2020-07-08T22:37:12 | 2020-07-08T22:37:12 | 277,694,293 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,160 | cpp | //
// main.cpp
// test task project05 bisness technologyes
//
// Created by Владислав Легков on 07/07/2020.
// Copyright © 2020 Владислав Легков. All rights reserved.
//
#include <iostream>
#include <cmath>
/**
Buble array sort
*/
void sort (int *array, const int start, const int end){
if (start > end) {
std::cout << "FATAL ERROR. Start is bigger than end.\n\n";
} else {
for (int i = start; i < end-1; i++){
for (int j = i; j < end; j++) {
if (array[i] > array [j]){
std::swap (array[i], array[j]);
}
}
}
}
}
/**
Print array to the command line
*/
void printArray (int* array, size_t length){
for (int i = 0; i < length; i++) {
std::cout << array[i] << "\t";
}
std::cout << "\n";
}
/**
Main method
*/
int roundHalfDown(const int fistNumber, const int secondNumber){
return floor(fistNumber+secondNumber/2);
}
/*
Method to merge information by two arrays
*/
void mergeArray (int* array, size_t start, size_t center, size_t end){
/*
Variables and buffer array to merge data
*/
int* arrayResult = new int [end];
size_t iteratorFirst = start - 1;
size_t iteratorSecond = center;
size_t i = start - 1;
/*
Compare elements by part of arrays
*/
while (iteratorFirst < center && iteratorSecond < end) {
if (array[iteratorFirst] < array[iteratorSecond]){
arrayResult[i] = array[iteratorFirst];
iteratorFirst++;
} else{
arrayResult[i] = array[iteratorSecond];
iteratorSecond++;
}
i++;
}
/*
If elements of array parts are over
*/
while (iteratorSecond < end) {
arrayResult[i] = array[iteratorSecond];
iteratorSecond++;
i++;
}
while (iteratorFirst < center) {
arrayResult[i] = array[iteratorFirst];
iteratorFirst++;
i++;
}
/*
rewrite elements from buffer to main array
*/
for (size_t j = start - 1; j < i; j++){
array[j] = arrayResult[j];
}
}
/*
Merge sort method
*/
void mergeSort (int* array, size_t start, size_t end){
if (start < end) {
size_t q = start + (end-start) / 2;
mergeSort(array, start, q);
mergeSort(array, q + 1, end);
mergeArray(array, start, q, end);
}
}
/*
Example of calling method like in the task
mergeSort(array, 1, length);
start sort element is 1
last sort element is array length
*/
int main(int argc, const char * argv[]) {
const int length = 1000;
int* array = new int [length];
for (int i = 0; i < length; i++){
array[i] = rand() % 100000+1;
// array[i] = length - i;
}
int* buffer = new int [length];
for (size_t i = 0; i < length; i++){
buffer[i] = array[i];
}
std::cout << "start array ";
printArray(array, length);
mergeSort(array, 1, length);
std::cout << "end's array ";
printArray(array, length);
delete [] array;
return 0;
}
| [
"legkovv@mail.ru"
] | legkovv@mail.ru |
f1e0bc1672a6b40446933de08a09872270fa2989 | ec68c973b7cd3821dd70ed6787497a0f808e18e1 | /Cpp/SDK/Action_Mod_Incinerator_parameters.h | eef9e205f46989a5c6ef703215ad48c376b337d4 | [] | no_license | Hengle/zRemnant-SDK | 05be5801567a8cf67e8b03c50010f590d4e2599d | be2d99fb54f44a09ca52abc5f898e665964a24cb | refs/heads/main | 2023-07-16T04:44:43.113226 | 2021-08-27T14:26:40 | 2021-08-27T14:26:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,245 | h | #pragma once
// Name: Remnant, Version: 1.0
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Parameters
//---------------------------------------------------------------------------
// Function Action_Mod_Incinerator.Action_Mod_Incinerator_C.ApplyFireDOTStacking
struct UAction_Mod_Incinerator_C_ApplyFireDOTStacking_Params
{
};
// Function Action_Mod_Incinerator.Action_Mod_Incinerator_C.GetWeapon
struct UAction_Mod_Incinerator_C_GetWeapon_Params
{
};
// Function Action_Mod_Incinerator.Action_Mod_Incinerator_C.GetDamageCause
struct UAction_Mod_Incinerator_C_GetDamageCause_Params
{
};
// Function Action_Mod_Incinerator.Action_Mod_Incinerator_C.ReadValues
struct UAction_Mod_Incinerator_C_ReadValues_Params
{
};
// Function Action_Mod_Incinerator.Action_Mod_Incinerator_C.OnActionStart
struct UAction_Mod_Incinerator_C_OnActionStart_Params
{
};
// Function Action_Mod_Incinerator.Action_Mod_Incinerator_C.ExecuteUbergraph_Action_Mod_Incinerator
struct UAction_Mod_Incinerator_C_ExecuteUbergraph_Action_Mod_Incinerator_Params
{
};
}
#ifdef _MSC_VER
#pragma pack(pop)
#endif
| [
"zp2kshield@gmail.com"
] | zp2kshield@gmail.com |
e22b1f8fe52b76210860151bad41effefe97ca11 | 27d2f4de99ad53d8a2d1472f80b50518a67223d7 | /CompilingCustomSolver/mixerVesselAMI2D/processor0/0.2/phi | b4a1dadbcb4a356c1a8f39718e958d0f2da3fff4 | [] | no_license | samech-git/OpenFOAM_Tutorials | 6f6f92530e77de4471b2d3101397cfb80ce3dd26 | 0664fb03bf0ad704750eb4a2326b850f04b093ba | refs/heads/master | 2021-05-28T22:01:26.859393 | 2015-05-05T12:47:17 | 2015-05-05T12:47:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,297 | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class surfaceScalarField;
location "0.2";
object phi;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 3 -1 0 0 0 0];
internalField nonuniform List<scalar>
1460
(
-1.65572e-06
-1.23386e-06
1.50847e-06
-1.73644e-06
-6.95084e-07
-1.68173e-06
-1.27595e-07
-1.58311e-06
3.56504e-07
-1.42412e-06
8.04548e-07
-1.21354e-06
1.19202e-06
-9.70699e-07
1.51361e-06
-6.85714e-07
1.81078e-06
-3.74235e-07
2.09061e-06
-6.51252e-08
2.31604e-06
2.58664e-07
2.4579e-06
2.4752e-06
6.94874e-07
-1.39499e-06
-1.09657e-06
1.2577e-06
-1.46333e-06
-6.26739e-07
-1.44405e-06
-1.46878e-07
-1.37242e-06
2.84872e-07
-1.24538e-06
6.77509e-07
-1.0738e-06
1.02044e-06
-8.69921e-07
1.30973e-06
-6.20004e-07
1.56086e-06
-3.04126e-07
1.77473e-06
8.84174e-08
1.9235e-06
5.73213e-07
1.97311e-06
1.80512e-06
1.24329e-06
-1.18755e-06
-9.69289e-07
1.06027e-06
-1.25154e-06
-5.62747e-07
-1.24646e-06
-1.51961e-07
-1.18945e-06
2.27865e-07
-1.08634e-06
5.74394e-07
-9.42142e-07
8.76248e-07
-7.65756e-07
1.13334e-06
-5.58003e-07
1.35311e-06
-3.09678e-07
1.5264e-06
1.62891e-08
1.59753e-06
5.21285e-07
1.46811e-06
9.55422e-07
1.37098e-06
-1.0204e-06
9.03994e-07
-8.52887e-07
-1.08082e-06
-5.02325e-07
-1.08378e-06
-1.49e-07
-1.03901e-06
1.831e-07
-9.51579e-07
4.8696e-07
-8.27071e-07
7.5174e-07
-6.70847e-07
9.77118e-07
-4.90378e-07
1.17264e-06
-2.98004e-07
1.33403e-06
-6.15619e-08
1.36109e-06
4.57699e-07
9.48851e-07
1.5155e-06
-1.02382e-07
1.0684e-06
2.77852e-06
1.52014e-06
2.45721e-06
1.94076e-06
1.44868e-06
1.90215e-06
1.05987e-08
1.75972e-06
-1.30531e-06
1.41024e-06
-2.361e-06
8.43433e-07
-2.99268e-06
1.68673e-07
-3.18721e-06
-4.68026e-07
-3.05465e-06
-9.51593e-07
-2.71658e-06
-1.2824e-06
-2.26868e-06
-1.76661e-06
-1.51015e-06
1.53653e-06
2.48529e-06
1.80904e-06
2.18469e-06
2.02733e-06
1.23039e-06
1.99168e-06
4.62501e-08
1.74434e-06
-1.05797e-06
1.28958e-06
-1.90624e-06
7.10724e-07
-2.41382e-06
1.3194e-07
-2.60843e-06
-3.63233e-07
-2.55948e-06
-7.4879e-07
-2.33102e-06
-1.04196e-06
-1.97551e-06
-1.55388e-06
-1.25469e-06
1.5195e-06
2.33678e-06
1.691e-06
2.01318e-06
1.80427e-06
1.11712e-06
1.72578e-06
1.24741e-07
1.45859e-06
-7.90781e-07
1.04571e-06
-1.49336e-06
5.8214e-07
-1.95026e-06
1.34858e-07
-2.16114e-06
-2.63594e-07
-2.16103e-06
-6.00561e-07
-1.99406e-06
-8.65871e-07
-1.7102e-06
-1.3596e-06
-1.06015e-06
1.35675e-06
2.49553e-06
1.38751e-06
1.98242e-06
1.43101e-06
1.07362e-06
1.36372e-06
1.92035e-07
1.15303e-06
-5.80093e-07
8.43273e-07
-1.1836e-06
4.87893e-07
-1.59488e-06
1.28427e-07
-1.80168e-06
-2.07175e-07
-1.82543e-06
-4.97156e-07
-1.70407e-06
-7.29852e-07
-1.4775e-06
-9.03985e-07
-1.18547e-06
-1.66087e-06
-1.24125e-06
-1.73947e-06
-6.96678e-07
-1.68255e-06
-1.26229e-07
-1.58317e-06
3.57612e-07
-1.42391e-06
8.05222e-07
-1.21309e-06
1.19237e-06
-9.69948e-07
1.5139e-06
-6.84695e-07
1.81115e-06
-3.73101e-07
2.09105e-06
-6.40383e-08
2.31647e-06
2.59624e-07
2.45819e-06
2.47531e-06
-1.39552e-06
-1.10042e-06
-1.46484e-06
-6.27363e-07
-1.44476e-06
-1.46305e-07
-1.37273e-06
2.85581e-07
-1.24547e-06
6.77962e-07
-1.07379e-06
1.02069e-06
-8.69774e-07
1.30988e-06
-6.19666e-07
1.56104e-06
-3.03609e-07
1.77499e-06
8.90087e-08
1.92385e-06
5.73789e-07
1.97341e-06
1.80527e-06
-1.18859e-06
-9.71976e-07
-1.25261e-06
-5.63345e-07
-1.24711e-06
-1.51806e-07
-1.1898e-06
2.28276e-07
-1.08656e-06
5.74721e-07
-9.42332e-07
8.76461e-07
-7.65948e-07
1.1335e-06
-5.58192e-07
1.35329e-06
-3.09869e-07
1.52667e-06
1.60832e-08
1.5979e-06
5.21045e-07
1.46845e-06
9.55541e-07
-1.02115e-06
-8.54806e-07
-1.08156e-06
-5.02937e-07
-1.08432e-06
-1.49049e-07
-1.03934e-06
1.83298e-07
-9.51823e-07
4.87202e-07
-8.273e-07
7.51938e-07
-6.71101e-07
9.773e-07
-4.90727e-07
1.17291e-06
-2.98528e-07
1.33447e-06
-6.22674e-08
1.36164e-06
4.56871e-07
9.49312e-07
-1.02161e-07
1.06863e-06
2.77744e-06
1.52067e-06
2.45587e-06
1.9413e-06
1.44732e-06
1.90226e-06
9.83839e-09
1.75963e-06
-1.30579e-06
1.40978e-06
-2.3608e-06
8.42677e-07
-2.99191e-06
1.67776e-07
-3.18608e-06
-4.69014e-07
-3.05336e-06
-9.53366e-07
-2.71514e-06
-1.28378e-06
-2.26858e-06
-1.76586e-06
1.53626e-06
2.48388e-06
1.80905e-06
2.18307e-06
2.0272e-06
1.22917e-06
1.99141e-06
4.56355e-08
1.74372e-06
-1.0581e-06
1.28875e-06
-1.90583e-06
7.09856e-07
-2.41302e-06
1.31167e-07
-2.60739e-06
-3.63867e-07
-2.55832e-06
-7.4944e-07
-2.32957e-06
-1.04356e-06
-1.97446e-06
-1.55172e-06
1.51864e-06
2.33497e-06
1.69037e-06
2.01135e-06
1.80356e-06
1.11598e-06
1.72497e-06
1.24229e-07
1.45766e-06
-7.90787e-07
1.04478e-06
-1.49295e-06
5.81319e-07
-1.94955e-06
1.34169e-07
-2.16024e-06
-2.64166e-07
-2.15999e-06
-6.0093e-07
-1.9928e-06
-8.66267e-07
-1.70912e-06
-1.35772e-06
1.35551e-06
2.49318e-06
1.38647e-06
1.98038e-06
1.43005e-06
1.0724e-06
1.36275e-06
1.9153e-07
1.15208e-06
-5.80117e-07
8.42414e-07
-1.18328e-06
4.87153e-07
-1.59429e-06
1.27804e-07
-1.80089e-06
-2.0773e-07
-1.82445e-06
-4.9753e-07
-1.703e-06
-7.30236e-07
-1.47642e-06
-1.18396e-06
-8.85164e-07
-7.46e-07
7.78278e-07
-9.42455e-07
-4.45034e-07
-9.50575e-07
-1.4088e-07
-9.15362e-07
1.47887e-07
-8.41546e-07
4.13144e-07
-7.3451e-07
6.44704e-07
-5.96944e-07
8.39552e-07
-4.32656e-07
1.00835e-06
-2.60729e-07
1.1621e-06
-1.2075e-07
1.22111e-06
-5.73894e-08
8.85491e-07
-1.59771e-07
-7.75446e-07
-6.47726e-07
6.77171e-07
-8.29698e-07
-3.90783e-07
-8.41134e-07
-1.29444e-07
-8.13323e-07
1.20076e-07
-7.50533e-07
3.50353e-07
-6.57816e-07
5.51988e-07
-5.38264e-07
7.2e-07
-3.90037e-07
8.60127e-07
-2.14538e-07
9.86602e-07
-4.82288e-08
1.0548e-06
2.6656e-08
8.10606e-07
-1.33115e-07
-6.86239e-07
-5.57433e-07
5.95947e-07
-7.37726e-07
-3.39296e-07
-7.51275e-07
-1.15894e-07
-7.29107e-07
9.79076e-08
-6.75083e-07
2.96329e-07
-5.93371e-07
4.70276e-07
-4.88015e-07
6.14643e-07
-3.57017e-07
7.2913e-07
-1.89867e-07
8.19452e-07
4.04958e-09
8.60886e-07
1.23562e-07
6.91093e-07
-9.55324e-09
-6.13341e-07
-4.74883e-07
5.30791e-07
-6.62414e-07
-2.90223e-07
-6.77112e-07
-1.01196e-07
-6.5967e-07
8.0466e-08
-6.12761e-07
2.49419e-07
-5.40103e-07
3.97618e-07
-4.4551e-07
5.2005e-07
-3.298e-07
6.13421e-07
-1.85846e-07
6.75497e-07
-1.35363e-08
6.88576e-07
1.01649e-07
5.75908e-07
9.20962e-08
-5.54049e-07
-3.9805e-07
4.77216e-07
-6.00709e-07
-2.43564e-07
-6.16152e-07
-8.57531e-08
-6.02268e-07
6.65817e-08
-5.61364e-07
2.08516e-07
-4.96357e-07
3.32611e-07
-4.10948e-07
4.34641e-07
-3.07657e-07
5.1013e-07
-1.86166e-07
5.54006e-07
-5.09989e-08
5.53409e-07
4.76386e-08
4.7727e-07
1.39735e-07
-5.0628e-07
-3.26494e-07
4.34723e-07
-5.50164e-07
-1.9968e-07
-5.66084e-07
-6.98331e-08
-5.55103e-07
5.56008e-08
-5.18876e-07
1.7229e-07
-4.60464e-07
2.74198e-07
-3.8305e-07
3.57227e-07
-2.90167e-07
4.17247e-07
-1.85081e-07
4.4892e-07
-7.57987e-08
4.44127e-07
8.98556e-09
3.92486e-07
1.4872e-07
-4.6662e-07
-2.59264e-07
3.9939e-07
-5.0883e-07
-1.5747e-07
-5.25137e-07
-5.35261e-08
-5.1645e-07
4.69139e-08
-4.84099e-07
1.39938e-07
-4.30981e-07
2.21081e-07
-3.60359e-07
2.86605e-07
-2.76166e-07
3.33054e-07
-1.82909e-07
3.55663e-07
-8.88368e-08
3.50055e-07
-9.651e-09
3.133e-07
1.39069e-07
-4.35255e-07
-1.9541e-07
3.71401e-07
-4.75746e-07
-1.16978e-07
-4.91842e-07
-3.74305e-08
-4.84751e-07
3.98225e-08
-4.55598e-07
1.10785e-07
-4.06814e-07
1.72297e-07
-3.41842e-07
2.21633e-07
-2.64629e-07
2.55841e-07
-1.80168e-07
2.71202e-07
-9.58277e-08
2.65714e-07
-2.15507e-08
2.39023e-07
1.17519e-07
-4.09677e-07
-1.34731e-07
3.48998e-07
-4.4855e-07
-7.81048e-08
-4.65179e-07
-2.08016e-08
-4.59115e-07
3.37581e-08
-4.32449e-07
8.41193e-08
-3.87173e-07
1.27021e-07
-3.26679e-07
1.61139e-07
-2.54945e-07
1.84107e-07
-1.7706e-07
1.93316e-07
-9.94988e-08
1.88153e-07
-2.94636e-08
1.68988e-07
8.8055e-08
-3.90513e-07
-7.7063e-08
3.32845e-07
-4.28203e-07
-4.04154e-08
-4.441e-07
-4.90472e-09
-4.38956e-07
2.86144e-08
-4.13675e-07
5.8838e-08
-3.71018e-07
8.43649e-08
-3.13862e-07
1.03982e-07
-2.46317e-07
1.16562e-07
-1.73361e-07
1.20361e-07
-1.00735e-07
1.15527e-07
-3.41663e-08
1.02419e-07
5.38887e-08
-3.8487e-07
-2.52106e-08
3.33017e-07
-4.1652e-07
-8.76501e-09
-4.28058e-07
6.63296e-09
-4.20189e-07
2.07462e-08
-3.9392e-07
3.25682e-08
-3.5178e-07
4.22254e-08
-2.96745e-07
4.89475e-08
-2.32641e-07
5.24575e-08
-1.64281e-07
5.20012e-08
-9.66902e-08
4.7936e-08
-3.4721e-08
4.04497e-08
1.91676e-08
-3.54367e-07
3.29157e-07
-3.63132e-07
-3.56499e-07
-3.35753e-07
-3.03185e-07
-2.6096e-07
-2.12012e-07
-1.59554e-07
-1.07553e-07
-5.96173e-08
-1.91676e-08
7.77828e-07
1.7177e-06
1.00174e-06
1.75852e-06
1.10119e-06
9.7416e-07
1.07645e-06
2.16782e-07
9.31369e-07
-4.35015e-07
6.98265e-07
-9.50497e-07
4.14957e-07
-1.31157e-06
1.17651e-07
-1.50437e-06
-1.64818e-07
-1.54296e-06
-4.15386e-07
-1.45351e-06
-6.21264e-07
-1.27163e-06
-1.02839e-06
-7.78341e-07
3.74754e-07
1.34295e-06
7.11089e-07
1.42218e-06
8.63435e-07
8.21814e-07
8.70183e-07
2.10034e-07
7.66901e-07
-3.31733e-07
5.8372e-07
-7.67316e-07
3.52471e-07
-1.08032e-06
1.03985e-07
-1.25589e-06
-1.36711e-07
-1.30226e-06
-3.54835e-07
-1.23538e-06
-5.36011e-07
-1.09045e-06
-8.87173e-07
-6.7723e-07
2.58481e-07
1.08447e-06
5.45942e-07
1.13472e-06
6.92166e-07
6.7559e-07
7.1226e-07
1.8994e-07
6.35364e-07
-2.54837e-07
4.89607e-07
-6.21559e-07
2.99183e-07
-8.89896e-07
8.97186e-08
-1.04642e-06
-1.1784e-07
-1.0947e-06
-3.06797e-07
-1.04643e-06
-4.69126e-07
-9.28121e-07
-7.60302e-07
-5.95997e-07
2.12159e-07
8.72309e-07
4.38963e-07
9.07915e-07
5.63423e-07
5.5113e-07
5.87794e-07
1.6557e-07
5.30998e-07
-1.98041e-07
4.13297e-07
-5.03858e-07
2.54759e-07
-7.31358e-07
7.63293e-08
-8.67993e-07
-1.03673e-07
-9.147e-07
-2.70248e-07
-8.79851e-07
-4.14662e-07
-7.83708e-07
-6.44134e-07
-5.3083e-07
1.75159e-07
6.9715e-07
3.59701e-07
7.23374e-07
4.6538e-07
4.45451e-07
4.91141e-07
1.39809e-07
4.48614e-07
-1.55514e-07
3.52071e-07
-4.07315e-07
2.1825e-07
-5.97538e-07
6.44348e-08
-7.14178e-07
-9.33231e-08
-7.56942e-07
-2.42104e-07
-7.3107e-07
-3.71812e-07
-6.53999e-07
-5.38707e-07
-4.77239e-07
1.45562e-07
5.51588e-07
2.99383e-07
5.69553e-07
3.90574e-07
3.5426e-07
4.16475e-07
1.13908e-07
3.83842e-07
-1.22881e-07
3.03364e-07
-3.26837e-07
1.88619e-07
-4.82792e-07
5.43155e-08
-5.79875e-07
-8.56059e-08
-6.1702e-07
-2.19363e-07
-5.97313e-07
-3.37813e-07
-5.35548e-07
-4.4179e-07
-4.34731e-07
1.23723e-07
4.27864e-07
2.54148e-07
4.39128e-07
3.33835e-07
2.74572e-07
3.59082e-07
8.86608e-08
3.33326e-07
-9.71253e-08
2.65042e-07
-2.58553e-07
1.65042e-07
-3.82792e-07
4.60602e-08
-4.60893e-07
-7.96161e-08
-4.91344e-07
-2.01102e-07
-4.75827e-07
-3.09763e-07
-4.26888e-07
-3.52162e-07
-3.9939e-07
1.07728e-07
3.20137e-07
2.20535e-07
3.2632e-07
2.91112e-07
2.03995e-07
3.15358e-07
6.44157e-08
2.94511e-07
-7.62785e-08
2.35327e-07
-1.99368e-07
1.46716e-07
-2.94182e-07
3.96707e-08
-3.53848e-07
-7.46881e-08
-3.76985e-07
-1.86295e-07
-3.6422e-07
-2.86857e-07
-3.26326e-07
-2.67607e-07
-3.71412e-07
9.60642e-08
2.24072e-07
1.95795e-07
2.2659e-07
2.59445e-07
1.40345e-07
2.82561e-07
4.12999e-08
2.65289e-07
-5.90067e-08
2.12847e-07
-1.46926e-07
1.32902e-07
-2.14237e-07
3.51002e-08
-2.56046e-07
-7.03779e-08
-2.71507e-07
-1.73933e-07
-2.60666e-07
-2.68709e-07
-2.31549e-07
-1.8733e-07
-3.48986e-07
8.76737e-08
1.36399e-07
1.77865e-07
1.36399e-07
2.36252e-07
8.19578e-08
2.58168e-07
1.93837e-08
2.43184e-07
-4.40228e-08
1.95451e-07
-9.9193e-08
1.21708e-07
-1.40494e-07
3.05327e-08
-1.6487e-07
-6.84531e-08
-1.72522e-07
-1.66322e-07
-1.62797e-07
-2.56443e-07
-1.41428e-07
-1.10946e-07
-3.32827e-07
8.03027e-08
5.6096e-08
1.6198e-07
5.47219e-08
2.14471e-07
2.94663e-08
2.33018e-07
8.36681e-10
2.1685e-07
-2.78542e-08
1.69588e-07
-5.19317e-08
9.76272e-08
-6.8533e-08
9.24148e-09
-7.64845e-08
-8.60868e-08
-7.71933e-08
-1.79127e-07
-6.97573e-08
-2.63634e-07
-5.69206e-08
-4.15705e-08
-3.3301e-07
5.6096e-08
1.10818e-07
1.40284e-07
1.41121e-07
1.13267e-07
6.13349e-08
-7.19807e-09
-8.36826e-08
-1.60876e-07
-2.30633e-07
-2.87554e-07
-3.29124e-07
-8.85701e-07
-7.47447e-07
-9.43037e-07
-4.456e-07
-9.51043e-07
-1.41043e-07
-9.15701e-07
1.47957e-07
-8.41807e-07
4.13308e-07
-7.34752e-07
6.44884e-07
-5.97191e-07
8.39739e-07
-4.32959e-07
1.00868e-06
-2.61181e-07
1.16269e-06
-1.21404e-07
1.22186e-06
-5.79798e-08
8.85888e-07
-1.60141e-07
-7.75835e-07
-6.48842e-07
-8.30133e-07
-3.91303e-07
-8.41489e-07
-1.29687e-07
-8.13628e-07
1.20095e-07
-7.50792e-07
3.50471e-07
-6.58057e-07
5.52149e-07
-5.38503e-07
7.20185e-07
-3.90264e-07
8.60444e-07
-2.14763e-07
9.8719e-07
-4.85027e-08
1.0556e-06
2.6346e-08
8.11039e-07
-1.33795e-07
-6.86523e-07
-5.58316e-07
-7.38056e-07
-3.3977e-07
-7.51625e-07
-1.16117e-07
-7.29395e-07
9.78655e-08
-6.7534e-07
2.96416e-07
-5.93605e-07
4.70414e-07
-4.88235e-07
6.14815e-07
-3.57205e-07
7.29415e-07
-1.8995e-07
8.19934e-07
4.09148e-09
8.6156e-07
1.23698e-07
6.91433e-07
-1.00964e-08
-6.1356e-07
-4.75586e-07
-6.62691e-07
-2.9064e-07
-6.7741e-07
-1.01398e-07
-6.59924e-07
8.03793e-08
-6.13021e-07
2.49513e-07
-5.40319e-07
3.97712e-07
-4.45709e-07
5.20204e-07
-3.29963e-07
6.13669e-07
-1.85899e-07
6.7587e-07
-1.33938e-08
6.89055e-07
1.01859e-07
5.7618e-07
9.17628e-08
-5.54216e-07
-3.98609e-07
-6.00937e-07
-2.43919e-07
-6.16395e-07
-8.59404e-08
-6.02521e-07
6.65051e-08
-5.61582e-07
2.08574e-07
-4.96557e-07
3.32687e-07
-4.11127e-07
4.34775e-07
-3.07797e-07
5.10339e-07
-1.86225e-07
5.54298e-07
-5.09156e-08
5.53745e-07
4.7777e-08
4.77487e-07
1.3954e-07
-5.06409e-07
-3.26931e-07
-5.50323e-07
-2.00005e-07
-5.66297e-07
-6.99659e-08
-5.55323e-07
5.55311e-08
-5.19081e-07
1.72332e-07
-4.60645e-07
2.74251e-07
-3.83214e-07
3.57344e-07
-2.9029e-07
4.17416e-07
-1.85144e-07
4.49152e-07
-7.57682e-08
4.44369e-07
9.06594e-09
3.92653e-07
1.48606e-07
-4.66724e-07
-2.59597e-07
-5.08995e-07
-1.57734e-07
-5.25324e-07
-5.36365e-08
-5.16643e-07
4.685e-08
-4.84285e-07
1.39973e-07
-4.31133e-07
2.21099e-07
-3.60509e-07
2.86719e-07
-2.76279e-07
3.33186e-07
-1.82973e-07
3.55845e-07
-8.88334e-08
3.50229e-07
-9.61328e-09
3.13433e-07
1.38992e-07
-4.35339e-07
-1.95671e-07
-4.75885e-07
-1.17188e-07
-4.92014e-07
-3.75079e-08
-4.84927e-07
3.97634e-08
-4.55781e-07
1.10827e-07
-4.06985e-07
1.72303e-07
-3.41993e-07
2.21727e-07
-2.64736e-07
2.55929e-07
-1.80231e-07
2.71341e-07
-9.58379e-08
2.65836e-07
-2.15255e-08
2.3912e-07
1.17467e-07
-4.09753e-07
-1.34903e-07
-4.48724e-07
-7.82166e-08
-4.65345e-07
-2.08875e-08
-4.59297e-07
3.37156e-08
-4.32613e-07
8.41426e-08
-3.87326e-07
1.27017e-07
-3.26811e-07
1.61212e-07
-2.55048e-07
1.84165e-07
-1.77122e-07
1.93415e-07
-9.95179e-08
1.88232e-07
-2.94488e-08
1.69051e-07
8.80181e-08
-3.90576e-07
-7.71543e-08
-4.28318e-07
-4.04748e-08
-4.4425e-07
-4.9549e-09
-4.3912e-07
2.85855e-08
-4.13844e-07
5.88658e-08
-3.71179e-07
8.43526e-08
-3.13984e-07
1.04017e-07
-2.46417e-07
1.16598e-07
-1.73422e-07
1.2042e-07
-1.00758e-07
1.15568e-07
-3.41575e-08
1.02451e-07
5.38605e-08
-3.84921e-07
-2.52426e-08
-4.16617e-07
-8.77903e-09
-4.28186e-07
6.6142e-09
-4.20342e-07
2.07413e-08
-3.9405e-07
3.25739e-08
-3.51905e-07
4.22074e-08
-2.96867e-07
4.89787e-08
-2.32731e-07
5.24625e-08
-1.64332e-07
5.20208e-08
-9.67096e-08
4.79455e-08
-3.47131e-08
4.04543e-08
1.91474e-08
-3.54367e-07
-3.63146e-07
-3.56532e-07
-3.3579e-07
-3.03217e-07
-2.61009e-07
-2.1203e-07
-1.59568e-07
-1.07547e-07
-5.96017e-08
-1.91474e-08
7.77035e-07
1.71614e-06
1.00085e-06
1.75656e-06
1.10033e-06
9.72927e-07
1.07557e-06
2.16287e-07
9.30526e-07
-4.35073e-07
6.97503e-07
-9.50259e-07
4.14291e-07
-1.31108e-06
1.17088e-07
-1.50369e-06
-1.65257e-07
-1.54211e-06
-4.15687e-07
-1.45257e-06
-6.2148e-07
-1.27063e-06
-1.02716e-06
3.74428e-07
1.34172e-06
7.10488e-07
1.4205e-06
8.62684e-07
8.20731e-07
8.69405e-07
2.09566e-07
7.66158e-07
-3.31825e-07
5.83032e-07
-7.67133e-07
3.51864e-07
-1.07991e-06
1.03474e-07
-1.2553e-06
-1.37115e-07
-1.30152e-06
-3.55131e-07
-1.23456e-06
-5.36185e-07
-1.08957e-06
-8.86175e-07
2.5833e-07
1.08339e-06
5.45465e-07
1.13336e-06
6.91517e-07
6.74678e-07
7.11577e-07
1.89506e-07
6.34698e-07
-2.54947e-07
4.88986e-07
-6.21421e-07
2.98632e-07
-8.89559e-07
8.92557e-08
-1.04592e-06
-1.18177e-07
-1.09409e-06
-3.07032e-07
-1.0457e-06
-4.69249e-07
-9.27354e-07
-7.59478e-07
2.12004e-07
8.71382e-07
4.38547e-07
9.06818e-07
5.62859e-07
5.50366e-07
5.87192e-07
1.65174e-07
5.30393e-07
-1.98147e-07
4.12731e-07
-5.03759e-07
2.54254e-07
-7.31082e-07
7.59048e-08
-8.67572e-07
-1.04008e-07
-9.14173e-07
-2.70467e-07
-8.79244e-07
-4.14768e-07
-7.83053e-07
-6.43455e-07
1.75006e-07
6.96375e-07
3.59342e-07
7.22483e-07
4.64892e-07
4.44815e-07
4.90609e-07
1.39457e-07
4.48067e-07
-1.55605e-07
3.51556e-07
-4.07248e-07
2.17788e-07
-5.97314e-07
6.4043e-08
-7.13827e-07
-9.36366e-08
-7.56494e-07
-2.42286e-07
-7.30594e-07
-3.71908e-07
-6.53431e-07
-5.38147e-07
1.4542e-07
5.50955e-07
2.99069e-07
5.68834e-07
3.90142e-07
3.53743e-07
4.15989e-07
1.1361e-07
3.83351e-07
-1.22968e-07
3.02892e-07
-3.26789e-07
1.88191e-07
-4.82614e-07
5.39502e-08
-5.79586e-07
-8.58948e-08
-6.16649e-07
-2.1955e-07
-5.96939e-07
-3.37905e-07
-5.35076e-07
-4.41329e-07
1.23596e-07
4.27359e-07
2.53868e-07
4.38562e-07
3.33449e-07
2.74161e-07
3.58646e-07
8.84136e-08
3.32871e-07
-9.71928e-08
2.64604e-07
-2.58522e-07
1.64641e-07
-3.82651e-07
4.57221e-08
-4.60667e-07
-7.98839e-08
-4.91043e-07
-2.01287e-07
-4.75536e-07
-3.09867e-07
-4.26496e-07
-3.51806e-07
1.07609e-07
3.1975e-07
2.20281e-07
3.25891e-07
2.9076e-07
2.03682e-07
3.14949e-07
6.42252e-08
2.94094e-07
-7.63382e-08
2.34918e-07
-1.99345e-07
1.46342e-07
-2.94076e-07
3.93523e-08
-3.53677e-07
-7.49413e-08
-3.76749e-07
-1.86485e-07
-3.63992e-07
-2.86952e-07
-3.26029e-07
-2.67357e-07
9.59538e-08
2.23796e-07
1.9556e-07
2.26284e-07
2.5912e-07
1.40122e-07
2.82182e-07
4.11631e-08
2.64895e-07
-5.90519e-08
2.1246e-07
-1.4691e-07
1.32547e-07
-2.14162e-07
3.47996e-08
-2.5593e-07
-7.06217e-08
-2.71328e-07
-1.74174e-07
-2.6044e-07
-2.68809e-07
-2.31394e-07
-1.87168e-07
8.75694e-08
1.36227e-07
1.77645e-07
1.36209e-07
2.35947e-07
8.18198e-08
2.57812e-07
1.92984e-08
2.4281e-07
-4.40506e-08
1.95081e-07
-9.91811e-08
1.21366e-07
-1.40447e-07
3.02485e-08
-1.64812e-07
-6.86801e-08
-1.72399e-07
-1.66465e-07
-1.62655e-07
-2.5651e-07
-1.41349e-07
-1.10833e-07
8.02043e-08
5.60223e-08
1.61773e-07
5.46404e-08
2.14186e-07
2.94072e-08
2.32682e-07
8.02301e-10
2.16496e-07
-2.78645e-08
1.69238e-07
-5.19231e-08
9.73015e-08
-6.85114e-08
8.97974e-09
-7.64903e-08
-8.63027e-08
-7.71167e-08
-1.79265e-07
-6.96927e-08
-2.63727e-07
-5.68867e-08
-4.15434e-08
5.60223e-08
1.10663e-07
1.4007e-07
1.40872e-07
1.13008e-07
6.10846e-08
-7.42675e-09
-8.39171e-08
-1.61034e-07
-2.30727e-07
-2.87613e-07
)
;
boundaryField
{
rotor
{
type calculated;
value nonuniform 0();
}
stator
{
type calculated;
value nonuniform List<scalar>
96
(
2.06255e-58
0
-6.16899e-35
6.01853e-36
3.00927e-36
3.00927e-35
-4.17619e-53
-2.40741e-35
7.22224e-35
0
-1.92842e-34
2.40741e-35
-1.16106e-34
2.40741e-35
4.81482e-35
0
0
6.01853e-35
0
3.00927e-36
-9.0278e-36
0
2.69544e-36
2.7007e-35
2.12043e-34
0
-3.0155e-35
3.00927e-36
-3.00927e-36
-1.22864e-35
1.20371e-35
-1.22864e-35
5.9936e-35
0
4.81482e-35
3.58618e-35
2.40741e-35
1.08583e-34
0
1.53473e-34
-2.40741e-35
-4.43867e-35
4.52637e-35
9.0278e-36
6.01853e-36
-4.43867e-35
0
2.06255e-58
0
-6.01853e-36
0
0
6.01853e-36
-6.01853e-36
6.01853e-36
1.20371e-35
0
0
0
0
0
6.01853e-36
0
0
-6.01853e-36
0
-6.01853e-36
-1.20371e-35
-1.20371e-35
0
0
0
0
-6.01853e-36
6.01853e-36
-6.01853e-36
0
0
6.01853e-36
0
0
0
0
1.20371e-35
0
6.01853e-36
0
0
-6.01853e-36
6.01853e-36
-6.01853e-36
-1.20371e-35
0
0
0
0
)
;
}
AMI1
{
type cyclicAMI;
value nonuniform 0();
}
AMI2
{
type cyclicAMI;
value nonuniform List<scalar>
48
(
1.38563e-06
7.75811e-07
7.28853e-08
-4.5513e-07
-9.63531e-07
-1.4026e-06
-1.75646e-06
-2.09577e-06
-2.40208e-06
-2.62515e-06
-2.78169e-06
-2.91141e-06
-3.15204e-06
-2.90895e-06
-1.8693e-06
2.80141e-08
1.44775e-06
2.71048e-06
3.55948e-06
3.86197e-06
3.69135e-06
3.20015e-06
2.59949e-06
1.99436e-06
1.39197e-06
7.75279e-07
6.93097e-08
-4.56992e-07
-9.64483e-07
-1.40319e-06
-1.75705e-06
-2.09641e-06
-2.40264e-06
-2.62553e-06
-2.78185e-06
-2.91143e-06
-3.1513e-06
-2.90791e-06
-1.86795e-06
2.91991e-08
1.44842e-06
2.71065e-06
3.55901e-06
3.86098e-06
3.69015e-06
3.19949e-06
2.59899e-06
1.99055e-06
)
;
}
front
{
type empty;
value nonuniform 0();
}
back
{
type empty;
value nonuniform 0();
}
procBoundary0to1
{
type processor;
value nonuniform List<scalar> 8(6.95742e-07 1.24384e-06 1.37077e-06 1.51457e-06 -6.94766e-07 -1.2427e-06 -1.36973e-06 -1.51372e-06);
}
}
// ************************************************************************* //
| [
"rlee32@gatech.edu"
] | rlee32@gatech.edu | |
a3037d6b6533acc3b002e284dfa2a6556830a1e3 | 6ed471f36e5188f77dc61cca24daa41496a6d4a0 | /SDK/PrimalItemStructure_WoodGate_classes.h | 2aa90fe9a24afb7f1f81eb8ffd8875ebf418da2e | [] | no_license | zH4x-SDK/zARKSotF-SDK | 77bfaf9b4b9b6a41951ee18db88f826dd720c367 | 714730f4bb79c07d065181caf360d168761223f6 | refs/heads/main | 2023-07-16T22:33:15.140456 | 2021-08-27T13:40:06 | 2021-08-27T13:40:06 | 400,521,086 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 786 | h | #pragma once
// Name: ARKSotF, Version: 178.8.0
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
namespace SDK
{
//---------------------------------------------------------------------------
// Classes
//---------------------------------------------------------------------------
// BlueprintGeneratedClass PrimalItemStructure_WoodGate.PrimalItemStructure_WoodGate_C
// 0x0000 (0x07B0 - 0x07B0)
class UPrimalItemStructure_WoodGate_C : public UPrimalItemStructure_BaseGate_C
{
public:
static UClass* StaticClass()
{
static auto ptr = UObject::FindClass("BlueprintGeneratedClass PrimalItemStructure_WoodGate.PrimalItemStructure_WoodGate_C");
return ptr;
}
void ExecuteUbergraph_PrimalItemStructure_WoodGate(int EntryPoint);
};
}
#ifdef _MSC_VER
#pragma pack(pop)
#endif
| [
"zp2kshield@gmail.com"
] | zp2kshield@gmail.com |
9d84f0707ac9f4b0c6b8fc544099b6cab03e5746 | 4981061331d4ecf07afc25d87f8a4d684c89139a | /WF2/WF2.ino | 4d025a36678b4d74ce5e880e83925f431ce8eb3f | [] | no_license | delphox60/2020-Smart-Maritime-Logistics-Services | 99d15db3ed35ea3ed51520a5ba92ecfb03d4d2d7 | c896414f50ea48893c13334d0031a8b93f913a95 | refs/heads/main | 2023-08-24T03:13:04.916070 | 2021-11-02T16:00:59 | 2021-11-02T16:00:59 | 420,616,085 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,228 | ino | #include <ESP8266WiFi.h> // ESP 8266 와이파이 라이브러리
#include <ESP8266WebServer.h> // ESP 8266 웹서버 라이브러리
ESP8266WebServer server(80); // 웹서버 오브젝트
int led = D4; // LED 핀번호
void setup()
{
// LED 핀 세팅
pinMode(led, OUTPUT);
digitalWrite(led, HIGH);
// 시리얼 세팅
Serial.begin(115200);
Serial.println();
// 와이파이 접속
WiFi.begin("SSID", "00000000"); // 공유기 이름과 비밀번호
Serial.print("Connecting");
while (WiFi.status() != WL_CONNECTED) // 와이파이 접속하는 동안 "." 출력
{
delay(500);
Serial.print(".");
}
Serial.println();
Serial.print("Connected, IP address: ");
Serial.println(WiFi.localIP()); // 접속된 와이파이 주소 출력
server.on("/", handleRoot); // 루트에 접속 되었을때 실행할 함수 연결
server.begin(); // 웹서버 시작
Serial.println("HTTP server started");
}
void handleRoot() { // 루트에 접속할때 실행할 내용
digitalWrite(led, LOW);
server.send(200, "text/plain", "hello from esp8266!");
delay(100);
digitalWrite(led, HIGH);
}
void loop() {
server.handleClient();
}
| [
"noreply@github.com"
] | noreply@github.com |
a3e3a17ceb923218fddcd7d407987282c5fac093 | 2f49e6f93a99523636f14f399d784f682adfd142 | /Sources/VCNRenderer/ShaderCore.cpp | 5d13c25f7501d195663ab4a2352e46dcc2b01733 | [] | no_license | overflowsc/inf4715 | 26a1e1850b0fda13a19c1562c73d56ee5f26bcde | d9dc62793dfa58f3bb7b146033e4084a8ecc4bc7 | refs/heads/master | 2021-01-18T07:43:49.197883 | 2015-02-08T08:55:53 | 2015-02-08T08:55:53 | 30,485,685 | 0 | 0 | null | 2015-02-08T08:45:44 | 2015-02-08T08:45:43 | null | UTF-8 | C++ | false | false | 2,173 | cpp | ///
/// Copyright (C) 2012 - All Rights Reserved
/// All rights reserved. http://www.equals-forty-two.com
///
#include "Precompiled.h"
#include "ShaderCore.h"
VCN_TYPE( VCNShaderCore, VCNCore<VCNShaderCore> ) ;
//-------------------------------------------------------------
/// Constructor
//-------------------------------------------------------------
VCNShaderCore::VCNShaderCore()
{
}
//-------------------------------------------------------------
/// Destructor
//-------------------------------------------------------------
VCNShaderCore::~VCNShaderCore()
{
}
//-------------------------------------------------------------
/// Initialize
//-------------------------------------------------------------
VCNBool VCNShaderCore::Initialize()
{
if ( !BaseCore::Initialize() )
return false;
// Load up all the shaders
LoadShaders();
// Listen to system transformations
patterns::Attach( VCNXformCore::GetInstance(), this );
// We're initialized
return true;
}
///////////////////////////////////////////////////////////////////////
VCNBool VCNShaderCore::Uninitialize()
{
UnloadShaders();
return BaseCore::Uninitialize();
}
///////////////////////////////////////////////////////////////////////
void VCNShaderCore::UpdateObserver(VCNMsgTransformChanged& hint)
{
switch ( hint.type )
{
// Set the world matrix
case VCNMsgTransformChanged::TC_MODEL:
SetWorldTransform( hint.mat4 );
break;
// Set the normal matrix
case VCNMsgTransformChanged::TC_NORMAL_MATRIX:
SetNormalMatrix( hint.mat4 );
break;
// Set the view matrix
case VCNMsgTransformChanged::TC_VIEW:
SetViewMatrix( hint.mat4 );
break;
// Set the project matrix
case VCNMsgTransformChanged::TC_PROJECTION:
/* not used */
break;
// Set the view-model matrix
case VCNMsgTransformChanged::TC_MODEL_VIEW:
SetModelViewMatrix( hint.mat4 );
break;
// Set the MVP matrix
case VCNMsgTransformChanged::TC_MODEL_VIEW_PROJECTION:
SetWorldViewProjMatrix( hint.mat4 );
break;
// Set the viewer's position
case VCNMsgTransformChanged::TC_VIEW_POSITION:
SetViewPosition( hint.vec3 );
break;
}
}
| [
"mathieumg@gmail.com"
] | mathieumg@gmail.com |
6a964bbd3815c6b6e22e48bd6237309490aeccec | 55985a855365192abef9f45de76a8c2ae7d2bd6b | /src/Scene.h | 191ea1a46dd439a6793a72b41a6e1fb25b509695 | [] | no_license | marben/photonfactory | afb3cadaaa76e170bef67a1bc3fe212c8388c95e | ebb303742eb6864258def96c37dd43177abc34f5 | refs/heads/master | 2021-01-10T07:50:32.157980 | 2016-02-07T04:56:32 | 2016-02-07T04:56:32 | 51,234,914 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,228 | h | #ifndef _SCENE_H_
#define _SCENE_H_
#include <string>
#include <vector>
#include <memory>
#include "Object3d.h"
#include "Screen.h"
#include "Light.h"
#include "Plane.h"
#include "config.h"
#include "Point3d.h"
#include "Shader.h"
#include "Camera.h"
namespace PF{
class Scene{
public:
void addObject3d(Object3d* o);
void addLight(Light*);
void addShader(Shader* s);
void setBackgroundColor(const Color& col){backgroundColor=col;}
Color getBackgroundColor()const{return backgroundColor;}
unsigned int getPrimaryRaysNum()const;
Camera& getCamera()const{return *camera;}
unsigned int objectsNumber()const{return objects.size();}
unsigned int vertexNumber()const{return points.size();}
Shader* findShader(const std::string& name);
Scene();
void init(); // necessary initialization after scene is loaded
// creates a screen of a resolution suitable for scene
std::auto_ptr<Screen> createScreen() const;
~Scene();
//protected:
std::vector<Object3d*> objects;
std::vector<Light*> lights;
std::vector<Point3d*> points;
std::vector<Shader*> shaders;
public:
Screen screen;
Camera* camera;
Color backgroundColor; // constnt background color for rendering
};
} // namespace PF
#endif
| [
"martinbenesh@gmail.com"
] | martinbenesh@gmail.com |
f7ee9dcf2733c7cc475b15d32e19e2116a9b0939 | 35209988aa59148c774dd0594f778995568c32a5 | /deps/v8/src/logging/runtime-call-stats.cc | 66e26096d08e3a28c511f5ae4cf9807939d31f86 | [
"BSD-3-Clause",
"Apache-2.0",
"SunPro",
"CC0-1.0",
"LicenseRef-scancode-unicode",
"MIT",
"LicenseRef-scancode-public-domain-disclaimer",
"Artistic-2.0",
"Zlib",
"ICU",
"ISC",
"NTP",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"N... | permissive | red1033/node | 36b3588e9ecdc7262a2fc42b83c661f1c73887d4 | 8fce09e2a53dae8bc8238f251b23b4b8e9f83564 | refs/heads/master | 2022-07-02T15:39:43.406072 | 2021-11-04T17:04:27 | 2021-11-04T17:04:27 | 236,284,827 | 1 | 0 | NOASSERTION | 2021-11-04T23:08:17 | 2020-01-26T08:17:07 | JavaScript | UTF-8 | C++ | false | false | 11,694 | cc | // Copyright 2021 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifdef V8_RUNTIME_CALL_STATS
#include "src/logging/runtime-call-stats.h"
#include <iomanip>
#include "src/tracing/tracing-category-observer.h"
#include "src/utils/ostreams.h"
namespace v8 {
namespace internal {
base::TimeTicks (*RuntimeCallTimer::Now)() =
&base::TimeTicks::HighResolutionNow;
base::TimeTicks RuntimeCallTimer::NowCPUTime() {
base::ThreadTicks ticks = base::ThreadTicks::Now();
return base::TimeTicks::FromInternalValue(ticks.ToInternalValue());
}
class RuntimeCallStatEntries {
public:
void Print(std::ostream& os) {
if (total_call_count == 0) return;
std::sort(entries.rbegin(), entries.rend());
os << std::setw(50) << "Runtime Function/C++ Builtin" << std::setw(12)
<< "Time" << std::setw(18) << "Count" << std::endl
<< std::string(88, '=') << std::endl;
for (Entry& entry : entries) {
entry.SetTotal(total_time, total_call_count);
entry.Print(os);
}
os << std::string(88, '-') << std::endl;
Entry("Total", total_time, total_call_count).Print(os);
}
// By default, the compiler will usually inline this, which results in a large
// binary size increase: std::vector::push_back expands to a large amount of
// instructions, and this function is invoked repeatedly by macros.
V8_NOINLINE void Add(RuntimeCallCounter* counter) {
if (counter->count() == 0) return;
entries.push_back(
Entry(counter->name(), counter->time(), counter->count()));
total_time += counter->time();
total_call_count += counter->count();
}
private:
class Entry {
public:
Entry(const char* name, base::TimeDelta time, uint64_t count)
: name_(name),
time_(time.InMicroseconds()),
count_(count),
time_percent_(100),
count_percent_(100) {}
bool operator<(const Entry& other) const {
if (time_ < other.time_) return true;
if (time_ > other.time_) return false;
return count_ < other.count_;
}
V8_NOINLINE void Print(std::ostream& os) {
os.precision(2);
os << std::fixed << std::setprecision(2);
os << std::setw(50) << name_;
os << std::setw(10) << static_cast<double>(time_) / 1000 << "ms ";
os << std::setw(6) << time_percent_ << "%";
os << std::setw(10) << count_ << " ";
os << std::setw(6) << count_percent_ << "%";
os << std::endl;
}
V8_NOINLINE void SetTotal(base::TimeDelta total_time,
uint64_t total_count) {
if (total_time.InMicroseconds() == 0) {
time_percent_ = 0;
} else {
time_percent_ = 100.0 * time_ / total_time.InMicroseconds();
}
count_percent_ = 100.0 * count_ / total_count;
}
private:
const char* name_;
int64_t time_;
uint64_t count_;
double time_percent_;
double count_percent_;
};
uint64_t total_call_count = 0;
base::TimeDelta total_time;
std::vector<Entry> entries;
};
void RuntimeCallCounter::Reset() {
count_ = 0;
time_ = 0;
}
void RuntimeCallCounter::Dump(v8::tracing::TracedValue* value) {
value->BeginArray(name_);
value->AppendDouble(count_);
value->AppendDouble(time_);
value->EndArray();
}
void RuntimeCallCounter::Add(RuntimeCallCounter* other) {
count_ += other->count();
time_ += other->time().InMicroseconds();
}
void RuntimeCallTimer::Snapshot() {
base::TimeTicks now = Now();
// Pause only / topmost timer in the timer stack.
Pause(now);
// Commit all the timer's elapsed time to the counters.
RuntimeCallTimer* timer = this;
while (timer != nullptr) {
timer->CommitTimeToCounter();
timer = timer->parent();
}
Resume(now);
}
RuntimeCallStats::RuntimeCallStats(ThreadType thread_type)
: in_use_(false), thread_type_(thread_type) {
static const char* const kNames[] = {
#define CALL_BUILTIN_COUNTER(name) "GC_" #name,
FOR_EACH_GC_COUNTER(CALL_BUILTIN_COUNTER) //
#undef CALL_BUILTIN_COUNTER
#define CALL_RUNTIME_COUNTER(name) #name,
FOR_EACH_MANUAL_COUNTER(CALL_RUNTIME_COUNTER) //
#undef CALL_RUNTIME_COUNTER
#define CALL_RUNTIME_COUNTER(name, nargs, ressize) #name,
FOR_EACH_INTRINSIC(CALL_RUNTIME_COUNTER) //
#undef CALL_RUNTIME_COUNTER
#define CALL_BUILTIN_COUNTER(name) #name,
BUILTIN_LIST_C(CALL_BUILTIN_COUNTER) //
#undef CALL_BUILTIN_COUNTER
#define CALL_BUILTIN_COUNTER(name) "API_" #name,
FOR_EACH_API_COUNTER(CALL_BUILTIN_COUNTER) //
#undef CALL_BUILTIN_COUNTER
#define CALL_BUILTIN_COUNTER(name) #name,
FOR_EACH_HANDLER_COUNTER(CALL_BUILTIN_COUNTER) //
#undef CALL_BUILTIN_COUNTER
#define THREAD_SPECIFIC_COUNTER(name) #name,
FOR_EACH_THREAD_SPECIFIC_COUNTER(THREAD_SPECIFIC_COUNTER) //
#undef THREAD_SPECIFIC_COUNTER
};
for (int i = 0; i < kNumberOfCounters; i++) {
this->counters_[i] = RuntimeCallCounter(kNames[i]);
}
if (FLAG_rcs_cpu_time) {
CHECK(base::ThreadTicks::IsSupported());
base::ThreadTicks::WaitUntilInitialized();
RuntimeCallTimer::Now = &RuntimeCallTimer::NowCPUTime;
}
}
namespace {
constexpr RuntimeCallCounterId FirstCounter(RuntimeCallCounterId first, ...) {
return first;
}
#define THREAD_SPECIFIC_COUNTER(name) k##name,
constexpr RuntimeCallCounterId kFirstThreadVariantCounter =
FirstCounter(FOR_EACH_THREAD_SPECIFIC_COUNTER(THREAD_SPECIFIC_COUNTER) 0);
#undef THREAD_SPECIFIC_COUNTER
#define THREAD_SPECIFIC_COUNTER(name) +1
constexpr int kThreadVariantCounterCount =
0 FOR_EACH_THREAD_SPECIFIC_COUNTER(THREAD_SPECIFIC_COUNTER);
#undef THREAD_SPECIFIC_COUNTER
constexpr auto kLastThreadVariantCounter = static_cast<RuntimeCallCounterId>(
kFirstThreadVariantCounter + kThreadVariantCounterCount - 1);
} // namespace
bool RuntimeCallStats::HasThreadSpecificCounterVariants(
RuntimeCallCounterId id) {
// Check that it's in the range of the thread-specific variant counters and
// also that it's one of the background counters.
return id >= kFirstThreadVariantCounter && id <= kLastThreadVariantCounter;
}
bool RuntimeCallStats::IsBackgroundThreadSpecificVariant(
RuntimeCallCounterId id) {
return HasThreadSpecificCounterVariants(id) &&
(id - kFirstThreadVariantCounter) % 2 == 1;
}
void RuntimeCallStats::Enter(RuntimeCallTimer* timer,
RuntimeCallCounterId counter_id) {
DCHECK(IsCalledOnTheSameThread());
RuntimeCallCounter* counter = GetCounter(counter_id);
DCHECK_NOT_NULL(counter->name());
timer->Start(counter, current_timer());
current_timer_.SetValue(timer);
current_counter_.SetValue(counter);
}
void RuntimeCallStats::Leave(RuntimeCallTimer* timer) {
DCHECK(IsCalledOnTheSameThread());
RuntimeCallTimer* stack_top = current_timer();
if (stack_top == nullptr) return; // Missing timer is a result of Reset().
CHECK(stack_top == timer);
current_timer_.SetValue(timer->Stop());
RuntimeCallTimer* cur_timer = current_timer();
current_counter_.SetValue(cur_timer ? cur_timer->counter() : nullptr);
}
void RuntimeCallStats::Add(RuntimeCallStats* other) {
for (int i = 0; i < kNumberOfCounters; i++) {
GetCounter(i)->Add(other->GetCounter(i));
}
}
// static
void RuntimeCallStats::CorrectCurrentCounterId(RuntimeCallCounterId counter_id,
CounterMode mode) {
DCHECK(IsCalledOnTheSameThread());
if (mode == RuntimeCallStats::CounterMode::kThreadSpecific) {
counter_id = CounterIdForThread(counter_id);
}
DCHECK(IsCounterAppropriateForThread(counter_id));
RuntimeCallTimer* timer = current_timer();
if (timer == nullptr) return;
RuntimeCallCounter* counter = GetCounter(counter_id);
timer->set_counter(counter);
current_counter_.SetValue(counter);
}
bool RuntimeCallStats::IsCalledOnTheSameThread() {
if (thread_id_.IsValid()) return thread_id_ == ThreadId::Current();
thread_id_ = ThreadId::Current();
return true;
}
void RuntimeCallStats::Print() {
StdoutStream os;
Print(os);
}
void RuntimeCallStats::Print(std::ostream& os) {
RuntimeCallStatEntries entries;
if (current_timer_.Value() != nullptr) {
current_timer_.Value()->Snapshot();
}
for (int i = 0; i < kNumberOfCounters; i++) {
entries.Add(GetCounter(i));
}
entries.Print(os);
}
void RuntimeCallStats::Reset() {
if (V8_LIKELY(!TracingFlags::is_runtime_stats_enabled())) return;
// In tracing, we only what to trace the time spent on top level trace events,
// if runtime counter stack is not empty, we should clear the whole runtime
// counter stack, and then reset counters so that we can dump counters into
// top level trace events accurately.
while (current_timer_.Value()) {
current_timer_.SetValue(current_timer_.Value()->Stop());
}
for (int i = 0; i < kNumberOfCounters; i++) {
GetCounter(i)->Reset();
}
in_use_ = true;
}
void RuntimeCallStats::Dump(v8::tracing::TracedValue* value) {
for (int i = 0; i < kNumberOfCounters; i++) {
if (GetCounter(i)->count() > 0) GetCounter(i)->Dump(value);
}
in_use_ = false;
}
WorkerThreadRuntimeCallStats::WorkerThreadRuntimeCallStats()
: isolate_thread_id_(ThreadId::Current()) {}
WorkerThreadRuntimeCallStats::~WorkerThreadRuntimeCallStats() {
if (tls_key_) base::Thread::DeleteThreadLocalKey(*tls_key_);
}
base::Thread::LocalStorageKey WorkerThreadRuntimeCallStats::GetKey() {
base::MutexGuard lock(&mutex_);
DCHECK(TracingFlags::is_runtime_stats_enabled());
if (!tls_key_) tls_key_ = base::Thread::CreateThreadLocalKey();
return *tls_key_;
}
RuntimeCallStats* WorkerThreadRuntimeCallStats::NewTable() {
DCHECK(TracingFlags::is_runtime_stats_enabled());
// Never create a new worker table on the isolate's main thread.
DCHECK_NE(ThreadId::Current(), isolate_thread_id_);
std::unique_ptr<RuntimeCallStats> new_table =
std::make_unique<RuntimeCallStats>(RuntimeCallStats::kWorkerThread);
RuntimeCallStats* result = new_table.get();
base::MutexGuard lock(&mutex_);
tables_.push_back(std::move(new_table));
return result;
}
void WorkerThreadRuntimeCallStats::AddToMainTable(
RuntimeCallStats* main_call_stats) {
base::MutexGuard lock(&mutex_);
for (auto& worker_stats : tables_) {
DCHECK_NE(main_call_stats, worker_stats.get());
main_call_stats->Add(worker_stats.get());
worker_stats->Reset();
}
}
WorkerThreadRuntimeCallStatsScope::WorkerThreadRuntimeCallStatsScope(
WorkerThreadRuntimeCallStats* worker_stats)
: table_(nullptr) {
if (V8_LIKELY(!TracingFlags::is_runtime_stats_enabled())) return;
table_ = reinterpret_cast<RuntimeCallStats*>(
base::Thread::GetThreadLocal(worker_stats->GetKey()));
if (table_ == nullptr) {
table_ = worker_stats->NewTable();
base::Thread::SetThreadLocal(worker_stats->GetKey(), table_);
}
if ((TracingFlags::runtime_stats.load(std::memory_order_relaxed) &
v8::tracing::TracingCategoryObserver::ENABLED_BY_TRACING)) {
table_->Reset();
}
}
WorkerThreadRuntimeCallStatsScope::~WorkerThreadRuntimeCallStatsScope() {
if (V8_LIKELY(table_ == nullptr)) return;
if ((TracingFlags::runtime_stats.load(std::memory_order_relaxed) &
v8::tracing::TracingCategoryObserver::ENABLED_BY_TRACING)) {
auto value = v8::tracing::TracedValue::Create();
table_->Dump(value.get());
TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("v8.runtime_stats"),
"V8.RuntimeStats", TRACE_EVENT_SCOPE_THREAD,
"runtime-call-stats", std::move(value));
}
}
} // namespace internal
} // namespace v8
#endif // V8_RUNTIME_CALL_STATS
| [
"targos@protonmail.com"
] | targos@protonmail.com |
45fbbe61b63e9b74513817a0a1037ba9f275c1c9 | 2342085c5e062b20cb8bdd6e2135fcafc18a542f | /Room.h | 00700e1692f67e0b409a5ac91d28905fdb1294dd | [] | no_license | JaviOrtiz/Zork01 | a070f34c45c2fedefb1f45317b31d2f4025e0055 | 0c72c293507717552a81aac0377a8624d001b744 | refs/heads/master | 2021-01-10T16:31:18.225845 | 2016-04-15T10:00:11 | 2016-04-15T10:00:11 | 53,931,955 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 175 | h | #ifndef _Room
#define _Room
#include "Entity.h"
class Room:public Entity {
public:
Room(const char*, const char*);
public:
Room::Room();
Room::~Room();
};
#endif _Room
| [
"javito_97.prat@hotmail.com"
] | javito_97.prat@hotmail.com |
157556fa2b48e5fbc438ac32ca7d0e84e98a9857 | 141ae904ff93303a8153c7f6bb083ea7068cb97e | /IPK2/client_src/IException.cpp | 1abd8d2c938ab774fa3139bd6c9b98b42a3693aa | [
"Apache-2.0"
] | permissive | romanyaremchuk/FIT-VUT | d76f6774e701138a70e11e49b51b70e2382b11b6 | bb6f7f6eb1fea1f13952e0ab463e5aa69a84084c | refs/heads/master | 2021-06-08T11:26:20.228412 | 2016-05-02T17:57:11 | 2016-05-02T17:57:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,338 | cpp | /**
* @file IException.cpp
* @brief Projekt IPK 2 - Client
*
* @date 2013/03/02
* @author Frantisek Kolacek, xkolac12@stud.fit.vutbr.cz
*/
#include "IException.h"
const string IErrorTexts[] = {
"Invalid server hostname",
"Invalid server port",
"Invalid login",
"Invalid UID",
"Invalid search key",
"Invalid arguments",
"Cannot connect to remote host (invalid socket state)",
"Cannot create socket",
"Cannot resolve address to IP address",
"Cannot connect to remote host",
"Cannot read from socket",
"Cannot write to socket",
"Invalid response",
"Cannot compile regexp",
"Cannot open output file",
"System cautched undefined exception"
};
IException::IException(int code, string file, int line){
this->message = string(IErrorTexts[code]);
this->code = code;
this->file = file;
this->line = line;
}
IException::IException(string message, int code, string file, int line){
this->message = message;
this->code = code;
this->file = file;
this->line = line;
}
IException::~IException(){
//dtor
}
string IException::getMessage(){
return this->message;
}
int IException::getCode(){
return this->code;
}
string IException::getFile(){
return this->file;
}
int IException::getLine(){
return this->line;
}
| [
"fkolacek@redhat.com"
] | fkolacek@redhat.com |
7c17de008b530a4ee33aaf54b33de2249c2c7b5a | 896dbaed5100c9adada8db6abb24c648cb1254da | /src/modules/types.h | cbce24622b006eaff85e10491b69b7c4250fe6d3 | [] | no_license | autoantwort/Lichtsteuerung | 7fdd8a98718db50a4fea02973aac8c063422a259 | ee1f494bec5617229b72cb49aec3083f87fce164 | refs/heads/master | 2023-08-27T15:07:48.925720 | 2023-07-14T00:32:18 | 2023-07-14T00:32:18 | 222,066,667 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,947 | h | #ifndef TYPES_H
#define TYPES_H
#include "property.hpp"
#include <algorithm>
#include <cassert>
#include <cmath>
#include <iostream>
#include <stdexcept>
#include <vector>
namespace Modules {
enum ValueType { Brightness, RGB };
using time_diff_t = int;
using brightness_t = uint8_t;
static_assert(sizeof(brightness_t) == 1, "size of unsigned char is not 1");
struct hsl_t;
struct hsv_t;
struct rgb_t {
union {
struct {
union {
brightness_t r;
brightness_t red;
};
union {
brightness_t g;
brightness_t green;
};
union {
brightness_t b;
brightness_t blue;
};
};
brightness_t rgb[3];
};
rgb_t(brightness_t r = 0, brightness_t g = 0, brightness_t b = 0) : r(r), g(g), b(b) {}
rgb_t(int r, int g, int b) : r(std::clamp(r, 0, 255)), g(std::clamp(g, 0, 255)), b(std::clamp(b, 0, 255)) {}
rgb_t(Modules::hsl_t hsl);
rgb_t(Modules::hsv_t hsv);
hsl_t toHSL() const;
hsv_t toHSV() const;
rgb_t &operator*(brightness_t b) {
this->r *= b / 255.f;
this->g *= b / 255.f;
this->b *= b / 255.f;
return *this;
}
bool operator==(rgb_t other) const { return r == other.r && g == other.g && b == other.b; }
bool operator!=(rgb_t other) const { return !(*this == other); }
};
static_assert(sizeof(rgb_t) == 3, "size of rgb_t is not 3");
inline std::ostream &operator<<(std::ostream &o, const rgb_t rgb) {
o << "rgb{red=" << static_cast<int>(rgb.r) << ",green=" << static_cast<int>(rgb.g) << ",blue=" << static_cast<int>(rgb.b) << "}";
return o;
}
struct hsl_t {
union {
float h;
float hue;
};
union {
float s;
float saturation;
};
union {
float l;
float lightness;
};
hsl_t(float hue, float saturation = 1.f, float lightness = .5f) : h(hue), s(saturation), l(lightness) {}
hsl_t() : h(0), s(1.f), l(0.f) {}
hsl_t(const rgb_t rgb);
hsl_t(const hsv_t rgb);
bool isValid() const { return h >= 0 && h <= 360 && s >= 0 && s <= 1 && l >= 0 && l <= 1; }
void clampHueToRange() {
hue = std::fmod(hue, 360.f);
if (hue < 0) {
hue += 360;
}
}
void clampToRanges() {
s = std::clamp(s, 0.f, 1.f);
l = std::clamp(l, 0.f, 1.f);
clampHueToRange();
}
rgb_t toRGB() const { return rgb_t(*this); }
hsv_t toHSV() const;
};
inline std::ostream &operator<<(std::ostream &o, const hsl_t hsl) {
o << "hsl{hue=" << hsl.hue << ",saturation=" << hsl.saturation << ",lightness=" << hsl.lightness << "}";
return o;
}
inline hsl_t::hsl_t(const rgb_t rgb) {
// see https://de.wikipedia.org/wiki/HSV-Farbraum#Umrechnung_RGB_in_HSV/HSL
const auto max = std::max(rgb.r, std::max(rgb.g, rgb.b));
const auto min = std::min(rgb.r, std::min(rgb.g, rgb.b));
const auto c = max - min;
if (c == 0) {
hue = 0;
} else {
const auto cf = c / 255.f;
if (max == rgb.r) {
const float diff = (rgb.g - rgb.b) / cf;
hue = diff / c;
} else if (max == rgb.g) {
const float diff = (rgb.b - rgb.r) / cf;
hue = 2 + diff / c;
} else if (max == rgb.b) {
const float diff = (rgb.r - rgb.g) / cf;
hue = 4 + diff / c;
}
hue *= 60.f;
if (hue < 0) {
hue *= 360.f;
}
}
if (min == 255 || max == 0) {
s = 0;
} else {
const float m = (max - min) / 255.f;
const float p = (max + min) / 255.f;
s = m / (1 - std::abs(p - 1));
}
l = (max + min) / (2 * 255.f);
}
inline hsl_t rgb_t::toHSL() const {
return hsl_t(*this);
}
inline rgb_t::rgb_t(const hsl_t hsl) {
// see https://en.wikipedia.org/wiki/HSL_and_HSV#HSL_to_RGB_alternative
const auto kf = [&](const auto n) { return std::fmod(n + hsl.h / 30, 12.f); };
const auto a = [&]() { return hsl.s * std::min(hsl.l, 1 - hsl.l); };
const auto f = [&](const auto n) {
const auto k = kf(n);
return hsl.l - a() * std::max(std::min(1.f, std::min(k - 3, 9 - k)), -1.f);
};
r = static_cast<brightness_t>(f(0) * 255.f);
g = static_cast<brightness_t>(f(8) * 255.f);
b = static_cast<brightness_t>(f(4) * 255.f);
}
struct hsv_t {
union {
float h;
float hue;
};
union {
float s;
float saturation;
};
union {
float v;
float value;
};
hsv_t(float hue, float saturation = 1.f, float value = 1.f) : h(hue), s(saturation), v(value) {}
hsv_t() : h(0), s(1.f), v(0.f) {}
hsv_t(const rgb_t rgb);
hsv_t(const hsl_t hsl);
bool isValid() const { return h >= 0 && h <= 360 && s >= 0 && s <= 1 && v >= 0 && v <= 1; }
void clampHueToRange() {
hue = std::fmod(hue, 360.f);
if (hue < 0) {
hue += 360;
}
}
void clampToRanges() {
s = std::clamp(s, 0.f, 1.f);
v = std::clamp(v, 0.f, 1.f);
clampHueToRange();
}
rgb_t toRGB() const { return *this; }
hsl_t toHSL() const { return *this; }
};
inline std::ostream &operator<<(std::ostream &o, const hsv_t hsv) {
o << "hsv{hue=" << hsv.hue << ",saturation=" << hsv.saturation << ",value=" << hsv.value << "}";
return o;
}
inline hsv_t::hsv_t(const rgb_t rgb) {
// see https://de.wikipedia.org/wiki/HSV-Farbraum#Umrechnung_RGB_in_HSV/HSL
const auto max = std::max(rgb.r, std::max(rgb.g, rgb.b));
const auto min = std::min(rgb.r, std::min(rgb.g, rgb.b));
const auto c = max - min;
if (c == 0) {
hue = 0;
} else {
const auto cf = c / 255.f;
if (max == rgb.r) {
const float diff = (rgb.g - rgb.b) / cf;
hue = diff / c;
} else if (max == rgb.g) {
const float diff = (rgb.b - rgb.r) / cf;
hue = 2 + diff / c;
} else if (max == rgb.b) {
const float diff = (rgb.r - rgb.g) / cf;
hue = 4 + diff / c;
}
hue *= 60.f;
if (hue < 0) {
hue *= 360.f;
}
}
if (max == 0) {
s = 0;
} else {
s = (max - min) / static_cast<float>(max);
}
v = max / 255.f;
}
inline hsv_t::hsv_t(const hsl_t hsl) : hue(hsl.hue) {
// see https://en.wikipedia.org/wiki/HSL_and_HSV#HSL_to_HSV
v = hsl.l + hsl.s * std::min(hsl.l, 1.f - hsl.l);
s = v <= std::numeric_limits<float>::epsilon() * 2 ? 0 : 2 - 2 * hsl.l / v;
}
inline hsl_t::hsl_t(const hsv_t hsv) : hue(hsv.hue) {
// see https://en.wikipedia.org/wiki/HSL_and_HSV#HSV_to_HSL
l = hsv.v - hsv.v * hsv.s / 2.f;
if (l <= std::numeric_limits<float>::epsilon() * 2 || (1.f - l) <= std::numeric_limits<float>::epsilon() * 2) {
l = 0;
} else {
s = (hsv.v - l) / std::min(l, 1.f - l);
}
}
inline hsv_t rgb_t::toHSV() const {
return *this;
}
inline hsv_t hsl_t::toHSV() const {
return *this;
}
inline rgb_t::rgb_t(const hsv_t hsv) {
// see https://en.wikipedia.org/wiki/HSL_and_HSV#HSV_to_RGB_alternative
const auto kf = [&](const auto n) { return std::fmod(n + hsv.h / 60, 6.f); };
const auto f = [&](const auto n) {
const auto k = kf(n);
return hsv.v - hsv.v * hsv.s * std::max(std::min(1.f, std::min(k, 4 - k)), 0.f);
};
r = static_cast<brightness_t>(f(5) * 255.f);
g = static_cast<brightness_t>(f(3) * 255.f);
b = static_cast<brightness_t>(f(1) * 255.f);
}
/**
* @brief typeToEnum return for the brightness_t and rgb_t the right enum value
* @return the enum value represents the real type
*/
template <typename VT>
ValueType typeToEnum() {
static_assert(std::is_same<VT, brightness_t>::value || std::is_same<VT, rgb_t>::value, "Not a value type");
if constexpr (std::is_same<VT, brightness_t>::value) {
return Brightness;
}
return RGB;
}
/**
* @brief getSizeOfEnumType return for Brightness and RGB the size of the type brightness_t and rwg_t
* @param t the type
* @return the size of the type
*/
inline size_t getSizeOfEnumType(ValueType t) {
switch (t) {
case Brightness: return sizeof(brightness_t);
case RGB: return sizeof(rgb_t);
}
assert(false && "Nicht im Enum");
return 0;
}
class PropertyBase : public Serilerizeable {
protected:
std::vector<Property *> properties;
public:
const std::vector<Property *> &getProperties() const { return properties; }
void load(const LoadObject &l) override {
for (auto &p : properties) {
p->load(l);
}
}
void save(SaveObject &s) const override {
for (auto &p : properties) {
p->save(s);
}
}
};
class OutputDataProducer {
const ValueType outputDataType;
public:
OutputDataProducer(const ValueType outputDataType) : outputDataType(outputDataType) {}
virtual ~OutputDataProducer() = default;
inline ValueType getOutputType() const { return outputDataType; }
virtual unsigned int getOutputLength() const = 0;
/**
* @brief getOutputData gibt einen Pointer auf die Ausgabedaten zurück, diese müssen sizeOf(Type) * outputLength groß sein
* @return
*/
virtual void *getOutputData() = 0;
};
class InputDataConsumer {
const ValueType inputDataType;
public:
InputDataConsumer(const ValueType inputDataType) : inputDataType(inputDataType) {}
virtual ~InputDataConsumer() = default;
/**
* @brief getInputType gibt den Typ der Eingabedaten an.
* @return brighness_t or rgb_t
*/
inline ValueType getInputType() const { return inputDataType; }
virtual unsigned int getInputLength() const = 0;
/**
* @brief setInputData setzt die eingabedaten, angezeigt werden sie mit show
* @param data Die daten die angezeigt werden soll
* @param index Der start index ab dem die daten in den input array geschrieben werden
* @param length die anzahl der daten in void * data
*/
virtual void setInputData(void *data, unsigned int index, unsigned int length) = 0;
};
/**
* @brief The BoundedArray class maps index acces lower 0 to 0 and index access greater length-1 to length-1
*/
template <typename Type>
class BoundedArray {
Type *data;
size_t length;
public:
BoundedArray(Type *data, size_t length) : data(data), length(length) {}
Type &operator[](std::size_t idx) { return idx < length ? data[idx] : data[length - 1]; }
const Type &operator[](std::size_t idx) const { return idx < length ? data[idx] : data[length - 1]; }
Type &operator[](int i) {
if (i >= 0) {
if (i < length) {
return data[i];
} else {
return data[length - 1];
}
} else {
return data[0];
}
}
const Type &operator[](int i) const {
if (i >= 0) {
if (i < length) {
return data[i];
} else {
return data[length - 1];
}
} else {
return data[0];
}
}
};
/**
* @brief The WrappedArray class maps index acces lower 0 to length - i and index access greater length-1 to i - length
*/
template <typename Type>
class WrappedArray {
Type *data;
size_t length;
public:
WrappedArray(Type *data, size_t length) : data(data), length(length) {}
// Type& operator[](std::size_t idx) { return idx<length?data[idx]:data[length-1]; }
// const Type& operator[](std::size_t idx) const { return idx<length?data[idx]:data[length-1]; }
Type &operator[](int i) {
if (i >= 0) {
if (i < length) {
return data[i];
} else {
return data[i % length];
}
} else {
return data[((i % static_cast<int>(length)) + length) % length];
}
}
const Type &operator[](int i) const {
if (i >= 0) {
if (i < length) {
return data[i];
} else {
return data[i % length];
}
} else {
return data[((i % static_cast<int>(length)) + length) % length];
}
}
};
using namespace std::string_literals;
class IndexOutOfBoundsException : public std::exception {
public:
const int min, max, index;
std::string message;
IndexOutOfBoundsException(int min, int max, int index)
: min(min)
, max(max)
, index(index)
, message("IndexOutOfBoundsException min: "s + std::to_string(min) + " max: " + std::to_string(max) + " your index: " + std::to_string(index)) {}
virtual const char *what() const noexcept override { return message.c_str(); }
};
/**
* @brief The CheckedArray class does index bounds checking
*/
template <typename Type>
class CheckedArray {
size_t length;
Type *data;
public:
CheckedArray(Type *data, size_t length) : data(data), length(length) {}
Type &operator[](std::size_t idx) { return idx < length ? data[idx] : throw IndexOutOfBoundsException(0, length - 1, idx); }
const Type &operator[](std::size_t idx) const { return idx < length ? data[idx] : throw IndexOutOfBoundsException(0, length - 1, idx); }
Type &operator[](int i) {
if (i >= 0 && i < length) {
return data[i];
} else {
throw IndexOutOfBoundsException(0, length - 1, i);
}
}
const Type &operator[](int i) const {
if (i >= 0 && i < length) {
return data[i];
} else {
throw IndexOutOfBoundsException(0, length - 1, i);
}
}
};
class Named {
public:
virtual const char *getName() const = 0;
virtual ~Named() = default;
};
/**
* Must be here, in the Property.hpp we have no rgb_t type
* @brief The RGBProperty class is a Property wrapper araoud the rgb_t type
*/
class RGBProperty : public Property {
rgb_t value;
public:
RGBProperty() : Property(Property::RGB), value(0, 0, 0) {}
void save(SaveObject &o) const override {
auto red = name + "_red";
auto green = name + "_green";
auto blue = name + "_blue";
o.saveInt(red.c_str(), value.red);
o.saveInt(green.c_str(), value.green);
o.saveInt(blue.c_str(), value.blue);
}
void load(const LoadObject &l) override {
auto red = name + "_red";
auto green = name + "_green";
auto blue = name + "_blue";
value.red = l.loadInt(red.c_str(), value.red);
value.green = l.loadInt(green.c_str(), value.green);
value.blue = l.loadInt(blue.c_str(), value.blue);
}
const rgb_t &operator*() const { return value; }
rgb_t &operator*() { return value; }
void setRGB(const rgb_t &v) { value = v; }
rgb_t getRGB() const { return value; }
};
} // namespace Modules
#endif // TYPES_H
| [
"Leander.Schulten@rwth-aachen.de"
] | Leander.Schulten@rwth-aachen.de |
0334ba5a2d11faf51b5ca310ca51bb51a91c660b | 4a9236d66fb84dcaeac2e24bf07d6b0aa938acc9 | /main.cpp | dc956f7a861ee23d813a4207cf0ee19677222cfe | [
"MIT"
] | permissive | picohari/ssd1306_QEmulator | 8eac5c1a580a01c7559ed658d8d076323590c0a2 | 0dbc2788944ec04b1704cf6657f12e59c3611b4f | refs/heads/master | 2020-03-29T20:27:31.047124 | 2018-10-27T13:34:13 | 2018-10-27T13:34:13 | 150,313,201 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,517 | cpp | /*
main.cpp - main file
Copyright (C) 2015 Balázs Kóti (ktibalazs@gmail.com)
Copyright (C) 2018 DK6YF (picohari@gmail.com)
This file is part of Adafruit SSD1306 OLED screen emulator for development.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
#include "mainwindow.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
while(w.isVisible()) {
w.loop_menu();
a.processEvents();
}
return 0;
//return a.exec();
}
| [
"picohari@googlemail.com"
] | picohari@googlemail.com |
104211a809907d6b2f6fd10e3a429894af5549bc | 067690553cf7fa81b5911e8dd4fb405baa96b5b7 | /5426/5426.cpp | d11229e136ff4cd3fd0e737612a18a89b4871e06 | [
"MIT"
] | permissive | isac322/BOJ | 4c79aab453c884cb253e7567002fc00e605bc69a | 35959dd1a63d75ebca9ed606051f7a649d5c0c7b | refs/heads/master | 2021-04-18T22:30:05.273182 | 2019-02-21T11:36:58 | 2019-02-21T11:36:58 | 43,806,421 | 14 | 9 | null | null | null | null | UTF-8 | C++ | false | false | 314 | cpp | #include <cstdio>
#include <cmath>
using namespace std;
int main() {
int t, len;
scanf("%d\n", &t);
char str[10010];
while (t--) {
for (len = 0; (str[len++] = getchar()) != 10;);
int sq = sqrt(len);
for (int i = sq - 1; i >= 0; i--) for (int j = 0; j < sq; j++) putchar(str[i + j*sq]);
puts("");
}
} | [
"isac322@naver.com"
] | isac322@naver.com |
7d21f18800ae7ee7e6c7a9f6330ca415fbf1d9b6 | 76f0efb245ff0013e0428ee7636e72dc288832ab | /out/Default/gen/blink/bindings/core/v8/V8WheelEvent.h | 5d40a1b622752583ecfb4ad28e107cd75e3902d0 | [] | no_license | dckristiono/chromium | e8845d2a8754f39e0ca1d3d3d44d01231957367c | 8ad7c1bd5778bfda3347cf6b30ef60d3e4d7c0b9 | refs/heads/master | 2020-04-22T02:34:41.775069 | 2016-08-24T14:05:09 | 2016-08-24T14:05:09 | 66,465,243 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,253 | h | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
#ifndef V8WheelEvent_h
#define V8WheelEvent_h
#include "bindings/core/v8/GeneratedCodeHelper.h"
#include "bindings/core/v8/ScriptWrappable.h"
#include "bindings/core/v8/ToV8.h"
#include "bindings/core/v8/V8Binding.h"
#include "bindings/core/v8/V8DOMWrapper.h"
#include "bindings/core/v8/V8MouseEvent.h"
#include "bindings/core/v8/WrapperTypeInfo.h"
#include "core/CoreExport.h"
#include "core/events/WheelEvent.h"
#include "platform/heap/Handle.h"
namespace blink {
class V8WheelEvent {
STATIC_ONLY(V8WheelEvent);
public:
CORE_EXPORT static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*);
static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Value>, v8::Isolate*);
CORE_EXPORT static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*, const DOMWrapperWorld&);
static WheelEvent* toImpl(v8::Local<v8::Object> object)
{
return toScriptWrappable(object)->toImpl<WheelEvent>();
}
CORE_EXPORT static WheelEvent* toImplWithTypeCheck(v8::Isolate*, v8::Local<v8::Value>);
CORE_EXPORT static const WrapperTypeInfo wrapperTypeInfo;
template<typename VisitorDispatcher>
static void trace(VisitorDispatcher visitor, ScriptWrappable* scriptWrappable)
{
visitor->trace(scriptWrappable->toImpl<WheelEvent>());
}
static void traceWrappers(WrapperVisitor* visitor, ScriptWrappable* scriptWrappable)
{
visitor->traceWrappers(scriptWrappable->toImpl<WheelEvent>());
}
static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&);
static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0;
CORE_EXPORT static void preparePrototypeAndInterfaceObject(v8::Local<v8::Context>, const DOMWrapperWorld&, v8::Local<v8::Object> prototypeObject, v8::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfaceTemplate) { }
};
template <>
struct V8TypeOf<WheelEvent> {
typedef V8WheelEvent Type;
};
} // namespace blink
#endif // V8WheelEvent_h
| [
"dckristiono@gmail.com"
] | dckristiono@gmail.com |
c734a51354c436eeb06e5c05d7a2226578173f8f | 2277375bd4a554d23da334dddd091a36138f5cae | /ThirdParty/Havok/Source/Common/Compat/Patches/2012_1/hkaiPatches_2012_1.cxx | 01871d7c3fe40be1d5db357c31f3536ddd7c88cf | [] | no_license | kevinmore/Project-Nebula | 9a0553ccf8bdc1b4bb5e2588fc94516d9e3532bc | f6d284d4879ae1ea1bd30c5775ef8733cfafa71d | refs/heads/master | 2022-10-22T03:55:42.596618 | 2020-06-19T09:07:07 | 2020-06-19T09:07:07 | 25,372,691 | 6 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 15,816 | cxx | /*
*
* Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's
* prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok.
* Product and Trade Secret source code contains trade secrets of Havok. Havok Software (C) Copyright 1999-2013 Telekinesys Research Limited t/a Havok. All Rights Reserved. Use of this software is subject to the terms of an end user license agreement.
*
*/
// Ai specific product patches applied to release 2012_1.
// This file is #included by hkaiPatches_2012_1.cpp
HK_PATCH_BEGIN("hkaiAstarOutputParameters", 0, "hkaiAstarOutputParameters", 1)
HK_PATCH_MEMBER_DEFAULT_SET_INT("numIterations", 0)
HK_PATCH_MEMBER_DEFAULT_SET_INT("goalIndex", -1)
HK_PATCH_MEMBER_DEFAULT_SET_INT("status", 0)
HK_PATCH_MEMBER_ADDED_BYTE("terminationCause", 0)
HK_PATCH_END()
HK_PATCH_BEGIN("hkaiPathFollowingProperties", 4, "hkaiPathFollowingProperties",5)
HK_PATCH_MEMBER_ADDED_INT("incompleteRepathSegments", 8)
HK_PATCH_MEMBER_ADDED_BYTE("repairPaths", 1)
HK_PATCH_MEMBER_ADDED_BYTE("setManualControlOnUserEdges", 0)
HK_PATCH_MEMBER_ADDED_REAL("userEdgeTolerance", 0.250000f)
HK_PATCH_END()
HK_PATCH_BEGIN("hkaiAvoidanceSolverMovementProperties", 5, "hkaiAvoidanceSolverMovementProperties", 6)
HK_PATCH_MEMBER_ADDED_REAL("leftTurnRadius", -1.000000f)
HK_PATCH_MEMBER_ADDED_REAL("rightTurnRadius", -1.000000f)
HK_PATCH_END()
HK_PATCH_BEGIN("hkaiAvoidanceSolverAvoidanceProperties", 9, "hkaiAvoidanceSolverAvoidanceProperties", 10)
HK_PATCH_MEMBER_DEFAULT_SET_REAL("limitBoundaryDistance", -1.000000f)
HK_PATCH_MEMBER_ADDED_BYTE("avoidanceSolverType", 0)
HK_PATCH_MEMBER_ADDED_BYTE("nearbyBoundariesSearchType", 1)
HK_PATCH_MEMBER_ADDED_REAL("velocityHysteresis", 0.010000f)
HK_PATCH_MEMBER_ADDED_REAL("sidednessChangingPenalty", 0.000000f)
HK_PATCH_MEMBER_ADDED_INT("maxNeighbors", 16)
HK_PATCH_MEMBER_DEFAULT_SET_REAL("wallFollowingFactor", 0.010000f)
HK_PATCH_MEMBER_ADDED("localSensorAabb", TYPE_STRUCT, "hkAabb", 0)
HK_PATCH_DEPENDS("hkAabb", 0)
HK_PATCH_MEMBER_ADDED_REAL("wallFollowingAngle", 0.100000f)
HK_PATCH_FUNCTION(hkaiAvoidanceSolverAvoidanceProperties_9_to_10)
HK_PATCH_MEMBER_REMOVED("wallFollowingFactor", TYPE_REAL, HK_NULL, 0)
HK_PATCH_END()
HK_PATCH_BEGIN("hkaiLocalSteeringInput", 4, "hkaiLocalSteeringInput", 5)
HK_PATCH_MEMBER_ADDED("sidednessChangingPenalty", TYPE_REAL, HK_NULL, 0)
HK_PATCH_MEMBER_ADDED("maximumVelocity", TYPE_REAL, HK_NULL, 0)
HK_PATCH_MEMBER_ADDED("velocityHysteresis", TYPE_REAL, HK_NULL, 0)
HK_PATCH_MEMBER_ADDED("enableLocalSteering", TYPE_BYTE, HK_NULL, 0)
HK_PATCH_MEMBER_ADDED("localGoalPlane", TYPE_VEC_4, HK_NULL, 0)
HK_PATCH_MEMBER_ADDED("wallFollowingAngle", TYPE_REAL, HK_NULL, 0)
HK_PATCH_FUNCTION(hkaiLocalSteeringInput_4_to_5)
HK_PATCH_MEMBER_REMOVED("wallFollowingFactor", TYPE_REAL, HK_NULL, 0)
HK_PATCH_MEMBER_REMOVED("nextCorner", TYPE_VEC_4, HK_NULL, 0)
HK_PATCH_END()
HK_PATCH_BEGIN("hkaiNavMesh", 13, "hkaiNavMesh", 14)
HK_PATCH_MEMBER_ADDED("faceData", TYPE_ARRAY_INT, HK_NULL, 0)
HK_PATCH_MEMBER_ADDED("edgeData", TYPE_ARRAY_INT, HK_NULL, 0)
HK_PATCH_MEMBER_ADDED_INT("faceDataStriding", 1)
HK_PATCH_MEMBER_ADDED_INT("edgeDataStriding", 1)
HK_PATCH_FUNCTION(hkaiNavMesh_13_to_14)
HK_PATCH_END()
HK_PATCH_BEGIN("hkaiNavMeshInstance", 3, "hkaiNavMeshInstance", 4)
HK_PATCH_MEMBER_ADDED("instancedFaceData", TYPE_ARRAY_INT, HK_NULL, 0)
HK_PATCH_MEMBER_ADDED("instancedEdgeData", TYPE_ARRAY_INT, HK_NULL, 0)
HK_PATCH_MEMBER_ADDED("ownedFaceData", TYPE_ARRAY_INT, HK_NULL, 0)
HK_PATCH_MEMBER_ADDED("ownedEdgeData", TYPE_ARRAY_INT, HK_NULL, 0)
HK_PATCH_FUNCTION(hkaiNavMeshInstance_3_to_4)
HK_PATCH_END()
HK_PATCH_BEGIN("hkaiNavMeshEdge", 7, "hkaiNavMeshEdge", 8)
HK_PATCH_MEMBER_REMOVED("data", TYPE_INT, HK_NULL, 0)
HK_PATCH_MEMBER_REMOVED("padding", TYPE_INT, HK_NULL, 0)
HK_PATCH_END()
HK_PATCH_BEGIN("hkaiNavMeshFace", 5, "hkaiNavMeshFace", 6)
HK_PATCH_MEMBER_REMOVED("data", TYPE_INT, HK_NULL, 0)
HK_PATCH_END()
HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkaiNavMeshSimplificationUtilsExtraVertexSettings", 0)
HK_PATCH_MEMBER_ADDED_REAL("vertexFraction", 0.025000f)
HK_PATCH_MEMBER_ADDED_REAL("minPartitionArea", 1000.000000f)
HK_PATCH_MEMBER_ADDED_INT("numSmoothingIterations", 20)
HK_PATCH_MEMBER_ADDED_REAL("iterationDamping", 0.050000f)
HK_PATCH_END()
HK_PATCH_BEGIN("hkaiNavMeshSimplificationUtilsSettings", 11, "hkaiNavMeshSimplificationUtilsSettings", 12)
HK_PATCH_MEMBER_ADDED("extraVertexSettings", TYPE_STRUCT, "hkaiNavMeshSimplificationUtilsExtraVertexSettings", 0)
HK_PATCH_DEPENDS("hkaiNavMeshSimplificationUtilsExtraVertexSettings", 0)
HK_PATCH_END()
HK_PATCH_BEGIN("hkaiCharacter", 26, "hkaiCharacter", 27)
HK_PATCH_MEMBER_REMOVED("maxNeighbors", TYPE_INT, HK_NULL, 0)
HK_PATCH_MEMBER_REMOVED("avoidanceSolverType", TYPE_BYTE, HK_NULL, 0)
HK_PATCH_MEMBER_REMOVED("nearbyBoundariesSearchType", TYPE_BYTE, HK_NULL, 0)
HK_PATCH_MEMBER_REMOVED("localSensorAabb", TYPE_STRUCT, "hkAabb", 0)
HK_PATCH_DEPENDS("hkAabb", 0)
HK_PATCH_END()
HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkaiEdgePathEdge", 0)
HK_PATCH_MEMBER_ADDED("left", TYPE_VEC_4, HK_NULL, 0)
HK_PATCH_MEMBER_ADDED("right", TYPE_VEC_4, HK_NULL, 0)
HK_PATCH_MEMBER_ADDED("up", TYPE_VEC_4, HK_NULL, 0)
HK_PATCH_MEMBER_ADDED("followingTransform", TYPE_VEC_16, HK_NULL, 0)
HK_PATCH_MEMBER_ADDED("face", TYPE_INT, HK_NULL, 0)
HK_PATCH_MEMBER_ADDED("flags", TYPE_BYTE, HK_NULL, 0)
HK_PATCH_END()
HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkaiEdgePath", 0)
HK_PATCH_PARENT_SET(HK_NULL, "hkReferencedObject")
HK_PATCH_MEMBER_ADDED("edges", TYPE_ARRAY_STRUCT, "hkaiEdgePathEdge", 0)
HK_PATCH_MEMBER_ADDED("edgeData", TYPE_ARRAY_INT, HK_NULL, 0)
HK_PATCH_MEMBER_ADDED_INT("edgeDataStriding", 0)
HK_PATCH_MEMBER_ADDED("leftTurnRadius", TYPE_REAL, HK_NULL, 0)
HK_PATCH_MEMBER_ADDED("rightTurnRadius", TYPE_REAL, HK_NULL, 0)
HK_PATCH_DEPENDS("hkBaseObject", 0)
HK_PATCH_DEPENDS("hkaiEdgePathEdge", 0)
HK_PATCH_DEPENDS("hkReferencedObject", 0)
HK_PATCH_END()
HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkaiPersistentFaceKey", 0)
HK_PATCH_MEMBER_ADDED("key", TYPE_INT, HK_NULL, 0)
HK_PATCH_MEMBER_ADDED("offset", TYPE_INT, HK_NULL, 0)
HK_PATCH_END()
HK_PATCH_BEGIN("hkaiEdgePathEdge", 0, "hkaiEdgePathEdge", 1)
HK_PATCH_MEMBER_ADDED("facePersistent", TYPE_STRUCT, "hkaiPersistentFaceKey", 0)
HK_PATCH_FUNCTION(hkaiEdgePathEdge_0_to_1)
HK_PATCH_MEMBER_REMOVED("face", TYPE_INT, HK_NULL, 0)
HK_PATCH_MEMBER_RENAMED("facePersistent", "face")
HK_PATCH_DEPENDS("hkaiPersistentFaceKey", 0)
HK_PATCH_END()
HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkaiAvoidanceSolverSphereObstacle", 0)
HK_PATCH_MEMBER_ADDED("sphere", TYPE_STRUCT, "hkSphere", 0)
HK_PATCH_MEMBER_ADDED("velocity", TYPE_VEC_4, HK_NULL, 0)
HK_PATCH_DEPENDS("hkSphere", 0)
HK_PATCH_END()
HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkaiAvoidanceSolverBoundaryObstacle", 0)
HK_PATCH_MEMBER_ADDED("start", TYPE_VEC_4, HK_NULL, 0)
HK_PATCH_MEMBER_ADDED("end", TYPE_VEC_4, HK_NULL, 0)
HK_PATCH_END()
HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkaiSimpleObstacleGenerator", 0)
HK_PATCH_PARENT_SET(HK_NULL, "hkaiObstacleGenerator")
HK_PATCH_MEMBER_ADDED("localAabb", TYPE_STRUCT, "hkAabb", 0)
HK_PATCH_DEPENDS("hkBaseObject", 0)
HK_PATCH_DEPENDS("hkAabb", 0)
HK_PATCH_DEPENDS("hkaiObstacleGenerator", 0)
HK_PATCH_DEPENDS("hkReferencedObject", 0)
HK_PATCH_END()
#if defined(HK_FEATURE_PRODUCT_AI) && defined(HK_FEATURE_PRODUCT_PHYSICS_2012)
HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkaiRigidBodyObstacleGenerator", 0)
HK_PATCH_PARENT_SET(HK_NULL, "hkaiObstacleGenerator")
HK_PATCH_MEMBER_ADDED_REAL("velocityThreshold", 3.000000f)
HK_PATCH_MEMBER_ADDED("rigidBody", TYPE_OBJECT, "hkpRigidBody", 0)
HK_PATCH_DEPENDS("hkpRigidBody", 0)
HK_PATCH_DEPENDS("hkpEntity", 3)
HK_PATCH_DEPENDS("hkBaseObject", 0)
HK_PATCH_DEPENDS("hkpWorldObject", 0)
HK_PATCH_DEPENDS("hkaiObstacleGenerator", 0)
HK_PATCH_DEPENDS("hkReferencedObject", 0)
HK_PATCH_END()
#endif
HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkaiObstacleGenerator", 0)
HK_PATCH_PARENT_SET(HK_NULL, "hkReferencedObject")
HK_PATCH_MEMBER_ADDED("useSpheres", TYPE_BYTE, HK_NULL, 0)
HK_PATCH_MEMBER_ADDED("useBoundaries", TYPE_BYTE, HK_NULL, 0)
HK_PATCH_MEMBER_ADDED("clipBoundaries", TYPE_BYTE, HK_NULL, 0)
HK_PATCH_MEMBER_ADDED("transform", TYPE_VEC_16, HK_NULL, 0)
HK_PATCH_MEMBER_ADDED("spheres", TYPE_ARRAY_STRUCT, "hkaiAvoidanceSolverSphereObstacle", 0)
HK_PATCH_MEMBER_ADDED("boundaries", TYPE_ARRAY_STRUCT, "hkaiAvoidanceSolverBoundaryObstacle", 0)
HK_PATCH_MEMBER_ADDED("userData", TYPE_INT, HK_NULL, 0)
HK_PATCH_DEPENDS("hkBaseObject", 0)
HK_PATCH_DEPENDS("hkaiAvoidanceSolverBoundaryObstacle", 0)
HK_PATCH_DEPENDS("hkaiAvoidanceSolverSphereObstacle", 0)
HK_PATCH_DEPENDS("hkReferencedObject", 0)
HK_PATCH_END()
HK_PATCH_BEGIN("hkaiWorld", 29, "hkaiWorld", 30)
HK_PATCH_MEMBER_ADDED("obstacleGenerators", TYPE_ARRAY_OBJECT, "hkaiObstacleGenerator", 0)
HK_PATCH_DEPENDS("hkaiObstacleGenerator", 0)
HK_PATCH_END()
HK_PATCH_BEGIN("hkaiWorldCharacterStepSerializableContext", 1, "hkaiWorldCharacterStepSerializableContext", 2)
HK_PATCH_MEMBER_ADDED("obstacleGenerators", TYPE_ARRAY_OBJECT, "hkaiObstacleGenerator", 0)
HK_PATCH_DEPENDS("hkaiObstacleGenerator", 0)
HK_PATCH_END()
HK_PATCH_BEGIN("hkaiPointCloudSilhouetteGenerator", 0, "hkaiPointCloudSilhouetteGenerator", 1)
HK_PATCH_MEMBER_ADDED("silhouetteSizes", TYPE_ARRAY_INT, HK_NULL, 0)
HK_PATCH_MEMBER_ADDED_BYTE("silhouetteDetailLevel", 1)
//HK_PATCH_FUNCTION(hkaiPointCloudSilhouetteGenerator_0_to_1)
HK_PATCH_END()
HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkaiRigidBodySilhouetteGeneratorBase", 0)
HK_PATCH_PARENT_SET(HK_NULL, "hkaiPointCloudSilhouetteGenerator")
HK_PATCH_MEMBER_ADDED_VEC_4("linearVelocityAndThreshold", 0.000000f,0.000000f,0.000000f,3.000000f)
HK_PATCH_DEPENDS("hkaiSilhouetteGenerator", 0)
HK_PATCH_DEPENDS("hkBaseObject", 0)
HK_PATCH_DEPENDS("hkaiPointCloudSilhouetteGenerator", 1)
HK_PATCH_DEPENDS("hkReferencedObject", 0)
HK_PATCH_END()
#if defined(HK_FEATURE_PRODUCT_AI) && defined(HK_FEATURE_PRODUCT_PHYSICS_2012)
HK_PATCH_BEGIN("hkaiRigidBodySilhouetteGenerator", 0, "hkaiRigidBodySilhouetteGenerator", 1)
HK_PATCH_PARENT_SET("hkaiSilhouetteGenerator", "hkaiRigidBodySilhouetteGeneratorBase")
//HK_PATCH_FUNCTION(hkaiRigidBodySilhouetteGenerator_0_to_1)
HK_PATCH_MEMBER_REMOVED("detailLevel", TYPE_BYTE, HK_NULL, 0)
HK_PATCH_MEMBER_REMOVED("linearVelocityAndThreshold", TYPE_VEC_4, HK_NULL, 0)
HK_PATCH_END()
#endif
HK_PATCH_BEGIN("hkaiEdgeGeometryFace", 0, "hkaiEdgeGeometryFace", 1)
HK_PATCH_MEMBER_ADDED("flags", TYPE_BYTE, HK_NULL, 0)
HK_PATCH_END()
HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkaiDefaultAstarEdgeFilter", 1)
HK_PATCH_PARENT_SET(HK_NULL, "hkaiAstarEdgeFilter")
HK_PATCH_MEMBER_ADDED("edgeMaskLookupTable", TYPE_TUPLE_INT, HK_NULL, 32)
HK_PATCH_DEPENDS("hkBaseObject", 0)
HK_PATCH_DEPENDS("hkaiAstarEdgeFilter", 0)
HK_PATCH_DEPENDS("hkReferencedObject", 0)
HK_PATCH_END()
HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkaiAstarEdgeFilter", 0)
HK_PATCH_PARENT_SET(HK_NULL, "hkReferencedObject")
HK_PATCH_MEMBER_ADDED("type", TYPE_BYTE, HK_NULL, 0)
HK_PATCH_DEPENDS("hkBaseObject", 0)
HK_PATCH_DEPENDS("hkReferencedObject", 0)
HK_PATCH_END()
HK_PATCH_BEGIN("hkaiDefaultNavMeshCostModifier", 1, "hkaiDefaultNavMeshCostModifier", 2)
HK_PATCH_MEMBER_REMOVED("edgeMaskLookupTable", TYPE_TUPLE_INT, HK_NULL, 32)
HK_PATCH_END()
HK_PATCH_BEGIN("hkaiLineOfSightUtilInputBase", 0, "hkaiLineOfSightUtilInputBase", 1)
HK_PATCH_MEMBER_ADDED("edgeFilter", TYPE_OBJECT, "hkaiAstarEdgeFilter", 0)
HK_PATCH_DEPENDS("hkBaseObject", 0)
HK_PATCH_DEPENDS("hkaiAstarEdgeFilter", 0)
HK_PATCH_DEPENDS("hkReferencedObject", 0)
//HK_PATCH_FUNCTION(hkaiLineOfSightUtilInputBase_0_to_1)
HK_PATCH_END()
HK_PATCH_BEGIN("hkaiCharacter", 27, "hkaiCharacter", 28)
HK_PATCH_MEMBER_ADDED_POINTER("edgeFilter", "hkaiAstarEdgeFilter", 0)
HK_PATCH_MEMBER_REMOVED("volumeCostModifier",TYPE_OBJECT, HK_NULL, 0)
HK_PATCH_DEPENDS("hkaiAstarEdgeFilter", 0)
//HK_PATCH_FUNCTION(hkaiCharacter_27_to_28)
HK_PATCH_END()
HK_PATCH_BEGIN("hkaiNavMeshSimplificationUtilsExtraVertexSettings", 0, "hkaiNavMeshSimplificationUtilsExtraVertexSettings", 1)
HK_PATCH_MEMBER_ADDED("userVertices", TYPE_ARRAY_VEC_4, HK_NULL, 0)
HK_PATCH_END()
// Rename
HK_PATCH_BEGIN("hkaiNavMeshCostModifier", 2, "hkaiAstarCostModifier", 3)
HK_PATCH_END()
HK_PATCH_BEGIN("hkaiDefaultNavMeshCostModifier", 2, "hkaiDefaultAstarCostModifier", 3)
HK_PATCH_MEMBER_ADDED("costMultiplierLookupTable", TYPE_TUPLE_REAL, HK_NULL, 32)
HK_PATCH_END()
HK_PATCH_BEGIN("hkaiDefaultNavVolumeCostModifier", 1, HK_NULL, HK_CLASS_REMOVED)
HK_PATCH_PARENT_SET("hkaiNavVolumeCostModifier", HK_NULL)
HK_PATCH_MEMBER_REMOVED("cellMaskLookupTable", TYPE_INT, HK_NULL, 0)
HK_PATCH_MEMBER_REMOVED("costMultiplierLookupTable", TYPE_TUPLE_REAL, HK_NULL, 32)
HK_PATCH_DEPENDS("hkBaseObject", 0)
HK_PATCH_DEPENDS("hkaiNavVolumeCostModifier", 1)
HK_PATCH_DEPENDS("hkReferencedObject", 0)
HK_PATCH_END()
HK_PATCH_BEGIN("hkaiNavVolumeCostModifier", 1, HK_NULL, HK_CLASS_REMOVED)
HK_PATCH_PARENT_SET("hkReferencedObject", HK_NULL)
HK_PATCH_MEMBER_REMOVED("type", TYPE_BYTE, HK_NULL, 0)
HK_PATCH_DEPENDS("hkBaseObject", 0)
HK_PATCH_DEPENDS("hkReferencedObject", 0)
HK_PATCH_END()
HK_PATCH_BEGIN("hkaiDefaultAstarEdgeFilter", 1, "hkaiDefaultAstarEdgeFilter", 2)
HK_PATCH_MEMBER_ADDED("cellMaskLookupTable", TYPE_INT, HK_NULL, 0)
HK_PATCH_END()
HK_PATCH_BEGIN("hkaiNavVolumePathSearchParameters", 2, "hkaiNavVolumePathSearchParameters", 3)
HK_PATCH_MEMBER_ADDED_BYTE("lineOfSightFlags", 1)
HK_PATCH_MEMBER_REMOVED("checkForLineOfSight", TYPE_BYTE, HK_NULL, 0)
HK_PATCH_END()
HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkaiSplitGenerationUtilsSettings", 0)
HK_PATCH_MEMBER_ADDED_BYTE("simplificationOptions", 1)
HK_PATCH_MEMBER_ADDED_BYTE("generateClusterGraphs", 0)
HK_PATCH_MEMBER_ADDED_INT("desiredFacesPerCluster", 20)
HK_PATCH_MEMBER_ADDED_REAL("borderPreserveShrinkSize", 0.100000f)
HK_PATCH_MEMBER_ADDED_INT("numX", 1)
HK_PATCH_MEMBER_ADDED_INT("numY", 1)
HK_PATCH_END()
HK_PATCH_BEGIN(HK_NULL, HK_CLASS_ADDED, "hkaiSplitGenerationSnapshot", 0)
HK_PATCH_MEMBER_ADDED("generationSnapshot", TYPE_STRUCT, "hkaiNavMeshGenerationSnapshot", 0)
HK_PATCH_MEMBER_ADDED("splitSettings", TYPE_STRUCT, "hkaiSplitGenerationUtilsSettings", 0)
HK_PATCH_DEPENDS("hkaiNavMeshGenerationSnapshot", 1)
HK_PATCH_DEPENDS("hkaiSplitGenerationUtilsSettings", 0)
HK_PATCH_END()
HK_PATCH_BEGIN("hkaiNavMeshGenerationSettingsOverrideSettings", 2, "hkaiNavMeshGenerationSettingsOverrideSettings", 3)
HK_PATCH_MEMBER_ADDED_BYTE("characterWidthUsage", 1)
HK_PATCH_END()
HK_PATCH_BEGIN("hkaiNavMeshGenerationSettingsRegionPruningSettings", 0, "hkaiNavMeshGenerationSettingsRegionPruningSettings", 1)
HK_PATCH_MEMBER_ADDED_BYTE("preserveVerticalBorderRegions", 0)
HK_PATCH_END()
HK_PATCH_BEGIN("hkaiNavMeshPathSearchParameters", 8, "hkaiNavMeshPathSearchParameters", 9)
HK_PATCH_MEMBER_ADDED_BYTE("useGrandparentDistanceCalculation", 1)
HK_PATCH_END()
/*
* Havok SDK - Base file, BUILD(#20130912)
*
* Confidential Information of Havok. (C) Copyright 1999-2013
* Telekinesys Research Limited t/a Havok. All Rights Reserved. The Havok
* Logo, and the Havok buzzsaw logo are trademarks of Havok. Title, ownership
* rights, and intellectual property rights in the Havok software remain in
* Havok and/or its suppliers.
*
* Use of this software for evaluation purposes is subject to and indicates
* acceptance of the End User licence Agreement for this product. A copy of
* the license is included with this software and is also available from salesteam@havok.com.
*
*/
| [
"dingfengyu@gmail.com"
] | dingfengyu@gmail.com |
a89ae04f6874358765c380a515f727df4da87ee3 | bb1ba2eb98a946fcb298c293e6479fdc307d0351 | /NewDataStructures/Model/New Group/AVLTree.h | 1a94a6d3ee6c13fe44f9ed716310e4449dd43f3b | [] | no_license | robotdjman/NewDataStructures | c695b582e8904d243d3e2e2551ed5b3beb6f5618 | d76eefbb37de1352ea880d1fb31c632b700c13b6 | refs/heads/master | 2020-04-21T03:49:35.732122 | 2019-04-30T17:51:53 | 2019-04-30T17:51:53 | 169,295,702 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,070 | h | //
// AVLTree.h
// NewDataStructures
//
// Created by Metcalfe, Rylan on 4/30/19.
// Copyright © 2019 Metcalfe, Rylan. All rights reserved.
//
#ifndef AVLTree_h
#define AVLTree_h
#include "BinarySearchTree.h"
template <class Type>
class AVLTree : public BinarySearchTree<Type>
{
private:
BinaryTreeDone<Type> * leftRotation (BinaryTreeNode<Type> * parent);
BinaryTreeNode<Type> * rightRotation(BinaryTreeNode<Type> * parent);
BinaryTreeNode<Type> * leftRightRotation(BinaryTreeNode<Type> * parent);
BinaryTreeNode<Type> * rightLeftRotation(BinaryTreeNode<Type> * parent);
BinaryTree<Type> * balanceSubTree (BinaryTreeNode<Type> * parent);
BinaryTreeNode<Type> * insertNode<BinaryTreeNode<Type> * parent, Type value);
BinaryTreeNode<Type> * removeNode(BianryTreeNode<Type> * parent, Type value);
int heightDifference(BianryTreeNode<Type> * parent);
public:
AVLTree();
void insert(Type itemToInsert);
void remove(Type value);
};
template<Class Type>
#endif /* AVLTree_h */
| [
"robotdjman12@gmail.com"
] | robotdjman12@gmail.com |
ecef95db83c5267d95f73444c6ce3568168efb54 | ac367c400367d18fd62027988bfaea5a84e1aa66 | /linked lists/palindromestack.cpp | f4c0e1e99e8c945eafc5187824599934fbfc8518 | [] | no_license | ShivamNegi/Coding-Practice | fc9cf27c39c54927208c3eb94c91da236c1f51ab | 482b0cd2a5361faac71270a49e5d07daaeae5cf0 | refs/heads/master | 2021-01-17T01:11:36.031718 | 2017-08-25T03:48:07 | 2017-08-25T03:48:07 | 56,655,527 | 1 | 0 | null | 2017-04-12T16:58:37 | 2016-04-20T04:34:11 | C++ | UTF-8 | C++ | false | false | 1,117 | cpp | #include <iostream>
using namespace std;
struct node
{
char ch;
node * next;
};
node * insertnode(node * head, char data)
{
node * temp = new node;
temp->ch = data;
temp->next = head;
return temp;
}
void display(node * head)
{
node * temp = head;
while(temp->next != 0)
{
cout<<temp->ch<<" ";
temp = temp->next;
}
cout<<endl;
}
char pop(node ** head)
{
char ch = (*head)->ch;
*head = (*head)->next;
return ch;
}
int main()
{
node * head = new node;
head->next = NULL;
string inp;
cin>>inp;
for(int i = 0; i < inp.length() / 2; i++)
{
head = insertnode(head, inp[i]);
}
int pos;
if(inp.length() % 2 == 0)
{
pos = inp.length() / 2;
}
else
pos = inp.length() / 2 + 1;
bool flag = true;
char ch = pop(&head);
while(ch)
{
if(inp[pos++] != ch)
{
flag = false;
break;
}
ch = pop(&head);
}
if(flag)
cout<<"Palindrome\n";
else
cout<<"Not Palindrome\n";
return 0;
} | [
"shivamnegi2019@gmail.com"
] | shivamnegi2019@gmail.com |
d4530dcfae9d90328947dad836cc663df490c30e | 721f8583ac57bf8d07f0ddf4565ea27a83fc0c1a | /Исследование стохастической фильтрации сигналов как задачи двухкритериальной оптимизации с использованием методов прямого пассивного поиска/include/filtering.h | ca3e85236cccb9048af7b0fb3ce7428ebc3baa25 | [] | no_license | sergeysablin99/Optimization-methods | dfad3eee0e092de51fe9fcc04e7de76afa275683 | 8630bce0ea9531703297af04ac093423d1d01178 | refs/heads/master | 2020-09-29T05:58:41.649876 | 2019-12-12T21:33:46 | 2019-12-12T21:33:46 | 226,969,593 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,511 | h | #ifndef FILTERING_H
#define FILTERING_H
#include <cmath>
#include <vector>
#include <random>
#include <fstream>
#include <iostream>
double signal(const double x);
double noisySignal(const double x, const double noiseAmplitude);
std::vector<double> noisySignalValues(const double xmin, const double xmax,
const int numberOfPoints, const double noiseAmplitude);
double filteredSignal(const int x, const std::vector<double>& noisySignal,
const std::vector<double>& weights, const int sizeOfGap);
double noiseness(const std::vector<double>& noisySignal, const std::vector<double> weights,
const int sizeOfGap, const int numberOfPoints);
double discrepancy(const std::vector<double>& noisySignal, const std::vector<double> weights,
const int sizeOfGap, const int numberOfPoints);
std::vector<double> randomWeights(const int sizeOfGap);
double linearScalarization(double lambda, const std::vector<double>& noisySignal, const std::vector<double> weights,
const int sizeOfGap, const int numberOfPoints);
void findValues(const double xmin, const double xmax, const int numberOfPoints,
const int sizeOfGap, const double noiseAmplitude, double probability,
double fallibility, std::string filename, std::string fileForNoise,
std::string fileForFilter, std::string fileForWName);
#endif // FILTERING_H
| [
"noreply@github.com"
] | noreply@github.com |
7042693f4df34a68cc1f68aa1069f0db9d18749f | b0dd7779c225971e71ae12c1093dc75ed9889921 | /libs/random/test/test_ranlux3.cpp | e54db0f4a568fea7002b967f213dbd320626b2f5 | [
"LicenseRef-scancode-warranty-disclaimer",
"BSL-1.0"
] | permissive | blackberry/Boost | 6e653cd91a7806855a162347a5aeebd2a8c055a2 | fc90c3fde129c62565c023f091eddc4a7ed9902b | refs/heads/1_48_0-gnu | 2021-01-15T14:31:33.706351 | 2013-06-25T16:02:41 | 2013-06-25T16:02:41 | 2,599,411 | 244 | 154 | BSL-1.0 | 2018-10-13T18:35:09 | 2011-10-18T14:25:18 | C++ | UTF-8 | C++ | false | false | 792 | cpp | /* test_ranlux3.cpp
*
* Copyright Steven Watanabe 2011
* Distributed under the Boost Software License, Version 1.0. (See
* accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*
* $Id: test_ranlux3.cpp 74867 2011-10-09 23:13:31Z steven_watanabe $
*
*/
#include <boost/random/ranlux.hpp>
#define BOOST_RANDOM_URNG boost::random::ranlux3
#define BOOST_RANDOM_SEED_WORDS 24
// principal operation validated with CLHEP, values by experiment
#define BOOST_RANDOM_VALIDATION_VALUE 5957620U
#define BOOST_RANDOM_SEED_SEQ_VALIDATION_VALUE 11848780U
#define BOOST_RANDOM_ITERATOR_VALIDATION_VALUE 11620328U
#define BOOST_RANDOM_GENERATE_VALUES { 0x55E57B2CU, 0xF2DEF915U, 0x6D1A0CD9U, 0xCA0109F9U }
#include "test_generator.ipp"
| [
"tvaneerd@rim.com"
] | tvaneerd@rim.com |
fc0cb8ff160e80619e058aaf58b899714e6c2b82 | 022c8eb22ac68185ae7568d716fd8fc1ea46af96 | /CPP/interleave_string.cpp | 5e8646f44b61ccdeb70f039c5fbf2f425d2fd3c7 | [] | no_license | lshi2004/Montevideo | b930838adc4d3384ad68bea6d27031ebf2a23760 | 36b044b40bed9b68773617d0beea48737084ed31 | refs/heads/master | 2021-03-12T20:28:26.444896 | 2015-08-31T21:33:39 | 2015-08-31T21:33:39 | 26,744,121 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,650 | cpp | //============================================================================
// Name : HC.cpp
// Author : HS
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <iostream>
#include <vector>
#include <algorithm>
#include <sstream>
#include <unordered_map>
#include <numeric>
#include <list>
#include <unordered_map>
#include <queue>
#include <set>
#include <unordered_set>
#include <stack>
using namespace std;
/**
* Definition for singly-linked list.
*/
struct ListNode {
int val;
ListNode *next;
ListNode(int x) :
val(x), next(NULL) {
}
};
struct RandomListNode {
int label;
RandomListNode *next, *random;
RandomListNode(int x) :
label(x), next(NULL), random(NULL) {
}
};
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) :
val(x), left(NULL), right(NULL) {
}
};
struct TreeLinkNode {
int val;
TreeLinkNode *left, *right, *next;
TreeLinkNode(int x) :
val(x), left(NULL), right(NULL), next(NULL) {
}
};
class lengthSolution {
private:
};
bool int_sort_function_old(int i, int j) {
string s1 = to_string(i);
string s2 = to_string(j);
int k1, k2;
for (k1 = 0, k2 = 0; k1 < s1.size() && k2 < s2.size(); k1++, k2++) {
if (s1[k1] != s2[k2]) {
return s1[k1] < s2[k2];
}
}
return (k1 >= s1.size());
}
bool int_sort_function(int i, int j) {
string s1 = to_string(i);
string s2 = to_string(j);
return s1 + s2 < s2 + s1;
}
class LRUCache {
private:
struct CacheNode {
int key;
int value;
CacheNode(int k, int v) :
key(k), value(v) {
}
};
list<CacheNode> cacheList;
unordered_map<int, list<CacheNode>::iterator> cacheMap;
int capacity;
public:
LRUCache(int capacity) {
this->capacity = capacity;
}
int get(int key) {
if (cacheMap.find(key) == cacheMap.end())
return -1;
cacheList.splice(cacheList.begin(), cacheList, cacheMap[key]);
cacheMap[key] = cacheList.begin();
return cacheMap[key]->value;
}
void set(int key, int value) {
//unordered_map<int, list<CacheNode>::iterator>::const_iterator it;
auto it = cacheMap.find(key);
if (it == cacheMap.end()) {
if (cacheList.size() == capacity) {
cacheMap.erase(cacheList.back().key);
cacheList.pop_back();
}
cacheList.push_front(CacheNode(key, value));
cacheMap[key] = cacheList.begin();
} else {
cacheList.erase(cacheMap[key]);
// cacheList.erase(it->second);
cacheMap.erase(key);
cacheList.push_front(CacheNode(key, value));
cacheMap[key] = cacheList.begin();
}
}
public:
bool isInterleave(string s1, string s2, string s3) {
int n1 = s1.length();
int n2 = s2.length();
int n3 = s3.length();
if (n3 != n1 + n2) return false;
vector<vector<bool>> f(s1.length() + 1, vector<bool>
(s2.length() + 1, true));
for (size_t i = 1; i <= n1; i++)
f[i][0] = f[i - 1][0] && s1[i - 1] == s3[i - 1];
for (size_t i = 1; i <= n2; i++)
f[0][i] = f[0][i-1] && s2[i -1 ] == s3[i - 1];
for (size_t i = 1; i <= n1; i++)
for (size_t j = 1; j <= n2; j++)
f[i][j] = (s1[i-1] == s3[i+j-1] && f[i-1][j])
|| (s2[j-1] == s3[i+j-1] && f[i][j-1]);
return f[n1][n2];
}
};
void printPreOrder(TreeNode *root) {
if (!root)
return;
cout << root->val << "\t";
if (root->left)
printPreOrder(root->left);
if (root->right)
printPreOrder(root->right);
}
void printInOrder(TreeNode *root) {
if (!root)
return;
if (root->left)
printPreOrder(root->left);
cout << root->val << "\t";
if (root->right)
printPreOrder(root->right);
}
void reverse_array(int nums[], int s, int e) {
while (s < e) {
int tmp = nums[s];
nums[s] = nums[e];
nums[e] = tmp;
s++;
e--;
}
}
void rotate(int nums[], int n, int k) {
if (k <= 0)
return;
k = k % n;
reverse_array(nums, 0, n - 1);
reverse_array(nums, 0, k - 1);
reverse_array(nums, k, n - 1);
}
int main() {
int *ptr = new int[10];
// int **ary = new int*[100];
ptr[0] = 1;
ptr[1] = 2;
#if 0
auto q = new multipleQueens;
vector<vector<string>> result = q->solveQueens(4);
for (auto i : result) {
for (auto j: i) {
cout << j << " \t";
}
cout << endl <<endl <<endl;
}
#endif
// auto pp = new LRUCache(100);
#if 0
auto result = pp->partitionN("a");
for (auto i: result) {
for (auto j: i)
cout << j << "\t";
cout << endl << "one more result " << endl << endl;
}
#endif
string s1 = "1.0";
string s2 = "1.1";
cout << endl << endl << endl;
string ts1 = "aa";
cout << "!!!Hello World!!! " << ptr[0] << " " << ptr[1] << endl; // prints !!!Hello World!!!
return 0;
}
| [
"lshi2004@hotmail.com"
] | lshi2004@hotmail.com |
2509547cb14c7edc052750c485493d24e4c27dda | 508fff84ee929a68daac4ff900d36912f0d6b6ed | /WSEExternal/include/Animation/Animation/Playback/Control/hkaAnimationControl.inl | e9f67b16ae880514fcd435df33dc7e6378c15502 | [
"WTFPL"
] | permissive | blockspacer/wse | f2e05755ba1263c645d0b021548a73e5a5a33ba6 | 3ad901f1a463139b320c30ea08bdc343358ea6b6 | refs/heads/master | 2023-03-16T13:15:04.153026 | 2014-02-13T08:10:03 | 2014-02-13T08:10:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,830 | inl | /*
*
* Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's
* prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok.
* Level 2 and Level 3 source code contains trade secrets of Havok. Havok Software (C) Copyright 1999-2009 Telekinesys Research Limited t/a Havok. All Rights Reserved. Use of this software is subject to the terms of an end user license agreement.
*
*/
// Return the local time for the control
inline hkReal hkaAnimationControl::getLocalTime() const
{
return m_localTime;
}
// Set the local time for the animation
inline void hkaAnimationControl::setLocalTime( hkReal lTime )
{
m_localTime = lTime;
}
inline hkReal hkaAnimationControl::getWeight() const
{
return m_weight;
}
inline const hkaAnimationBinding* hkaAnimationControl::getAnimationBinding() const
{
return m_binding;
}
inline hkUint8 hkaAnimationControl::getTransformTrackWeight(hkUint32 track) const
{
return m_transformTrackWeights[track];
}
inline hkUint8 hkaAnimationControl::getFloatTrackWeight(hkUint32 track) const
{
return m_floatTrackWeights[track];
}
inline void hkaAnimationControl::setTransformTrackWeight(hkUint32 track, hkUint8 weight)
{
m_transformTrackWeights[track] = weight;
}
inline void hkaAnimationControl::setFloatTrackWeight(hkUint32 track, hkUint8 weight)
{
m_floatTrackWeights[track] = weight;
}
// Get the weight values for all tracks (non-const access)
inline const hkArray<hkUint8>& hkaAnimationControl::getTransformTracksWeights() const
{
return m_transformTrackWeights;
}
// Get the weight values for all tracks (non-const access)
inline const hkArray<hkUint8>& hkaAnimationControl::getFloatTracksWeights() const
{
return m_floatTrackWeights;
}
// Get the motion track weight for this control
inline hkReal hkaAnimationControl::getMotionTrackWeight() const
{
return m_motionTrackWeight;
}
// Set the motion track weight for this control
inline void hkaAnimationControl::setMotionTrackWeight(hkReal w)
{
m_motionTrackWeight = w;
}
/*
* Havok SDK - NO SOURCE PC DOWNLOAD, BUILD(#20090704)
*
* Confidential Information of Havok. (C) Copyright 1999-2009
* Telekinesys Research Limited t/a Havok. All Rights Reserved. The Havok
* Logo, and the Havok buzzsaw logo are trademarks of Havok. Title, ownership
* rights, and intellectual property rights in the Havok software remain in
* Havok and/or its suppliers.
*
* Use of this software for evaluation purposes is subject to and indicates
* acceptance of the End User licence Agreement for this product. A copy of
* the license is included with this software and is also available at www.havok.com/tryhavok.
*
*/
| [
"690187+Swyter@users.noreply.github.com"
] | 690187+Swyter@users.noreply.github.com |
1813fcc870f1b1a59f1be2a9f2019c11461219fe | db20531c460e62b52cfdb03bd4aac10194ab0fd6 | /C++/Resolucion Practica 1/P16d.cpp | 9468342eff50cbd985aa8409fcb21399d7d9b65d | [
"MIT"
] | permissive | aguumg/Curso-Introduccion-a-la-Computacion-para-Matematicos | 39eaaf2ec53b893cbf036cea2b47fb76ad64b505 | 72b5db944c759c0d977553fa1bc15a11ac110909 | refs/heads/main | 2023-05-31T01:52:16.107817 | 2021-06-15T17:31:38 | 2021-06-15T17:31:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 232 | cpp | #include <iostream>
#include <string>
#include <array>
using namespace std;
int main(int argc, char* argv[]){
int n=atoi(argv[1]);
float i=1;
float j=0;
while (i<=n){
float k=(1/i)+j;
j=k;
i=i+1;
}
cout << j << "\n";
return 0;
}
| [
"aguu.mg@gmail.com"
] | aguu.mg@gmail.com |
a4bef319839daa118013118e007c67a08307e7dc | 1b4f6de1a2e472af4a05c64f492e6bee0c8d594c | /gst/elements/gvametaconvert/convert_tensor.cpp | 525407125a906102241df4c1d86dc457cda5f6cc | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.0-or-later"
] | permissive | ymaskina/dlstreamer_gst | 6531949ddb6a12dbcc9ebdb5f605b9e35a62c6a2 | ebbae21b4e4bc22694c59919304efadde06afbaa | refs/heads/master | 2023-04-01T02:36:08.559493 | 2021-03-25T16:46:11 | 2021-03-25T16:46:11 | 351,455,374 | 0 | 0 | MIT | 2021-03-25T16:46:12 | 2021-03-25T13:57:19 | null | UTF-8 | C++ | false | false | 2,592 | cpp | /*******************************************************************************
* Copyright (C) 2018-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
******************************************************************************/
#include "convert_tensor.h"
using json = nlohmann::json;
json convert_tensor(const GVA::Tensor &s_tensor) {
json jobject = json::object();
std::string precision_value = s_tensor.precision_as_string();
if (!precision_value.empty()) {
jobject.push_back(json::object_t::value_type("precision", precision_value));
}
std::string layout_value = s_tensor.layout_as_string();
if (!layout_value.empty()) {
jobject.push_back(json::object_t::value_type("layout", layout_value));
}
std::string name_value = s_tensor.name();
if (!name_value.empty()) {
jobject.push_back(json::object_t::value_type("name", name_value));
}
std::string model_name_value = s_tensor.model_name();
if (!model_name_value.empty()) {
jobject.push_back(json::object_t::value_type("model_name", model_name_value));
}
std::string layer_name_value = s_tensor.layer_name();
if (!layer_name_value.empty()) {
jobject.push_back(json::object_t::value_type("layer_name", layer_name_value));
}
std::string format_value = s_tensor.format();
if (!format_value.empty()) {
jobject.push_back(json::object_t::value_type("format", format_value));
}
if (!s_tensor.is_detection()) {
std::string label_value = s_tensor.label();
if (!label_value.empty()) {
jobject.push_back(json::object_t::value_type("label", label_value));
}
}
if (s_tensor.has_field("confidence")) {
jobject.push_back(json::object_t::value_type("confidence", s_tensor.confidence()));
}
if (s_tensor.has_field("label_id")) {
jobject.push_back(json::object_t::value_type("label_id", s_tensor.get_int("label_id")));
}
json data_array;
if (s_tensor.precision() == GVA::Tensor::Precision::U8) {
const std::vector<uint8_t> data = s_tensor.data<uint8_t>();
for (guint i = 0; i < data.size(); i++) {
data_array += data[i];
}
} else {
const std::vector<float> data = s_tensor.data<float>();
for (guint i = 0; i < data.size(); i++) {
data_array += data[i];
}
}
if (!data_array.is_null()) {
jobject.push_back(json::object_t::value_type("data", data_array));
}
return jobject;
} | [
"noreply@github.com"
] | noreply@github.com |
c0ce4fb2f3c57e42d6a9cb2e2f1f76d1891d4e93 | 45640847065d537aa3064c5832520d11de8cb82f | /MapTool/TabCollider.h | 7980361566a4fbf3c59d25c95e01feaae775a79c | [] | no_license | hyehyeonK/MapTool | 54c23866449a82783799ffe9d2463d8e2a129afa | 120467249bbd8a99624e2d77da21e2c89e3d73c2 | refs/heads/master | 2020-04-25T09:55:07.925073 | 2019-02-27T18:12:34 | 2019-02-27T18:12:34 | 172,690,881 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 448 | h | #pragma once
// CTabCollider 대화 상자입니다.
class CTabCollider : public CDialog
{
DECLARE_DYNAMIC(CTabCollider)
public:
CTabCollider(CWnd* pParent = NULL); // 표준 생성자입니다.
virtual ~CTabCollider();
// 대화 상자 데이터입니다.
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_TAB_COLLI };
#endif
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 지원입니다.
DECLARE_MESSAGE_MAP()
};
| [
"kskhh07@gmail.com"
] | kskhh07@gmail.com |
0c6dcbc315c6e3fe39c7511c9056965a50b0d18a | e121dcc5d23e225891420e730549b9cc7ebe8e88 | /src/lib/panda/pgraph/nodePathLerps.cxx | 053ef813e4513dd4f72f76982748f3a14535b598 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | PlumpMath/panda3d-3 | 4f4cf7627eddae9b7f30795e0a0657b01fdf670d | 5c0be0e1cd46b422d28d5b81ffb1e8b28c3ac914 | refs/heads/master | 2021-01-25T06:55:36.209044 | 2014-09-29T14:24:53 | 2014-09-29T14:24:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,198 | cxx | // Filename: nodePathLerps.cxx
// Created by: frang (01Jun00)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You should have received a copy of this license along
// with this source code in a file named "LICENSE."
//
////////////////////////////////////////////////////////////////////
#include "nodePathLerps.h"
TypeHandle PosLerpFunctor::_type_handle;
TypeHandle HprLerpFunctor::_type_handle;
TypeHandle ScaleLerpFunctor::_type_handle;
TypeHandle ColorLerpFunctor::_type_handle;
TypeHandle PosHprLerpFunctor::_type_handle;
TypeHandle HprScaleLerpFunctor::_type_handle;
TypeHandle PosHprScaleLerpFunctor::_type_handle;
TypeHandle ColorScaleLerpFunctor::_type_handle;
PosLerpFunctor::PosLerpFunctor(const PosLerpFunctor& c)
: LPoint3fLerpFunctor(c), _node_path(c._node_path) {}
PosLerpFunctor::~PosLerpFunctor()
{
}
PosLerpFunctor& PosLerpFunctor::operator=(const PosLerpFunctor& c) {
_node_path = c._node_path;
LPoint3fLerpFunctor::operator=(c);
return *this;
}
void PosLerpFunctor::operator()(float t) {
if (_is_wrt)
_node_path.set_pos(_wrt_path, interpolate(t));
else
_node_path.set_pos(interpolate(t));
}
HprLerpFunctor::HprLerpFunctor(const HprLerpFunctor& c)
: LVecBase3fLerpFunctor(c), _node_path(c._node_path) {}
void HprLerpFunctor::take_shortest() {
// so long as these are actually degrees
for (int i=0; i!=3; ++i)
if (this->_diff_cache[i] < -180.)
_start[i] -= 360.;
else if (this->_diff_cache[i] > 180.)
_start[i] += 360.;
this->_diff_cache = this->_end - this->_start;
}
void HprLerpFunctor::take_longest() {
// so long as these are actually degrees
for (int i=0; i!=3; ++i)
if ((this->_diff_cache[i] < 0.) && (this->_diff_cache[i] > -180.))
_start[i] -= 360.;
else if ((this->_diff_cache[i] >= 0.) && (this->_diff_cache[i] < 180))
_start[i] += 360.;
this->_diff_cache = this->_end - this->_start;
}
HprLerpFunctor::~HprLerpFunctor()
{
}
HprLerpFunctor& HprLerpFunctor::operator=(const HprLerpFunctor& c) {
_node_path = c._node_path;
LVecBase3fLerpFunctor::operator=(c);
return *this;
}
void HprLerpFunctor::operator()(float t) {
if (_is_wrt)
_node_path.set_hpr(_wrt_path, interpolate(t));
else
_node_path.set_hpr(interpolate(t));
}
ScaleLerpFunctor::ScaleLerpFunctor(const ScaleLerpFunctor& c)
: LVecBase3fLerpFunctor(c), _node_path(c._node_path) {}
ScaleLerpFunctor::~ScaleLerpFunctor()
{
}
ScaleLerpFunctor& ScaleLerpFunctor::operator=(const ScaleLerpFunctor& c) {
_node_path = c._node_path;
LVecBase3fLerpFunctor::operator=(c);
return *this;
}
void ScaleLerpFunctor::operator()(float t) {
if (_is_wrt)
_node_path.set_scale(_wrt_path, interpolate(t));
else
_node_path.set_scale(interpolate(t));
}
ColorLerpFunctor::ColorLerpFunctor(const ColorLerpFunctor& c)
: LVecBase4fLerpFunctor(c), _node_path(c._node_path) {}
ColorLerpFunctor::~ColorLerpFunctor()
{
}
ColorLerpFunctor& ColorLerpFunctor::operator=(const ColorLerpFunctor& c) {
_node_path = c._node_path;
LVecBase4fLerpFunctor::operator=(c);
return *this;
}
void ColorLerpFunctor::operator()(float t) {
_node_path.set_color(interpolate(t));
}
PosHprLerpFunctor::PosHprLerpFunctor(const PosHprLerpFunctor& c)
: LerpFunctor(c), _node_path(c._node_path) {}
void PosHprLerpFunctor::take_shortest() {
// so long as these are actually degrees
for (int i=0; i!=3; ++i)
if (this->_hdiff_cache[i] < -180.)
_hstart[i] -= 360.;
else if (this->_hdiff_cache[i] > 180.)
_hstart[i] += 360.;
this->_hdiff_cache = this->_hend - this->_hstart;
}
void PosHprLerpFunctor::take_longest() {
// so long as these are actually degrees
for (int i=0; i!=3; ++i)
if ((this->_hdiff_cache[i] < 0.) && (this->_hdiff_cache[i] > -180.))
_hstart[i] -= 360.;
else if ((this->_hdiff_cache[i] >= 0.) && (this->_hdiff_cache[i] < 180))
_hstart[i] += 360.;
this->_hdiff_cache = this->_hend - this->_hstart;
}
PosHprLerpFunctor::~PosHprLerpFunctor()
{
}
PosHprLerpFunctor& PosHprLerpFunctor::operator=(const PosHprLerpFunctor& c) {
_node_path = c._node_path;
_pstart = c._pstart;
_pend = c._pend;
_pdiff_cache = c._pdiff_cache;
_hstart = c._hstart;
_hend = c._hend;
_hdiff_cache = c._hdiff_cache;
LerpFunctor::operator=(c);
return *this;
}
void PosHprLerpFunctor::operator()(float t) {
LPoint3f p = ((t * _pdiff_cache) + _pstart);
LVecBase3f h = ((t * _hdiff_cache) + _hstart);
if (_is_wrt)
_node_path.set_pos_hpr(_wrt_path, p, h);
else
_node_path.set_pos_hpr(p, h);
}
HprScaleLerpFunctor::HprScaleLerpFunctor(const HprScaleLerpFunctor& c)
: LerpFunctor(c), _node_path(c._node_path) {}
void HprScaleLerpFunctor::take_shortest() {
// so long as these are actually degrees
for (int i=0; i!=3; ++i)
if (this->_hdiff_cache[i] < -180.)
_hstart[i] -= 360.;
else if (this->_hdiff_cache[i] > 180.)
_hstart[i] += 360.;
this->_hdiff_cache = this->_hend - this->_hstart;
}
void HprScaleLerpFunctor::take_longest() {
// so long as these are actually degrees
for (int i=0; i!=3; ++i)
if ((this->_hdiff_cache[i] < 0.) && (this->_hdiff_cache[i] > -180.))
_hstart[i] -= 360.;
else if ((this->_hdiff_cache[i] >= 0.) && (this->_hdiff_cache[i] < 180))
_hstart[i] += 360.;
this->_hdiff_cache = this->_hend - this->_hstart;
}
HprScaleLerpFunctor::~HprScaleLerpFunctor()
{
}
HprScaleLerpFunctor&
HprScaleLerpFunctor::operator=(const HprScaleLerpFunctor& c) {
_node_path = c._node_path;
_hstart = c._hstart;
_hend = c._hend;
_hdiff_cache = c._hdiff_cache;
_sstart = c._sstart;
_send = c._send;
_sdiff_cache = c._sdiff_cache;
LerpFunctor::operator=(c);
return *this;
}
void HprScaleLerpFunctor::operator()(float t) {
LVecBase3f h = ((t * _hdiff_cache) + _hstart);
LVecBase3f s = ((t * _sdiff_cache) + _sstart);
if (_is_wrt)
_node_path.set_hpr_scale(_wrt_path, h, s);
else
_node_path.set_hpr_scale(h, s);
}
PosHprScaleLerpFunctor::PosHprScaleLerpFunctor(const PosHprScaleLerpFunctor& c)
: LerpFunctor(c), _node_path(c._node_path) {}
void PosHprScaleLerpFunctor::take_shortest() {
// so long as these are actually degrees
for (int i=0; i!=3; ++i)
if (this->_hdiff_cache[i] < -180.)
_hstart[i] -= 360.;
else if (this->_hdiff_cache[i] > 180.)
_hstart[i] += 360.;
this->_hdiff_cache = this->_hend - this->_hstart;
}
void PosHprScaleLerpFunctor::take_longest() {
// so long as these are actually degrees
for (int i=0; i!=3; ++i)
if ((this->_hdiff_cache[i] < 0.) && (this->_hdiff_cache[i] > -180.))
_hstart[i] -= 360.;
else if ((this->_hdiff_cache[i] >= 0.) && (this->_hdiff_cache[i] < 180))
_hstart[i] += 360.;
this->_hdiff_cache = this->_hend - this->_hstart;
}
PosHprScaleLerpFunctor::~PosHprScaleLerpFunctor()
{
}
PosHprScaleLerpFunctor&
PosHprScaleLerpFunctor::operator=(const PosHprScaleLerpFunctor& c) {
_node_path = c._node_path;
_pstart = c._pstart;
_pend = c._pend;
_pdiff_cache = c._pdiff_cache;
_hstart = c._hstart;
_hend = c._hend;
_hdiff_cache = c._hdiff_cache;
_sstart = c._sstart;
_send = c._send;
_sdiff_cache = c._sdiff_cache;
LerpFunctor::operator=(c);
return *this;
}
void PosHprScaleLerpFunctor::operator()(float t) {
LPoint3f p = ((t * _pdiff_cache) + _pstart);
LVecBase3f h = ((t * _hdiff_cache) + _hstart);
LVecBase3f s = ((t * _sdiff_cache) + _sstart);
if (_is_wrt)
_node_path.set_pos_hpr_scale(_wrt_path, p, h, s);
else
_node_path.set_pos_hpr_scale(p, h, s);
}
ColorScaleLerpFunctor::ColorScaleLerpFunctor(const ColorScaleLerpFunctor& c)
: LVecBase4fLerpFunctor(c), _node_path(c._node_path) {}
ColorScaleLerpFunctor::~ColorScaleLerpFunctor()
{
}
ColorScaleLerpFunctor& ColorScaleLerpFunctor::operator=(const ColorScaleLerpFunctor& c) {
_node_path = c._node_path;
LVecBase4fLerpFunctor::operator=(c);
return *this;
}
void ColorScaleLerpFunctor::operator()(float t) {
_node_path.set_color_scale(interpolate(t));
}
| [
"ralf.kaestner@gmail.com"
] | ralf.kaestner@gmail.com |
cdf41f32a697939138f1d56be634bb9f09deade4 | fe1158202e7b7984b11966138e6d96da0f9a5b13 | /yolox_ros_cpp/yolox_cpp/include/yolox_cpp/yolox.hpp | 188c58b46dd1c2c7319cb771fa3a2fd12f0ed518 | [
"Apache-2.0"
] | permissive | Guolong-Zhang/YOLOX-ROS | 5991c3d8e8386cfaa78a0d16f867bea8b2812309 | 1a411fd846695a6dd485287d7f86d8f78cff8506 | refs/heads/main | 2023-08-31T18:36:17.353463 | 2021-11-06T03:25:57 | 2021-11-06T03:25:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 217 | hpp | #ifndef _YOLOX_CPP_YOLOX_HPP
#define _YOLOX_CPP_YOLOX_HPP
#include "config.h"
#ifdef ENABLE_OPENVINO
#include "yolox_openvino.hpp"
#endif
#ifdef ENABLE_TENSORRT
#include "yolox_tensorrt.hpp"
#endif
#endif | [
"53618876+fateshelled@users.noreply.github.com"
] | 53618876+fateshelled@users.noreply.github.com |
aae12ac91360e38da9d399045c419363cd9b19a2 | a15b4fdc03653228349bc529f76d040e31e0de9f | /inst/include/pbbam/Cigar.h | c39105746e24d5e72ef6eabeca114cf39842dd39 | [] | no_license | evolvedmicrobe/pbbamr | a2dffeb2d2db3ab2d1383dd53211453adc767d78 | 22385446ab61631bd4eeeb58be0946f2d87f0c92 | refs/heads/master | 2020-06-28T18:43:42.364734 | 2017-10-02T19:18:22 | 2017-10-02T19:18:22 | 47,782,578 | 2 | 0 | null | 2016-01-21T00:55:07 | 2015-12-10T19:21:44 | C++ | UTF-8 | C++ | false | false | 3,706 | h | // Copyright (c) 2014-2015, Pacific Biosciences of California, Inc.
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted (subject to the limitations in the
// disclaimer below) provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following
// disclaimer in the documentation and/or other materials provided
// with the distribution.
//
// * Neither the name of Pacific Biosciences nor the names of its
// contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
// GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY PACIFIC
// BIOSCIENCES AND ITS CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
// DISCLAIMED. IN NO EVENT SHALL PACIFIC BIOSCIENCES OR ITS
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
// USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
// ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
// OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
// File Description
/// \file Cigar.h
/// \brief Defines the Cigar class.
//
// Author: Derek Barnett
#ifndef CIGAR_H
#define CIGAR_H
#include "pbbam/CigarOperation.h"
#include "pbbam/Config.h"
#include <string>
#include <vector>
namespace PacBio {
namespace BAM {
/// \brief The Cigar class represents the CIGAR string used to report alignment
/// charateristics in SAM/BAM.
///
/// \note Use of the 'M' operator is forbidden in PacBio BAMs. See
/// CigarOperationType description for more information.
///
/// \sa https://samtools.github.io/hts-specs/SAMv1.pdf for more information on CIGAR in general.
///
class PBBAM_EXPORT Cigar : public std::vector<CigarOperation>
{
public:
/// \name Constructors & Related Methods
/// \{
/// \brief Creates a Cigar object from SAM/BAM string input
///
/// \param [in] stdString SAM/BAM formatted CIGAR data
/// \returns a Cigar object representing the input data
///
/// \note This class may be removed from the public API in the future,
/// as the constructor taking a std::string accomplishes the same end.
///
static Cigar FromStdString(const std::string& stdString);
/// \brief Creates an empty Cigar.
Cigar(void);
/// \brief Creates a Cigar object from SAM/BAM string input
///
/// \param [in] cigarString SAM/BAM formatted CIGAR data
///
Cigar(const std::string& cigarString);
Cigar(const Cigar& other);
Cigar(Cigar&& other);
Cigar& operator=(const Cigar& other);
Cigar& operator=(Cigar&& other);
~Cigar(void);
/// \}
public:
/// \name Conversion Methods
/// \{
/// Converts Cigar object data to SAM/BAM formatted string
///
/// \returns SAM/BAM formatted std::string
///
std::string ToStdString(void) const;
/// \}
};
} // namespace BAM
} // namespace PacBio
#include "pbbam/internal/Cigar.inl"
#endif // CIGAR_H
| [
"spamavoid@outlook.com"
] | spamavoid@outlook.com |
39d72bc15cf64371603511144195bf12e10a5122 | 7c7ba64a2f18eb0f8713185e5491ef4557f996fe | /EndGame/EndGame/Src/EntryPoint.hpp | 622c4298b2a0d543028ade9f89e6046ec7d1b049 | [
"MIT"
] | permissive | siddharthgarg4/EndGame | f86963b5776984c26d2203ea3d8537a680b13a80 | ba608714b3eacb5dc05d0c852db573231c867d8b | refs/heads/master | 2022-11-27T03:21:53.787321 | 2020-07-30T21:12:02 | 2020-07-30T21:12:02 | 266,642,356 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 325 | hpp | //
// EntryPoint.hpp
// EndGame
//
// Created by Siddharth on 24/05/20.
// Copyright © 2020 Siddharth. All rights reserved.
//
#ifndef EntryPoint_hpp
#define EntryPoint_hpp
#include <EndGame/Src/Application.hpp>
#include <EndGame/Src/EndGamePCH.hpp>
extern EndGame::Application *EndGame::createApplication();
#endif
| [
"30897961+coder004@users.noreply.github.com"
] | 30897961+coder004@users.noreply.github.com |
3ed93aa6f4255d5a9a9facd186e13f056be8fec7 | 4f688d52b576d585eab0dbedbf7bc06cd7ce8da2 | /src/docks/basetreedock.cpp | 0b8169fe6cd0a1f965d63f49a91c886d4a7adc6b | [
"MIT"
] | permissive | dfint/DwarfTherapistRus-30.1 | 6ba6bc5c6964733349deaf96b3685faa56cb2674 | f8b5d6edf0788d640f412a52dc0974ea50e261a6 | refs/heads/master | 2023-01-04T11:38:46.625926 | 2015-09-13T11:01:20 | 2015-09-13T11:50:52 | 310,101,396 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,824 | cpp | /*
Dwarf Therapist
Copyright (c) 2009 Trey Stout (chmod)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
#include "basetreedock.h"
#include "dwarftherapist.h"
#include <QVBoxLayout>
#include <QLineEdit>
#include <QHeaderView>
#include <QPushButton>
#include <QCloseEvent>
#include <QLabel>
BaseTreeDock::BaseTreeDock(QString window_title, QString object_name, bool requires_refresh, QWidget *parent, Qt::WindowFlags flags)
: BaseDock(parent, flags)
, m_collapsed(true)
{
setWindowTitle(window_title);
setObjectName(object_name);
setFeatures(QDockWidget::AllDockWidgetFeatures);
setAllowedAreas(Qt::AllDockWidgetAreas);
m_arr_in = QIcon(":img/arrow-in.png");
m_arr_out = QIcon(":img/arrow-out.png");
QWidget *w = new QWidget();
QVBoxLayout *l = new QVBoxLayout();
w->setLayout(l);
m_tree_view = new QTreeWidget(this);
m_tree_view->setEditTriggers(QAbstractItemView::NoEditTriggers);
m_tree_view->setDropIndicatorShown(false);
m_tree_view->setProperty("showSortIndicator",QVariant(true));
m_tree_view->setSelectionMode(QAbstractItemView::ExtendedSelection);
QHBoxLayout *s = new QHBoxLayout();
QLabel *lbl_search = new QLabel(trUtf8("Search"),this);
s->addWidget(lbl_search);
m_le_search = new QLineEdit(this);
m_le_search->setObjectName("le_search");
s->addWidget(m_le_search);
m_btn_toggle_tree = new QPushButton(this);
m_btn_toggle_tree->setIcon(m_arr_out);
s->addWidget(m_btn_toggle_tree);
QPushButton *btn_clear_search = new QPushButton(this);
QIcon icn_cross(":img/cross.png");
btn_clear_search->setIcon(icn_cross);
s->addWidget(btn_clear_search);
l->addLayout(s);
QPushButton *btn = new QPushButton(trUtf8("Clear Filter"),this);
w->layout()->addWidget(m_tree_view);
w->layout()->addWidget(btn);
setWidget(w);
connect(btn, SIGNAL(clicked()),this,SLOT(clear_filter()));
connect(m_le_search, SIGNAL(textChanged(QString)), this, SLOT(search_changed(QString)));
connect(btn_clear_search, SIGNAL(clicked()),this,SLOT(clear_search()));
connect(m_btn_toggle_tree, SIGNAL(clicked()), this, SLOT(toggle_tree()));
connect(m_tree_view, SIGNAL(itemSelectionChanged()), this, SLOT(selection_changed()));
m_requires_refresh = requires_refresh;
if(DT){
connect(DT,SIGNAL(units_refreshed()),this,SLOT(refresh()));
}
}
BaseTreeDock::~BaseTreeDock(){
delete m_le_search;
delete m_btn_toggle_tree;
delete m_tree_view;
}
void BaseTreeDock::refresh(){
m_tree_view->clear();
if(DT && DT->get_DFInstance()){
m_tree_view->setSortingEnabled(false);
build_tree();
m_tree_view->setSortingEnabled(true);
//sortbycol
m_tree_view->expandAll(); //expand before resize to contents; hidden items aren't resized
for(int i=0;i < m_tree_view->columnCount();i++){
m_tree_view->resizeColumnToContents(i);
}
m_tree_view->collapseAll();
m_collapsed = true;
if(!m_requires_refresh){
disconnect(DT,SIGNAL(units_refreshed()),this,SLOT(refresh()));
}
}
}
void BaseTreeDock::toggle_tree(){
if(m_collapsed){
m_tree_view->expandAll();
m_collapsed = false;
m_btn_toggle_tree->setIcon(m_arr_in);
}else{
m_tree_view->collapseAll();
m_collapsed = true;
m_btn_toggle_tree->setIcon(m_arr_out);
}
}
void BaseTreeDock::clear(){
m_tree_view->clear();
}
void BaseTreeDock::search_changed(QString val){
search_tree(val);
}
void BaseTreeDock::clear_search(){
m_le_search->setText("");
search_tree("");
}
void BaseTreeDock::clear_filter(){
m_tree_view->clearSelection();
}
void BaseTreeDock::closeEvent(QCloseEvent *event){
clear_search();
clear_filter();
event->accept();
}
| [
"soft-cr@ya.ru"
] | soft-cr@ya.ru |
2083eee7f3019eb0f5861ca27bf2adb9b2f85e52 | 0a4c9b2f64fd4f2a5c163ccfb8a61fa4b1bd66b1 | /hamonize-admin/master/src/FlexibleListView.cpp | 68c6b7e2c245b63029d67ced02ebdd23e39961b2 | [
"GPL-2.0-only",
"GPL-1.0-or-later",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-generic-exception",
"Apache-2.0"
] | permissive | chaeya/hamonize | efda39b3861272f73ef3810d364cc084a236e0c3 | f2f31274d237a07296d33fc0cdbbfa76107bf83f | refs/heads/master | 2023-07-22T13:22:36.899279 | 2021-06-08T06:51:10 | 2021-06-08T06:51:10 | 375,566,056 | 0 | 0 | Apache-2.0 | 2023-07-20T11:47:06 | 2021-06-10T04:10:08 | null | UTF-8 | C++ | false | false | 4,659 | cpp | /*
* FlexibleListView.cpp - list view with flexible icon positions
*
* Copyright (c) 2018-2019 Tobias Junghans <tobydox@veyon.io>
*
* This file is part of Veyon - https://veyon.io
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program (see COPYING); if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*
*/
#include <QJsonArray>
#include <QJsonObject>
#include <QUuid>
#include "FlexibleListView.h"
#include "QtCompat.h"
FlexibleListView::FlexibleListView( QWidget* parent ) :
QListView( parent ),
m_uidRole( Qt::UserRole )
{
connect( this, &QListView::indexesMoved, this, &FlexibleListView::updatePositions );
}
void FlexibleListView::setUidRole( int role )
{
m_uidRole = role;
}
void FlexibleListView::setFlexible( bool enabled )
{
if( enabled )
{
setMovement( QListView::Free );
}
else
{
setMovement( QListView::Static );
}
doItemsLayout();
}
bool FlexibleListView::flexible() const
{
return movement() == QListView::Free;
}
void FlexibleListView::alignToGrid()
{
auto m = model();
for( int i = 0, count = m->rowCount(); i < count; ++i )
{
const auto index = m->index( i, 0 );
const auto uid = m->data( index, m_uidRole ).toUuid();
if( uid.isNull() == false && m_positions.contains( uid ) )
{
m_positions[uid] = QPointF( qMax<int>( 0, qRound( m_positions[uid].x() ) ),
qMax<int>( 0, qRound( m_positions[uid].y() ) ) );
setPositionForIndex( toItemPosition( qAsConst(m_positions)[uid] ), index );
}
}
}
QJsonArray FlexibleListView::savePositions()
{
QJsonArray data;
for( auto it = m_positions.constBegin(), end = m_positions.constEnd(); it != end; ++it )
{
QJsonObject object;
object[QStringLiteral("uid")] = it.key().toString();
object[QStringLiteral("x")] = it.value().x();
object[QStringLiteral("y")] = it.value().y();
data += object;
}
return data;
}
void FlexibleListView::loadPositions( const QJsonArray& data )
{
m_positions.clear();
for( const auto& item : data )
{
const auto object = item.toObject();
const QUuid uid( object[QStringLiteral("uid")].toString() );
if( uid.isNull() == false )
{
m_positions[uid] = QPointF( object[QStringLiteral("x")].toDouble(), object[QStringLiteral("y")].toDouble() );
}
}
}
void FlexibleListView::doItemsLayout()
{
QListView::doItemsLayout();
if( movement() == QListView::Free )
{
restorePositions();
}
}
void FlexibleListView::restorePositions()
{
auto m = model();
if( m == nullptr )
{
return;
}
for( int i = 0, count = m->rowCount(); i < count; ++i )
{
const auto index = m->index( i, 0 );
const auto uid = m->data( index, m_uidRole ).toUuid();
if( uid.isNull() == false && m_positions.contains( uid ) )
{
setPositionForIndex( toItemPosition( qAsConst(m_positions)[uid] ), index );
}
}
}
void FlexibleListView::updatePositions()
{
if( movement() == QListView::Free && model() )
{
auto m = model();
for( int i = 0, count = m->rowCount(); i < count; ++i )
{
const auto index = m->index( i, 0 );
const auto uid = m->data( index, m_uidRole ).toUuid();
if( uid.isNull() == false )
{
m_positions[uid] = toGridPoint( rectForIndex( index ).topLeft() );
}
}
}
}
QSizeF FlexibleListView::effectiveGridSize() const
{
auto m = model();
if( m && m->rowCount() > 0 )
{
return rectForIndex( m->index( 0, 0 ) ).size() + QSize( spacing(), spacing() );
}
else if( iconSize().isEmpty() == false )
{
return iconSize() + QSize( spacing(), spacing() );
}
return { spacing() + 1.0, spacing() + 1.0 };
}
QPointF FlexibleListView::toGridPoint( QPoint pos ) const
{
const auto gridSize = effectiveGridSize();
return { ( pos.x() - spacing() ) / gridSize.width(),
( pos.y() - spacing() ) / gridSize.height() };
}
QPoint FlexibleListView::toItemPosition( QPointF gridPoint ) const
{
const auto gridSize = effectiveGridSize();
return { spacing() + qMax<int>( 0, static_cast<int>( gridPoint.x() * gridSize.width() ) ),
spacing() + qMax<int>( 0, static_cast<int>( gridPoint.y() * gridSize.height() ) ) };
}
| [
"bdh1993@invesume.com"
] | bdh1993@invesume.com |
6503750022307c13a24de85db50076162bf205e7 | 32a1d6d2a00109b77d40be64f69d51ad21ef7518 | /Jengine/src/DirectionalLightComponent.h | a67c91c608decfe5b5521aea672b0e2f6fd28612 | [] | no_license | Jasonfran/Jengine | f72ed237e156d0653464a88a65c42d24dd527297 | 91d44e708d286f41a736857103514f0f58df132c | refs/heads/master | 2021-01-23T05:56:01.161600 | 2017-09-06T21:49:17 | 2017-09-06T21:49:17 | 102,483,770 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 275 | h | #pragma once
#include "Component.h"
#include <glm\glm.hpp>
class DirectionalLightComponent : public Component {
public:
glm::vec3 colour;
glm::vec3 direction;
DirectionalLightComponent(glm::vec3 colour, glm::vec3 direction) : colour(colour), direction(direction) {
}
}; | [
"jasonfrancis1997@hotmail.com"
] | jasonfrancis1997@hotmail.com |
6540a8353473cc494a2eb459314b80fedc4b05cd | 17bc35a89305b7f30e367c864dc332bfdee467db | /KeepUpGameP3/Temp/StagingArea/Data/il2cppOutput/Bulk_UnityEngine_0.cpp | a77b808a7f3815f3a6cb12c44986406ad76b075c | [] | no_license | mariocova3/KeepUpGame | 72b298f716794c1d868c3d1e4911127dfaa2be7c | c86423fab83fa8420fe3be33546c7cc42053b49d | refs/heads/master | 2020-12-24T08:00:42.924698 | 2016-09-07T19:19:23 | 2016-09-07T19:19:23 | 58,960,925 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 463,463 | cpp | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
struct t3342907448;
struct t3342907448_marshaled_pinvoke;
struct t2477572954;
struct t3344771555;
struct String_t;
struct t3878351788;
struct t3878351788_marshaled_pinvoke;
struct t3357637594;
struct t3235662729;
struct Il2CppObject;
struct t537683269;
struct t1363551830;
struct t3059485872;
struct t2779486190;
struct t3959431103;
struct t920637194;
struct t920637194_marshaled_pinvoke;
struct t3051965477;
struct t3374395064;
struct t3374395064_marshaled_pinvoke;
struct Type_t;
struct t3431720054;
struct t3714538611;
struct t1219431280;
struct t749510018;
struct t2977871350;
struct t1722466426;
struct t3120504042;
struct t3533968274;
struct t12905170;
struct t458432999;
struct t4012695102;
struct t1908940458;
struct t955670625;
struct t1972007546;
struct t1119538015;
struct t284553113;
struct t1988025008;
struct t287207039;
struct t2126946602;
struct t552366831;
struct t2923905571;
struct t2693066224;
struct t2029520850;
struct t2246592261;
struct t2246592261_marshaled_pinvoke;
struct t281933724;
struct t1076524291;
struct t4167641990;
struct t931256902;
struct t11523773;
struct t564335855;
struct t2131596413;
struct t1240057615;
struct t1590224583;
struct t1590224583_marshaled_pinvoke;
struct t2732610389;
struct t3771143731;
struct t4127144549;
struct t3683860090;
struct t2938797301;
struct t2174897510;
struct t2676812948;
struct t3404354247;
struct t2032975422;
struct t4201313216;
struct t1525081276;
struct t401089076;
struct Il2CppArray;
struct t1677180829;
struct t1677180829_marshaled_pinvoke;
struct t2614611333;
struct t999919624;
struct t1006925219;
struct t2432841515;
struct t4291149951;
struct t1769722184;
struct t999894339;
struct t4113441198;
struct t3151226183;
struct t1011928986;
struct t3394170884;
struct t1890718142;
struct t1013890471;
struct t3653031512;
struct t1067753444;
struct t1668697771;
struct t3748644978;
struct t914030844;
struct t47287592;
struct t2509538522;
struct t2614635829;
struct t1967233988;
struct t116041064;
struct t2739928377;
struct t3804382717;
struct t4153610460;
#include "class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "Il2CppArray.h"
#include "t86524794.h"
#include "t86524794MD.h"
#include "t3342907448.h"
#include "t3342907448MD.h"
#include "t2779279689.h"
#include "UnityEngine_ArrayTypes.h"
#include "t2095052507.h"
#include "Il2CppObjectMD.h"
#include "Il2CppObject.h"
#include "t3344771555.h"
#include "t3344771555MD.h"
#include "t958209021.h"
#include "String_t.h"
#include "String_tMD.h"
#include "t3878351788.h"
#include "t2847414787.h"
#include "t2022798750.h"
#include "t3357637594.h"
#include "t2623293100.h"
#include "t211005341.h"
#include "t1588791936MD.h"
#include "t4162640357.h"
#include "t4255364242.h"
#include "t958209021MD.h"
#include "t2022798750MD.h"
#include "t3357637594MD.h"
#include "t792326996.h"
#include "t792326996MD.h"
#include "t4255364242MD.h"
#include "t4162640357MD.h"
#include "t2791832279.h"
#include "t2791832279MD.h"
#include "t450040189.h"
#include "t450040189MD.h"
#include "t3529269451.h"
#include "t3235662729MD.h"
#include "t3235662729.h"
#include "IntPtr_t.h"
#include "t1363551830.h"
#include "t3059485872.h"
#include "t3059485872MD.h"
#include "t498693649MD.h"
#include "t3959431103.h"
#include "t3959431103MD.h"
#include "t2779486190.h"
#include "t2779486190MD.h"
#include "t3374395064MD.h"
#include "t920637194.h"
#include "t920637194MD.h"
#include "t3374395064.h"
#include "t3557331758MD.h"
#include "t193897593.h"
#include "t193897593MD.h"
#include "t3647875775.h"
#include "t2676812948.h"
#include "t3196495237.h"
#include "Type_t.h"
#include "t1054668674MD.h"
#include "Type_tMD.h"
#include "t1054668674.h"
#include "mscorlib_ArrayTypes.h"
#include "t1864875887.h"
#include "MemberInfo_tMD.h"
#include "MemberInfo_t.h"
#include "t3576188904MD.h"
#include "t3576188904.h"
#include "t3714538611.h"
#include "t3714538611MD.h"
#include "t749510018MD.h"
#include "t749510018.h"
#include "t2977871350MD.h"
#include "t2977871350.h"
#include "t1824070214.h"
#include "t1824070214MD.h"
#include "t1722466426MD.h"
#include "t1722466426.h"
#include "t3120504042.h"
#include "t3120504042MD.h"
#include "t2126946602MD.h"
#include "t3533968274.h"
#include "t3533968274MD.h"
#include "t1525428817.h"
#include "t12905170.h"
#include "t3602484652.h"
#include "t1522967639.h"
#include "t3525329789.h"
#include "t1908940458MD.h"
#include "t1908940458.h"
#include "t4012695102.h"
#include "t4085533775.h"
#include "t3602484652MD.h"
#include "t2029520850.h"
#include "t2029520850MD.h"
#include "t955670625.h"
#include "t955670625MD.h"
#include "t1972007546.h"
#include "t1119538015.h"
#include "t1119538015MD.h"
#include "t284553113.h"
#include "t3878351788MD.h"
#include "t2951122365.h"
#include "Il2CppArrayMD.h"
#include "t3525329789MD.h"
#include "t2126946602.h"
#include "t1588175760.h"
#include "t1588175760MD.h"
#include "t963216403MD.h"
#include "t3525329790MD.h"
#include "t3525329790.h"
#include "t4012695102MD.h"
#include "t2923905571.h"
#include "t2951122365MD.h"
#include "t2693066224.h"
#include "t2693066224MD.h"
#include "t2246592261.h"
#include "t2246592261MD.h"
#include "t281933724.h"
#include "t281933724MD.h"
#include "IntPtr_tMD.h"
#include "t1076524291MD.h"
#include "t2364738776.h"
#include "t1076524291.h"
#include "t2364738776MD.h"
#include "t1588791936.h"
#include "t931256902MD.h"
#include "t3804382717MD.h"
#include "t931256902.h"
#include "t3804382717.h"
#include "t3647875775MD.h"
#include "t564335855.h"
#include "t564335855MD.h"
#include "t1240057615.h"
#include "t1240057615MD.h"
#include "t1590224583.h"
#include "t1590224583MD.h"
#include "t3525329788.h"
#include "t3558284577.h"
#include "t3525329788MD.h"
#include "t2371581209.h"
#include "t3870720879.h"
#include "t2778706699.h"
#include "t3870720879MD.h"
#include "t2732610389.h"
#include "t2732610389MD.h"
#include "t3802381858MD.h"
#include "t1733537956.h"
#include "t1733537956MD.h"
#include "t3771143731.h"
#include "t3771143731MD.h"
#include "t2530496925MD.h"
#include "t2530496925.h"
#include "t4127144549.h"
#include "t4127144549MD.h"
#include "t3123539646.h"
#include "t3683860090.h"
#include "t3683860090MD.h"
#include "t629136222MD.h"
#include "t629136222.h"
#include "t2938797301.h"
#include "t2938797301MD.h"
#include "t2174897510MD.h"
#include "t2174897510.h"
#include "t3123539646MD.h"
#include "t3558284577MD.h"
#include "t2676812948MD.h"
#include "t137235967.h"
#include "t137235967MD.h"
#include "t3361204779.h"
#include "t3361204779MD.h"
#include "t1023709642.h"
#include "t1023709642MD.h"
#include "t608261574.h"
#include "t608261574MD.h"
#include "t4009178800.h"
#include "t4009178800MD.h"
#include "t3404354247.h"
#include "t3404354247MD.h"
#include "t534516614.h"
#include "t1575932342.h"
#include "t2776609905MD.h"
#include "t3216235232MD.h"
#include "t3216235232.h"
#include "t3760259642MD.h"
#include "t3760259642.h"
#include "t4201313216.h"
#include "t4201313216MD.h"
#include "t1575932342MD.h"
#include "t1525081276.h"
#include "t1525081276MD.h"
#include "t1673533981MD.h"
#include "t401089076MD.h"
#include "t1673533981.h"
#include "t401089076.h"
#include "t1975910095.h"
#include "t1975910095MD.h"
#include "t1677180829.h"
#include "t1677180829MD.h"
#include "t1522956648.h"
#include "t1522956648MD.h"
#include "t2344941421MD.h"
#include "t339033936MD.h"
#include "t2344941421.h"
#include "t339033936.h"
#include "t2614611333.h"
#include "t1366332446MD.h"
#include "t2614611333MD.h"
#include "t2432841515MD.h"
#include "t2432841515.h"
#include "t1006925219.h"
#include "t999919624.h"
#include "t1596329428MD.h"
#include "t2490032242MD.h"
#include "t999919624MD.h"
#include "t3151226183.h"
#include "t3653031512.h"
#include "t4291149951.h"
#include "t4291149951MD.h"
#include "t1769722184.h"
#include "t4113441198.h"
#include "t4113441198MD.h"
#include "t999894339.h"
#include "t999894339MD.h"
#include "t2490032242.h"
#include "t3151226183MD.h"
#include "t2622298.h"
#include "t1011928986.h"
#include "t1011928986MD.h"
#include "t1525428817MD.h"
#include "t1006925219MD.h"
#include "t3394170884.h"
#include "t1013890471.h"
#include "t1013890471MD.h"
#include "t1808887955MD.h"
#include "t3394170884MD.h"
#include "t1808887955.h"
#include "t4189638243MD.h"
#include "t1597001355MD.h"
#include "t4189638243.h"
#include "t2622298MD.h"
#include "t1596329428.h"
#include "t4143842295MD.h"
#include "t3653031512MD.h"
#include "t4143842295.h"
#include "t1623036922MD.h"
#include "t1623036922.h"
#include "t3994030297MD.h"
#include "t1067753444.h"
#include "t1067753444MD.h"
#include "t1668697771.h"
#include "t1668697771MD.h"
#include "t184905905MD.h"
#include "t4058118931MD.h"
#include "t2644623123MD.h"
#include "t47287592MD.h"
#include "t4058118931.h"
#include "t2644623123.h"
#include "t47287592.h"
#include "t914030844MD.h"
#include "t914030844.h"
#include "t271792921MD.h"
#include "t271792921.h"
#include "t2411651064.h"
#include "t1561977533.h"
#include "t1525492538MD.h"
#include "t43446288.h"
#include "t140947409.h"
#include "t551935663.h"
#include "t2337595772.h"
#include "t2509538522.h"
#include "t1104173501.h"
#include "t1104173501MD.h"
#include "MethodInfo_t.h"
#include "t2090192240.h"
#include "t2614635829.h"
#include "t2614635829MD.h"
#include "t1366332446.h"
#include "t1967233988.h"
#include "t1967233988MD.h"
#include "t124305799MD.h"
#include "t124305799.h"
#include "t62234258.h"
#include "t62234258MD.h"
#include "t3114874302.h"
#include "t3114874302MD.h"
#include "t3638947579.h"
#include "t3638947579MD.h"
#include "t140947409MD.h"
#include "t1593691127.h"
#include "t1593691127MD.h"
#include "t116041064.h"
#include "t116041064MD.h"
#include "t498693649.h"
#include "t2739928377.h"
#include "t2739928377MD.h"
#include "t1561977533MD.h"
#include "t43446288MD.h"
#include "t2371581209MD.h"
#include "t2095052507MD.h"
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
extern "C" void m2436282331 (t3342907448 * __this, t2477572954* p0, const MethodInfo* method)
{
{
m1772956182(__this, NULL);
t2477572954* L_0 = p0;
m4012213483(__this, L_0, NULL);
return;
}
}
extern "C" void m4037844610 (t3342907448 * __this, const MethodInfo* method)
{
{
m1772956182(__this, NULL);
m4012213483(__this, (t2477572954*)(t2477572954*)NULL, NULL);
return;
}
}
extern "C" void m386995588 (t3342907448 * __this, const MethodInfo* method)
{
typedef void (*m386995588_ftn) (t3342907448 *);
static m386995588_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m386995588_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.AnimationCurve::Cleanup()");
_il2cpp_icall_func(__this);
}
extern "C" void m2382224032 (t3342907448 * __this, const MethodInfo* method)
{
t1967233988 * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
t1967233988 * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
IL_0000:
try
{ // begin try (depth: 1)
m386995588(__this, NULL);
IL2CPP_LEAVE(0x12, FINALLY_000b);
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t1967233988 *)e.ex;
goto FINALLY_000b;
}
FINALLY_000b:
{ // begin finally (depth: 1)
m3027285644(__this, NULL);
IL2CPP_END_FINALLY(11)
} // end finally (depth: 1)
IL2CPP_CLEANUP(11)
{
IL2CPP_JUMP_TBL(0x12, IL_0012)
IL2CPP_RETHROW_IF_UNHANDLED(t1967233988 *)
}
IL_0012:
{
return;
}
}
extern "C" void m4012213483 (t3342907448 * __this, t2477572954* p0, const MethodInfo* method)
{
typedef void (*m4012213483_ftn) (t3342907448 *, t2477572954*);
static m4012213483_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m4012213483_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.AnimationCurve::Init(UnityEngine.Keyframe[])");
_il2cpp_icall_func(__this, p0);
}
// Conversion methods for marshalling of: UnityEngine.AnimationCurve
extern "C" void t3342907448_marshal_pinvoke(const t3342907448& unmarshaled, t3342907448_marshaled_pinvoke& marshaled)
{
marshaled.f0 = reinterpret_cast<intptr_t>((unmarshaled.fg0()).fg0());
}
extern "C" void t3342907448_marshal_pinvoke_back(const t3342907448_marshaled_pinvoke& marshaled, t3342907448& unmarshaled)
{
IntPtr_t unmarshaled_m_Ptr_temp;
memset(&unmarshaled_m_Ptr_temp, 0, sizeof(unmarshaled_m_Ptr_temp));
IntPtr_t unmarshaled_m_Ptr_temp_temp;
unmarshaled_m_Ptr_temp_temp.set_m_value_0(reinterpret_cast<void*>((intptr_t)marshaled.f0));
unmarshaled_m_Ptr_temp = unmarshaled_m_Ptr_temp_temp;
unmarshaled.fs0(unmarshaled_m_Ptr_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.AnimationCurve
extern "C" void t3342907448_marshal_pinvoke_cleanup(t3342907448_marshaled_pinvoke& marshaled)
{
}
// Conversion methods for marshalling of: UnityEngine.AnimationCurve
extern "C" void t3342907448_marshal_com(const t3342907448& unmarshaled, t3342907448_marshaled_com& marshaled)
{
marshaled.f0 = reinterpret_cast<intptr_t>((unmarshaled.fg0()).fg0());
}
extern "C" void t3342907448_marshal_com_back(const t3342907448_marshaled_com& marshaled, t3342907448& unmarshaled)
{
IntPtr_t unmarshaled_m_Ptr_temp;
memset(&unmarshaled_m_Ptr_temp, 0, sizeof(unmarshaled_m_Ptr_temp));
IntPtr_t unmarshaled_m_Ptr_temp_temp;
unmarshaled_m_Ptr_temp_temp.set_m_value_0(reinterpret_cast<void*>((intptr_t)marshaled.f0));
unmarshaled_m_Ptr_temp = unmarshaled_m_Ptr_temp_temp;
unmarshaled.fs0(unmarshaled_m_Ptr_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.AnimationCurve
extern "C" void t3342907448_marshal_com_cleanup(t3342907448_marshaled_com& marshaled)
{
}
extern TypeInfo* String_t_TI_var;
extern const uint32_t m3893222711_MetadataUsageId;
extern "C" void m3893222711 (t3344771555 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3893222711_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
m1772956182(__this, NULL);
__this->fs0((0.0f));
IL2CPP_RUNTIME_CLASS_INIT(String_t_TI_var);
String_t* L_0 = ((String_t_SFs*)String_t_TI_var->static_fields)->fg2();
__this->fs1(L_0);
String_t* L_1 = ((String_t_SFs*)String_t_TI_var->static_fields)->fg2();
__this->fs2(L_1);
__this->fs3((t3878351788 *)NULL);
__this->fs4((0.0f));
__this->fs5(0);
__this->fs6(0);
__this->fs7(0);
__this->fs8((t3357637594 *)NULL);
return;
}
}
extern "C" String_t* m2818928483 (t3344771555 * __this, const MethodInfo* method)
{
{
String_t* L_0 = __this->fg2();
return L_0;
}
}
extern "C" void m1709280462 (t3344771555 * __this, String_t* p0, const MethodInfo* method)
{
{
String_t* L_0 = p0;
__this->fs2(L_0);
return;
}
}
extern "C" String_t* m774178145 (t3344771555 * __this, const MethodInfo* method)
{
{
String_t* L_0 = __this->fg2();
return L_0;
}
}
extern "C" void m4027163538 (t3344771555 * __this, String_t* p0, const MethodInfo* method)
{
{
String_t* L_0 = p0;
__this->fs2(L_0);
return;
}
}
extern "C" float m585550415 (t3344771555 * __this, const MethodInfo* method)
{
{
float L_0 = __this->fg4();
return L_0;
}
}
extern "C" void m3972419412 (t3344771555 * __this, float p0, const MethodInfo* method)
{
{
float L_0 = p0;
__this->fs4(L_0);
return;
}
}
extern "C" int32_t m1837369744 (t3344771555 * __this, const MethodInfo* method)
{
{
int32_t L_0 = __this->fg5();
return L_0;
}
}
extern "C" void m1983832533 (t3344771555 * __this, int32_t p0, const MethodInfo* method)
{
{
int32_t L_0 = p0;
__this->fs5(L_0);
return;
}
}
extern "C" t3878351788 * m1449907980 (t3344771555 * __this, const MethodInfo* method)
{
{
t3878351788 * L_0 = __this->fg3();
return L_0;
}
}
extern "C" void m2952903185 (t3344771555 * __this, t3878351788 * p0, const MethodInfo* method)
{
{
t3878351788 * L_0 = p0;
__this->fs3(L_0);
return;
}
}
extern "C" String_t* m508701692 (t3344771555 * __this, const MethodInfo* method)
{
{
String_t* L_0 = __this->fg1();
return L_0;
}
}
extern "C" void m3347976661 (t3344771555 * __this, String_t* p0, const MethodInfo* method)
{
{
String_t* L_0 = p0;
__this->fs1(L_0);
return;
}
}
extern "C" float m4165710255 (t3344771555 * __this, const MethodInfo* method)
{
{
float L_0 = __this->fg0();
return L_0;
}
}
extern "C" void m2746909172 (t3344771555 * __this, float p0, const MethodInfo* method)
{
{
float L_0 = p0;
__this->fs0(L_0);
return;
}
}
extern "C" int32_t m501221094 (t3344771555 * __this, const MethodInfo* method)
{
{
int32_t L_0 = __this->fg6();
return (int32_t)(L_0);
}
}
extern "C" void m927737387 (t3344771555 * __this, int32_t p0, const MethodInfo* method)
{
{
int32_t L_0 = p0;
__this->fs6(L_0);
return;
}
}
extern "C" bool m1265747114 (t3344771555 * __this, const MethodInfo* method)
{
{
int32_t L_0 = __this->fg7();
return (bool)((((int32_t)L_0) == ((int32_t)1))? 1 : 0);
}
}
extern "C" bool m877765704 (t3344771555 * __this, const MethodInfo* method)
{
{
int32_t L_0 = __this->fg7();
return (bool)((((int32_t)L_0) == ((int32_t)2))? 1 : 0);
}
}
extern TypeInfo* t1588791936_TI_var;
extern Il2CppCodeGenString* _stringLiteral2304947623;
extern const uint32_t m2712753230_MetadataUsageId;
extern "C" t3357637594 * m2712753230 (t3344771555 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2712753230_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
bool L_0 = m1265747114(__this, NULL);
if (L_0)
{
goto IL_0015;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t1588791936_TI_var);
m4127342994(NULL, _stringLiteral2304947623, NULL);
}
IL_0015:
{
t3357637594 * L_1 = __this->fg8();
return L_1;
}
}
extern TypeInfo* t1588791936_TI_var;
extern Il2CppCodeGenString* _stringLiteral277642195;
extern const uint32_t m194903218_MetadataUsageId;
extern "C" t4162640357 m194903218 (t3344771555 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m194903218_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
bool L_0 = m877765704(__this, NULL);
if (L_0)
{
goto IL_0015;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t1588791936_TI_var);
m4127342994(NULL, _stringLiteral277642195, NULL);
}
IL_0015:
{
t4162640357 L_1 = __this->fg9();
return L_1;
}
}
extern TypeInfo* t1588791936_TI_var;
extern Il2CppCodeGenString* _stringLiteral3626112682;
extern const uint32_t m493861262_MetadataUsageId;
extern "C" t4255364242 m493861262 (t3344771555 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m493861262_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
bool L_0 = m877765704(__this, NULL);
if (L_0)
{
goto IL_0015;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t1588791936_TI_var);
m4127342994(NULL, _stringLiteral3626112682, NULL);
}
IL_0015:
{
t4255364242 L_1 = __this->fg10();
return L_1;
}
}
extern "C" int32_t m2586883417 (t3344771555 * __this, const MethodInfo* method)
{
int32_t V_0 = 0;
float V_1 = 0.0f;
{
V_0 = 0;
String_t* L_0 = m508701692(__this, NULL);
int32_t L_1 = m471729487(L_0, NULL);
V_0 = L_1;
int32_t L_2 = V_0;
float L_3 = m4165710255(__this, NULL);
V_1 = L_3;
int32_t L_4 = m65342520((&V_1), NULL);
V_0 = ((int32_t)((int32_t)((int32_t)((int32_t)((int32_t)33)*(int32_t)L_2))+(int32_t)L_4));
int32_t L_5 = V_0;
return L_5;
}
}
extern "C" int32_t m4020897098 (Il2CppObject * __this , String_t* p0, const MethodInfo* method)
{
typedef int32_t (*m4020897098_ftn) (String_t*);
static m4020897098_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m4020897098_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Animator::StringToHash(System.String)");
return _il2cpp_icall_func(p0);
}
// Conversion methods for marshalling of: UnityEngine.AnimatorClipInfo
extern "C" void t4255364242_marshal_pinvoke(const t4255364242& unmarshaled, t4255364242_marshaled_pinvoke& marshaled)
{
marshaled.f0 = unmarshaled.fg0();
marshaled.f1 = unmarshaled.fg1();
}
extern "C" void t4255364242_marshal_pinvoke_back(const t4255364242_marshaled_pinvoke& marshaled, t4255364242& unmarshaled)
{
int32_t unmarshaled_m_ClipInstanceID_temp = 0;
unmarshaled_m_ClipInstanceID_temp = marshaled.f0;
unmarshaled.fs0(unmarshaled_m_ClipInstanceID_temp);
float unmarshaled_m_Weight_temp = 0.0f;
unmarshaled_m_Weight_temp = marshaled.f1;
unmarshaled.fs1(unmarshaled_m_Weight_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.AnimatorClipInfo
extern "C" void t4255364242_marshal_pinvoke_cleanup(t4255364242_marshaled_pinvoke& marshaled)
{
}
// Conversion methods for marshalling of: UnityEngine.AnimatorClipInfo
extern "C" void t4255364242_marshal_com(const t4255364242& unmarshaled, t4255364242_marshaled_com& marshaled)
{
marshaled.f0 = unmarshaled.fg0();
marshaled.f1 = unmarshaled.fg1();
}
extern "C" void t4255364242_marshal_com_back(const t4255364242_marshaled_com& marshaled, t4255364242& unmarshaled)
{
int32_t unmarshaled_m_ClipInstanceID_temp = 0;
unmarshaled_m_ClipInstanceID_temp = marshaled.f0;
unmarshaled.fs0(unmarshaled_m_ClipInstanceID_temp);
float unmarshaled_m_Weight_temp = 0.0f;
unmarshaled_m_Weight_temp = marshaled.f1;
unmarshaled.fs1(unmarshaled_m_Weight_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.AnimatorClipInfo
extern "C" void t4255364242_marshal_com_cleanup(t4255364242_marshaled_com& marshaled)
{
}
extern "C" bool m1653922768 (t4162640357 * __this, String_t* p0, const MethodInfo* method)
{
int32_t V_0 = 0;
int32_t G_B4_0 = 0;
{
String_t* L_0 = p0;
int32_t L_1 = m4020897098(NULL, L_0, NULL);
V_0 = L_1;
int32_t L_2 = V_0;
int32_t L_3 = __this->fg2();
if ((((int32_t)L_2) == ((int32_t)L_3)))
{
goto IL_002a;
}
}
{
int32_t L_4 = V_0;
int32_t L_5 = __this->fg0();
if ((((int32_t)L_4) == ((int32_t)L_5)))
{
goto IL_002a;
}
}
{
int32_t L_6 = V_0;
int32_t L_7 = __this->fg1();
G_B4_0 = ((((int32_t)L_6) == ((int32_t)L_7))? 1 : 0);
goto IL_002b;
}
IL_002a:
{
G_B4_0 = 1;
}
IL_002b:
{
return (bool)G_B4_0;
}
}
extern "C" int32_t m3257074542 (t4162640357 * __this, const MethodInfo* method)
{
{
int32_t L_0 = __this->fg2();
return L_0;
}
}
extern "C" int32_t m453823205 (t4162640357 * __this, const MethodInfo* method)
{
{
int32_t L_0 = __this->fg1();
return L_0;
}
}
extern "C" int32_t m994885515 (t4162640357 * __this, const MethodInfo* method)
{
{
int32_t L_0 = __this->fg0();
return L_0;
}
}
extern "C" float m2531821060 (t4162640357 * __this, const MethodInfo* method)
{
{
float L_0 = __this->fg3();
return L_0;
}
}
extern "C" float m3147284742 (t4162640357 * __this, const MethodInfo* method)
{
{
float L_0 = __this->fg4();
return L_0;
}
}
extern "C" float m247405833 (t4162640357 * __this, const MethodInfo* method)
{
{
float L_0 = __this->fg5();
return L_0;
}
}
extern "C" float m489756842 (t4162640357 * __this, const MethodInfo* method)
{
{
float L_0 = __this->fg6();
return L_0;
}
}
extern "C" int32_t m3543262078 (t4162640357 * __this, const MethodInfo* method)
{
{
int32_t L_0 = __this->fg7();
return L_0;
}
}
extern "C" bool m119936877 (t4162640357 * __this, String_t* p0, const MethodInfo* method)
{
{
String_t* L_0 = p0;
int32_t L_1 = m4020897098(NULL, L_0, NULL);
int32_t L_2 = __this->fg7();
return (bool)((((int32_t)L_1) == ((int32_t)L_2))? 1 : 0);
}
}
extern "C" bool m1495892586 (t4162640357 * __this, const MethodInfo* method)
{
{
int32_t L_0 = __this->fg8();
return (bool)((((int32_t)((((int32_t)L_0) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
}
}
// Conversion methods for marshalling of: UnityEngine.AnimatorStateInfo
extern "C" void t4162640357_marshal_pinvoke(const t4162640357& unmarshaled, t4162640357_marshaled_pinvoke& marshaled)
{
marshaled.f0 = unmarshaled.fg0();
marshaled.f1 = unmarshaled.fg1();
marshaled.f2 = unmarshaled.fg2();
marshaled.f3 = unmarshaled.fg3();
marshaled.f4 = unmarshaled.fg4();
marshaled.f5 = unmarshaled.fg5();
marshaled.f6 = unmarshaled.fg6();
marshaled.f7 = unmarshaled.fg7();
marshaled.f8 = unmarshaled.fg8();
}
extern "C" void t4162640357_marshal_pinvoke_back(const t4162640357_marshaled_pinvoke& marshaled, t4162640357& unmarshaled)
{
int32_t unmarshaled_m_Name_temp = 0;
unmarshaled_m_Name_temp = marshaled.f0;
unmarshaled.fs0(unmarshaled_m_Name_temp);
int32_t unmarshaled_m_Path_temp = 0;
unmarshaled_m_Path_temp = marshaled.f1;
unmarshaled.fs1(unmarshaled_m_Path_temp);
int32_t unmarshaled_m_FullPath_temp = 0;
unmarshaled_m_FullPath_temp = marshaled.f2;
unmarshaled.fs2(unmarshaled_m_FullPath_temp);
float unmarshaled_m_NormalizedTime_temp = 0.0f;
unmarshaled_m_NormalizedTime_temp = marshaled.f3;
unmarshaled.fs3(unmarshaled_m_NormalizedTime_temp);
float unmarshaled_m_Length_temp = 0.0f;
unmarshaled_m_Length_temp = marshaled.f4;
unmarshaled.fs4(unmarshaled_m_Length_temp);
float unmarshaled_m_Speed_temp = 0.0f;
unmarshaled_m_Speed_temp = marshaled.f5;
unmarshaled.fs5(unmarshaled_m_Speed_temp);
float unmarshaled_m_SpeedMultiplier_temp = 0.0f;
unmarshaled_m_SpeedMultiplier_temp = marshaled.f6;
unmarshaled.fs6(unmarshaled_m_SpeedMultiplier_temp);
int32_t unmarshaled_m_Tag_temp = 0;
unmarshaled_m_Tag_temp = marshaled.f7;
unmarshaled.fs7(unmarshaled_m_Tag_temp);
int32_t unmarshaled_m_Loop_temp = 0;
unmarshaled_m_Loop_temp = marshaled.f8;
unmarshaled.fs8(unmarshaled_m_Loop_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.AnimatorStateInfo
extern "C" void t4162640357_marshal_pinvoke_cleanup(t4162640357_marshaled_pinvoke& marshaled)
{
}
// Conversion methods for marshalling of: UnityEngine.AnimatorStateInfo
extern "C" void t4162640357_marshal_com(const t4162640357& unmarshaled, t4162640357_marshaled_com& marshaled)
{
marshaled.f0 = unmarshaled.fg0();
marshaled.f1 = unmarshaled.fg1();
marshaled.f2 = unmarshaled.fg2();
marshaled.f3 = unmarshaled.fg3();
marshaled.f4 = unmarshaled.fg4();
marshaled.f5 = unmarshaled.fg5();
marshaled.f6 = unmarshaled.fg6();
marshaled.f7 = unmarshaled.fg7();
marshaled.f8 = unmarshaled.fg8();
}
extern "C" void t4162640357_marshal_com_back(const t4162640357_marshaled_com& marshaled, t4162640357& unmarshaled)
{
int32_t unmarshaled_m_Name_temp = 0;
unmarshaled_m_Name_temp = marshaled.f0;
unmarshaled.fs0(unmarshaled_m_Name_temp);
int32_t unmarshaled_m_Path_temp = 0;
unmarshaled_m_Path_temp = marshaled.f1;
unmarshaled.fs1(unmarshaled_m_Path_temp);
int32_t unmarshaled_m_FullPath_temp = 0;
unmarshaled_m_FullPath_temp = marshaled.f2;
unmarshaled.fs2(unmarshaled_m_FullPath_temp);
float unmarshaled_m_NormalizedTime_temp = 0.0f;
unmarshaled_m_NormalizedTime_temp = marshaled.f3;
unmarshaled.fs3(unmarshaled_m_NormalizedTime_temp);
float unmarshaled_m_Length_temp = 0.0f;
unmarshaled_m_Length_temp = marshaled.f4;
unmarshaled.fs4(unmarshaled_m_Length_temp);
float unmarshaled_m_Speed_temp = 0.0f;
unmarshaled_m_Speed_temp = marshaled.f5;
unmarshaled.fs5(unmarshaled_m_Speed_temp);
float unmarshaled_m_SpeedMultiplier_temp = 0.0f;
unmarshaled_m_SpeedMultiplier_temp = marshaled.f6;
unmarshaled.fs6(unmarshaled_m_SpeedMultiplier_temp);
int32_t unmarshaled_m_Tag_temp = 0;
unmarshaled_m_Tag_temp = marshaled.f7;
unmarshaled.fs7(unmarshaled_m_Tag_temp);
int32_t unmarshaled_m_Loop_temp = 0;
unmarshaled_m_Loop_temp = marshaled.f8;
unmarshaled.fs8(unmarshaled_m_Loop_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.AnimatorStateInfo
extern "C" void t4162640357_marshal_com_cleanup(t4162640357_marshaled_com& marshaled)
{
}
extern "C" bool m1283663078 (t2791832279 * __this, String_t* p0, const MethodInfo* method)
{
int32_t G_B3_0 = 0;
{
String_t* L_0 = p0;
int32_t L_1 = m4020897098(NULL, L_0, NULL);
int32_t L_2 = __this->fg2();
if ((((int32_t)L_1) == ((int32_t)L_2)))
{
goto IL_0021;
}
}
{
String_t* L_3 = p0;
int32_t L_4 = m4020897098(NULL, L_3, NULL);
int32_t L_5 = __this->fg0();
G_B3_0 = ((((int32_t)L_4) == ((int32_t)L_5))? 1 : 0);
goto IL_0022;
}
IL_0021:
{
G_B3_0 = 1;
}
IL_0022:
{
return (bool)G_B3_0;
}
}
extern "C" bool m2732197659 (t2791832279 * __this, String_t* p0, const MethodInfo* method)
{
{
String_t* L_0 = p0;
int32_t L_1 = m4020897098(NULL, L_0, NULL);
int32_t L_2 = __this->fg1();
return (bool)((((int32_t)L_1) == ((int32_t)L_2))? 1 : 0);
}
}
extern "C" int32_t m3335466636 (t2791832279 * __this, const MethodInfo* method)
{
{
int32_t L_0 = __this->fg0();
return L_0;
}
}
extern "C" int32_t m2102867203 (t2791832279 * __this, const MethodInfo* method)
{
{
int32_t L_0 = __this->fg2();
return L_0;
}
}
extern "C" int32_t m249220782 (t2791832279 * __this, const MethodInfo* method)
{
{
int32_t L_0 = __this->fg1();
return L_0;
}
}
extern "C" float m3258684986 (t2791832279 * __this, const MethodInfo* method)
{
{
float L_0 = __this->fg3();
return L_0;
}
}
extern "C" bool m3421556405 (t2791832279 * __this, const MethodInfo* method)
{
{
bool L_0 = __this->fg4();
return L_0;
}
}
extern "C" bool m2038132324 (t2791832279 * __this, const MethodInfo* method)
{
{
int32_t L_0 = __this->fg5();
return (bool)((((int32_t)((((int32_t)((int32_t)((int32_t)L_0&(int32_t)2))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
}
}
extern "C" bool m2568505102 (t2791832279 * __this, const MethodInfo* method)
{
{
int32_t L_0 = __this->fg5();
return (bool)((((int32_t)((((int32_t)((int32_t)((int32_t)L_0&(int32_t)4))) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
}
}
// Conversion methods for marshalling of: UnityEngine.AnimatorTransitionInfo
extern "C" void t2791832279_marshal_pinvoke(const t2791832279& unmarshaled, t2791832279_marshaled_pinvoke& marshaled)
{
marshaled.f0 = unmarshaled.fg0();
marshaled.f1 = unmarshaled.fg1();
marshaled.f2 = unmarshaled.fg2();
marshaled.f3 = unmarshaled.fg3();
marshaled.f4 = unmarshaled.fg4();
marshaled.f5 = unmarshaled.fg5();
}
extern "C" void t2791832279_marshal_pinvoke_back(const t2791832279_marshaled_pinvoke& marshaled, t2791832279& unmarshaled)
{
int32_t unmarshaled_m_FullPath_temp = 0;
unmarshaled_m_FullPath_temp = marshaled.f0;
unmarshaled.fs0(unmarshaled_m_FullPath_temp);
int32_t unmarshaled_m_UserName_temp = 0;
unmarshaled_m_UserName_temp = marshaled.f1;
unmarshaled.fs1(unmarshaled_m_UserName_temp);
int32_t unmarshaled_m_Name_temp = 0;
unmarshaled_m_Name_temp = marshaled.f2;
unmarshaled.fs2(unmarshaled_m_Name_temp);
float unmarshaled_m_NormalizedTime_temp = 0.0f;
unmarshaled_m_NormalizedTime_temp = marshaled.f3;
unmarshaled.fs3(unmarshaled_m_NormalizedTime_temp);
bool unmarshaled_m_AnyState_temp = false;
unmarshaled_m_AnyState_temp = marshaled.f4;
unmarshaled.fs4(unmarshaled_m_AnyState_temp);
int32_t unmarshaled_m_TransitionType_temp = 0;
unmarshaled_m_TransitionType_temp = marshaled.f5;
unmarshaled.fs5(unmarshaled_m_TransitionType_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.AnimatorTransitionInfo
extern "C" void t2791832279_marshal_pinvoke_cleanup(t2791832279_marshaled_pinvoke& marshaled)
{
}
// Conversion methods for marshalling of: UnityEngine.AnimatorTransitionInfo
extern "C" void t2791832279_marshal_com(const t2791832279& unmarshaled, t2791832279_marshaled_com& marshaled)
{
marshaled.f0 = unmarshaled.fg0();
marshaled.f1 = unmarshaled.fg1();
marshaled.f2 = unmarshaled.fg2();
marshaled.f3 = unmarshaled.fg3();
marshaled.f4 = unmarshaled.fg4();
marshaled.f5 = unmarshaled.fg5();
}
extern "C" void t2791832279_marshal_com_back(const t2791832279_marshaled_com& marshaled, t2791832279& unmarshaled)
{
int32_t unmarshaled_m_FullPath_temp = 0;
unmarshaled_m_FullPath_temp = marshaled.f0;
unmarshaled.fs0(unmarshaled_m_FullPath_temp);
int32_t unmarshaled_m_UserName_temp = 0;
unmarshaled_m_UserName_temp = marshaled.f1;
unmarshaled.fs1(unmarshaled_m_UserName_temp);
int32_t unmarshaled_m_Name_temp = 0;
unmarshaled_m_Name_temp = marshaled.f2;
unmarshaled.fs2(unmarshaled_m_Name_temp);
float unmarshaled_m_NormalizedTime_temp = 0.0f;
unmarshaled_m_NormalizedTime_temp = marshaled.f3;
unmarshaled.fs3(unmarshaled_m_NormalizedTime_temp);
bool unmarshaled_m_AnyState_temp = false;
unmarshaled_m_AnyState_temp = marshaled.f4;
unmarshaled.fs4(unmarshaled_m_AnyState_temp);
int32_t unmarshaled_m_TransitionType_temp = 0;
unmarshaled_m_TransitionType_temp = marshaled.f5;
unmarshaled.fs5(unmarshaled_m_TransitionType_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.AnimatorTransitionInfo
extern "C" void t2791832279_marshal_com_cleanup(t2791832279_marshaled_com& marshaled)
{
}
extern TypeInfo* t450040189_TI_var;
extern const uint32_t m419361836_MetadataUsageId;
extern "C" void m419361836 (Il2CppObject * __this , String_t* p0, String_t* p1, int32_t p2, bool p3, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m419361836_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t3235662729 * V_0 = NULL;
t3235662729 * V_1 = NULL;
{
bool L_0 = p3;
if (!L_0)
{
goto IL_001b;
}
}
{
t3235662729 * L_1 = ((t450040189_SFs*)t450040189_TI_var->static_fields)->fg0();
V_0 = L_1;
t3235662729 * L_2 = V_0;
if (!L_2)
{
goto IL_001b;
}
}
{
t3235662729 * L_3 = V_0;
String_t* L_4 = p0;
String_t* L_5 = p1;
int32_t L_6 = p2;
m1886455446(L_3, L_4, L_5, L_6, NULL);
}
IL_001b:
{
t3235662729 * L_7 = ((t450040189_SFs*)t450040189_TI_var->static_fields)->fg1();
V_1 = L_7;
t3235662729 * L_8 = V_1;
if (!L_8)
{
goto IL_0030;
}
}
{
t3235662729 * L_9 = V_1;
String_t* L_10 = p0;
String_t* L_11 = p1;
int32_t L_12 = p2;
m1886455446(L_9, L_10, L_11, L_12, NULL);
}
IL_0030:
{
return;
}
}
extern "C" void m286543475 (t3235662729 * __this, Il2CppObject * p0, IntPtr_t p1, const MethodInfo* method)
{
__this->fs0((methodPointerType)((MethodInfo*)p1.fg0())->method);
__this->fs3(p1);
__this->fs2(p0);
}
extern "C" void m1886455446 (t3235662729 * __this, String_t* p0, String_t* p1, int32_t p2, const MethodInfo* method)
{
if(__this->fg9() != NULL)
{
m1886455446((t3235662729 *)__this->fg9(),p0, p1, p2, method);
}
il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found((MethodInfo*)(__this->fg3().fg0()));
bool ___methodIsStatic = MethodIsStatic((MethodInfo*)(__this->fg3().fg0()));
if (__this->fg2() != NULL && ___methodIsStatic)
{
typedef void (*FunctionPointerType) (Il2CppObject *, void* __this, String_t* p0, String_t* p1, int32_t p2, const MethodInfo* method);
((FunctionPointerType)__this->fg0())(NULL,il2cpp_codegen_get_delegate_this(__this),p0, p1, p2,(MethodInfo*)(__this->fg3().fg0()));
}
else if (__this->fg2() != NULL || ___methodIsStatic)
{
typedef void (*FunctionPointerType) (void* __this, String_t* p0, String_t* p1, int32_t p2, const MethodInfo* method);
((FunctionPointerType)__this->fg0())(il2cpp_codegen_get_delegate_this(__this),p0, p1, p2,(MethodInfo*)(__this->fg3().fg0()));
}
else
{
typedef void (*FunctionPointerType) (void* __this, String_t* p1, int32_t p2, const MethodInfo* method);
((FunctionPointerType)__this->fg0())(p0, p1, p2,(MethodInfo*)(__this->fg3().fg0()));
}
}
extern "C" void pinvoke_delegate_wrapper_t3235662729(Il2CppObject* delegate, String_t* p0, String_t* p1, int32_t p2)
{
typedef void (STDCALL *native_function_ptr_type)(char*, char*, int32_t);
native_function_ptr_type _il2cpp_pinvoke_func = ((native_function_ptr_type)((Il2CppDelegate*)delegate)->method->method);
// Marshaling of parameter 'p0' to native representation
char* _p0_marshaled = NULL;
_p0_marshaled = il2cpp_codegen_marshal_string(p0);
// Marshaling of parameter 'p1' to native representation
char* _p1_marshaled = NULL;
_p1_marshaled = il2cpp_codegen_marshal_string(p1);
// Marshaling of parameter 'p2' to native representation
// Native function invocation
_il2cpp_pinvoke_func(_p0_marshaled, _p1_marshaled, p2);
// Marshaling cleanup of parameter 'p0' native representation
il2cpp_codegen_marshal_free(_p0_marshaled);
_p0_marshaled = NULL;
// Marshaling cleanup of parameter 'p1' native representation
il2cpp_codegen_marshal_free(_p1_marshaled);
_p1_marshaled = NULL;
// Marshaling cleanup of parameter 'p2' native representation
}
extern TypeInfo* t3529269451_TI_var;
extern const uint32_t m1640350401_MetadataUsageId;
extern "C" Il2CppObject * m1640350401 (t3235662729 * __this, String_t* p0, String_t* p1, int32_t p2, t1363551830 * p3, Il2CppObject * p4, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m1640350401_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
void *__d_args[4] = {0};
__d_args[0] = p0;
__d_args[1] = p1;
__d_args[2] = Box(t3529269451_TI_var, &p2);
return (Il2CppObject *)il2cpp_delegate_begin_invoke((Il2CppDelegate*)__this, __d_args, (Il2CppDelegate*)p3, (Il2CppObject*)p4);
}
extern "C" void m2883514883 (t3235662729 * __this, Il2CppObject * p0, const MethodInfo* method)
{
il2cpp_delegate_end_invoke((Il2CppAsyncResult*) p0, 0);
}
extern "C" void m582741130 (t3059485872 * __this, const MethodInfo* method)
{
{
m2985353781(__this, NULL);
return;
}
}
extern "C" void m109192972 (t2779486190 * __this, const MethodInfo* method)
{
{
m162101250(__this, NULL);
return;
}
}
extern "C" t3959431103 * m198975995 (t2779486190 * __this, const MethodInfo* method)
{
typedef t3959431103 * (*m198975995_ftn) (t2779486190 *);
static m198975995_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m198975995_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.AssetBundleCreateRequest::get_assetBundle()");
return _il2cpp_icall_func(__this);
}
extern "C" void m616322731 (t2779486190 * __this, const MethodInfo* method)
{
typedef void (*m616322731_ftn) (t2779486190 *);
static m616322731_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m616322731_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.AssetBundleCreateRequest::DisableCompatibilityChecks()");
_il2cpp_icall_func(__this);
}
extern "C" void m1736261360 (t920637194 * __this, const MethodInfo* method)
{
{
m162101250(__this, NULL);
return;
}
}
extern "C" t3878351788 * m1874521436 (t920637194 * __this, const MethodInfo* method)
{
typedef t3878351788 * (*m1874521436_ftn) (t920637194 *);
static m1874521436_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1874521436_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.AssetBundleRequest::get_asset()");
return _il2cpp_icall_func(__this);
}
extern "C" t3051965477* m2335877586 (t920637194 * __this, const MethodInfo* method)
{
typedef t3051965477* (*m2335877586_ftn) (t920637194 *);
static m2335877586_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2335877586_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.AssetBundleRequest::get_allAssets()");
return _il2cpp_icall_func(__this);
}
// Conversion methods for marshalling of: UnityEngine.AssetBundleRequest
extern "C" void t920637194_marshal_pinvoke(const t920637194& unmarshaled, t920637194_marshaled_pinvoke& marshaled)
{
marshaled.f0 = reinterpret_cast<intptr_t>((unmarshaled.fg0()).fg0());
}
extern "C" void t920637194_marshal_pinvoke_back(const t920637194_marshaled_pinvoke& marshaled, t920637194& unmarshaled)
{
IntPtr_t unmarshaled_m_Ptr_temp;
memset(&unmarshaled_m_Ptr_temp, 0, sizeof(unmarshaled_m_Ptr_temp));
IntPtr_t unmarshaled_m_Ptr_temp_temp;
unmarshaled_m_Ptr_temp_temp.set_m_value_0(reinterpret_cast<void*>((intptr_t)marshaled.f0));
unmarshaled_m_Ptr_temp = unmarshaled_m_Ptr_temp_temp;
unmarshaled.fs0(unmarshaled_m_Ptr_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.AssetBundleRequest
extern "C" void t920637194_marshal_pinvoke_cleanup(t920637194_marshaled_pinvoke& marshaled)
{
}
// Conversion methods for marshalling of: UnityEngine.AssetBundleRequest
extern "C" void t920637194_marshal_com(const t920637194& unmarshaled, t920637194_marshaled_com& marshaled)
{
marshaled.f0 = reinterpret_cast<intptr_t>((unmarshaled.fg0()).fg0());
}
extern "C" void t920637194_marshal_com_back(const t920637194_marshaled_com& marshaled, t920637194& unmarshaled)
{
IntPtr_t unmarshaled_m_Ptr_temp;
memset(&unmarshaled_m_Ptr_temp, 0, sizeof(unmarshaled_m_Ptr_temp));
IntPtr_t unmarshaled_m_Ptr_temp_temp;
unmarshaled_m_Ptr_temp_temp.set_m_value_0(reinterpret_cast<void*>((intptr_t)marshaled.f0));
unmarshaled_m_Ptr_temp = unmarshaled_m_Ptr_temp_temp;
unmarshaled.fs0(unmarshaled_m_Ptr_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.AssetBundleRequest
extern "C" void t920637194_marshal_com_cleanup(t920637194_marshaled_com& marshaled)
{
}
extern "C" void m162101250 (t3374395064 * __this, const MethodInfo* method)
{
{
m539393484(__this, NULL);
return;
}
}
extern "C" void m838183325 (t3374395064 * __this, const MethodInfo* method)
{
typedef void (*m838183325_ftn) (t3374395064 *);
static m838183325_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m838183325_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.AsyncOperation::InternalDestroy()");
_il2cpp_icall_func(__this);
}
extern "C" void m1717604640 (t3374395064 * __this, const MethodInfo* method)
{
t1967233988 * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
t1967233988 * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
IL_0000:
try
{ // begin try (depth: 1)
m838183325(__this, NULL);
IL2CPP_LEAVE(0x12, FINALLY_000b);
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t1967233988 *)e.ex;
goto FINALLY_000b;
}
FINALLY_000b:
{ // begin finally (depth: 1)
m3027285644(__this, NULL);
IL2CPP_END_FINALLY(11)
} // end finally (depth: 1)
IL2CPP_CLEANUP(11)
{
IL2CPP_JUMP_TBL(0x12, IL_0012)
IL2CPP_RETHROW_IF_UNHANDLED(t1967233988 *)
}
IL_0012:
{
return;
}
}
extern "C" bool m2747591837 (t3374395064 * __this, const MethodInfo* method)
{
typedef bool (*m2747591837_ftn) (t3374395064 *);
static m2747591837_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2747591837_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.AsyncOperation::get_isDone()");
return _il2cpp_icall_func(__this);
}
extern "C" float m2178550628 (t3374395064 * __this, const MethodInfo* method)
{
typedef float (*m2178550628_ftn) (t3374395064 *);
static m2178550628_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2178550628_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.AsyncOperation::get_progress()");
return _il2cpp_icall_func(__this);
}
extern "C" int32_t m1711502735 (t3374395064 * __this, const MethodInfo* method)
{
typedef int32_t (*m1711502735_ftn) (t3374395064 *);
static m1711502735_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1711502735_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.AsyncOperation::get_priority()");
return _il2cpp_icall_func(__this);
}
extern "C" void m4201963860 (t3374395064 * __this, int32_t p0, const MethodInfo* method)
{
typedef void (*m4201963860_ftn) (t3374395064 *, int32_t);
static m4201963860_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m4201963860_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.AsyncOperation::set_priority(System.Int32)");
_il2cpp_icall_func(__this, p0);
}
extern "C" bool m4131883466 (t3374395064 * __this, const MethodInfo* method)
{
typedef bool (*m4131883466_ftn) (t3374395064 *);
static m4131883466_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m4131883466_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.AsyncOperation::get_allowSceneActivation()");
return _il2cpp_icall_func(__this);
}
extern "C" void m2093104207 (t3374395064 * __this, bool p0, const MethodInfo* method)
{
typedef void (*m2093104207_ftn) (t3374395064 *, bool);
static m2093104207_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2093104207_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.AsyncOperation::set_allowSceneActivation(System.Boolean)");
_il2cpp_icall_func(__this, p0);
}
// Conversion methods for marshalling of: UnityEngine.AsyncOperation
extern "C" void t3374395064_marshal_pinvoke(const t3374395064& unmarshaled, t3374395064_marshaled_pinvoke& marshaled)
{
marshaled.f0 = reinterpret_cast<intptr_t>((unmarshaled.fg0()).fg0());
}
extern "C" void t3374395064_marshal_pinvoke_back(const t3374395064_marshaled_pinvoke& marshaled, t3374395064& unmarshaled)
{
IntPtr_t unmarshaled_m_Ptr_temp;
memset(&unmarshaled_m_Ptr_temp, 0, sizeof(unmarshaled_m_Ptr_temp));
IntPtr_t unmarshaled_m_Ptr_temp_temp;
unmarshaled_m_Ptr_temp_temp.set_m_value_0(reinterpret_cast<void*>((intptr_t)marshaled.f0));
unmarshaled_m_Ptr_temp = unmarshaled_m_Ptr_temp_temp;
unmarshaled.fs0(unmarshaled_m_Ptr_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.AsyncOperation
extern "C" void t3374395064_marshal_pinvoke_cleanup(t3374395064_marshaled_pinvoke& marshaled)
{
}
// Conversion methods for marshalling of: UnityEngine.AsyncOperation
extern "C" void t3374395064_marshal_com(const t3374395064& unmarshaled, t3374395064_marshaled_com& marshaled)
{
marshaled.f0 = reinterpret_cast<intptr_t>((unmarshaled.fg0()).fg0());
}
extern "C" void t3374395064_marshal_com_back(const t3374395064_marshaled_com& marshaled, t3374395064& unmarshaled)
{
IntPtr_t unmarshaled_m_Ptr_temp;
memset(&unmarshaled_m_Ptr_temp, 0, sizeof(unmarshaled_m_Ptr_temp));
IntPtr_t unmarshaled_m_Ptr_temp_temp;
unmarshaled_m_Ptr_temp_temp.set_m_value_0(reinterpret_cast<void*>((intptr_t)marshaled.f0));
unmarshaled_m_Ptr_temp = unmarshaled_m_Ptr_temp_temp;
unmarshaled.fs0(unmarshaled_m_Ptr_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.AsyncOperation
extern "C" void t3374395064_marshal_com_cleanup(t3374395064_marshaled_com& marshaled)
{
}
extern TypeInfo* t1523674982_TI_var;
extern TypeInfo* t193897593_TI_var;
extern TypeInfo* t3821800093_TI_var;
extern TypeInfo* t1641005768_TI_var;
extern const uint32_t m2686080064_MetadataUsageId;
extern "C" void m2686080064 (Il2CppObject * __this , const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2686080064_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
((t193897593_SFs*)t193897593_TI_var->static_fields)->fs0(((t1523674982*)SZArrayNew(t1523674982_TI_var, (uint32_t)1)));
((t193897593_SFs*)t193897593_TI_var->static_fields)->fs1(((t3821800093*)SZArrayNew(t3821800093_TI_var, (uint32_t)1)));
((t193897593_SFs*)t193897593_TI_var->static_fields)->fs2(((t1641005768*)SZArrayNew(t1641005768_TI_var, (uint32_t)1)));
return;
}
}
extern const Il2CppType* t3012272455_0_0_0_var;
extern const Il2CppType* t3647875775_0_0_0_var;
extern TypeInfo* t1054668674_TI_var;
extern TypeInfo* Type_t_TI_var;
extern const MethodInfo* m3371416491_MI_var;
extern const MethodInfo* m3613564932_MI_var;
extern const MethodInfo* m167231674_MI_var;
extern const uint32_t m799857845_MetadataUsageId;
extern "C" Type_t * m799857845 (Il2CppObject * __this , Type_t * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m799857845_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t1054668674 * V_0 = NULL;
Type_t * V_1 = NULL;
t11523773* V_2 = NULL;
int32_t V_3 = 0;
{
t1054668674 * L_0 = (t1054668674 *)il2cpp_codegen_object_new(t1054668674_TI_var);
m3371416491(L_0, m3371416491_MI_var);
V_0 = L_0;
goto IL_001a;
}
IL_000b:
{
t1054668674 * L_1 = V_0;
Type_t * L_2 = p0;
m3613564932(L_1, L_2, m3613564932_MI_var);
Type_t * L_3 = p0;
Type_t * L_4 = VirtFuncInvoker0< Type_t * >::Invoke(17 /* System.Type System.Type::get_BaseType() */, L_3);
p0 = L_4;
}
IL_001a:
{
Type_t * L_5 = p0;
if (!L_5)
{
goto IL_0030;
}
}
{
Type_t * L_6 = p0;
IL2CPP_RUNTIME_CLASS_INIT(Type_t_TI_var);
Type_t * L_7 = m3806905434(NULL, LoadTypeToken(t3012272455_0_0_0_var), NULL);
if ((!(((Il2CppObject*)(Type_t *)L_6) == ((Il2CppObject*)(Type_t *)L_7))))
{
goto IL_000b;
}
}
IL_0030:
{
V_1 = (Type_t *)NULL;
goto IL_005c;
}
IL_0037:
{
t1054668674 * L_8 = V_0;
Type_t * L_9 = m167231674(L_8, m167231674_MI_var);
V_1 = L_9;
Type_t * L_10 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(Type_t_TI_var);
Type_t * L_11 = m3806905434(NULL, LoadTypeToken(t3647875775_0_0_0_var), NULL);
t11523773* L_12 = VirtFuncInvoker2< t11523773*, Type_t *, bool >::Invoke(13 /* System.Object[] System.Reflection.MemberInfo::GetCustomAttributes(System.Type,System.Boolean) */, L_10, L_11, (bool)0);
V_2 = L_12;
t11523773* L_13 = V_2;
V_3 = (((int32_t)((int32_t)(((Il2CppArray *)L_13)->max_length))));
int32_t L_14 = V_3;
if (!L_14)
{
goto IL_005c;
}
}
{
Type_t * L_15 = V_1;
return L_15;
}
IL_005c:
{
t1054668674 * L_16 = V_0;
int32_t L_17 = VirtFuncInvoker0< int32_t >::Invoke(4 /* System.Int32 System.Collections.Generic.Stack`1<System.Type>::get_Count() */, L_16);
if ((((int32_t)L_17) > ((int32_t)0)))
{
goto IL_0037;
}
}
{
return (Type_t *)NULL;
}
}
extern const Il2CppType* t3196495237_0_0_0_var;
extern const Il2CppType* t3012272455_0_0_0_var;
extern TypeInfo* Type_t_TI_var;
extern TypeInfo* t1641005768_TI_var;
extern TypeInfo* t3431720054_TI_var;
extern TypeInfo* t3576188904_TI_var;
extern const MethodInfo* m3115358433_MI_var;
extern const MethodInfo* m1108445279_MI_var;
extern const uint32_t m2666115467_MetadataUsageId;
extern "C" t3431720054* m2666115467 (Il2CppObject * __this , Type_t * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2666115467_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t3576188904 * V_0 = NULL;
t1641005768* V_1 = NULL;
Type_t * V_2 = NULL;
t3196495237 * V_3 = NULL;
t1641005768* V_4 = NULL;
int32_t V_5 = 0;
t3431720054* V_6 = NULL;
{
V_0 = (t3576188904 *)NULL;
goto IL_00e0;
}
IL_0007:
{
Type_t * L_0 = p0;
IL2CPP_RUNTIME_CLASS_INIT(Type_t_TI_var);
Type_t * L_1 = m3806905434(NULL, LoadTypeToken(t3196495237_0_0_0_var), NULL);
t11523773* L_2 = VirtFuncInvoker2< t11523773*, Type_t *, bool >::Invoke(13 /* System.Object[] System.Reflection.MemberInfo::GetCustomAttributes(System.Type,System.Boolean) */, L_0, L_1, (bool)0);
V_1 = ((t1641005768*)Castclass(L_2, t1641005768_TI_var));
Type_t * L_3 = p0;
Type_t * L_4 = VirtFuncInvoker0< Type_t * >::Invoke(17 /* System.Type System.Type::get_BaseType() */, L_3);
V_2 = L_4;
t1641005768* L_5 = V_1;
V_4 = L_5;
V_5 = 0;
goto IL_00d2;
}
IL_0030:
{
t1641005768* L_6 = V_4;
int32_t L_7 = V_5;
int32_t L_8 = L_7;
V_3 = ((L_6)->GetAt(static_cast<il2cpp_array_size_t>(L_8)));
t3576188904 * L_9 = V_0;
if (L_9)
{
goto IL_007b;
}
}
{
t1641005768* L_10 = V_1;
if ((!(((uint32_t)(((int32_t)((int32_t)(((Il2CppArray *)L_10)->max_length))))) == ((uint32_t)1))))
{
goto IL_007b;
}
}
{
Type_t * L_11 = V_2;
IL2CPP_RUNTIME_CLASS_INIT(Type_t_TI_var);
Type_t * L_12 = m3806905434(NULL, LoadTypeToken(t3012272455_0_0_0_var), NULL);
if ((!(((Il2CppObject*)(Type_t *)L_11) == ((Il2CppObject*)(Type_t *)L_12))))
{
goto IL_007b;
}
}
{
t3431720054* L_13 = ((t3431720054*)SZArrayNew(t3431720054_TI_var, (uint32_t)3));
t3196495237 * L_14 = V_3;
Type_t * L_15 = L_14->fg0();
ArrayElementTypeCheck (L_13, L_15);
(L_13)->SetAt(static_cast<il2cpp_array_size_t>(0), (Type_t *)L_15);
t3431720054* L_16 = L_13;
t3196495237 * L_17 = V_3;
Type_t * L_18 = L_17->fg1();
ArrayElementTypeCheck (L_16, L_18);
(L_16)->SetAt(static_cast<il2cpp_array_size_t>(1), (Type_t *)L_18);
t3431720054* L_19 = L_16;
t3196495237 * L_20 = V_3;
Type_t * L_21 = L_20->fg2();
ArrayElementTypeCheck (L_19, L_21);
(L_19)->SetAt(static_cast<il2cpp_array_size_t>(2), (Type_t *)L_21);
V_6 = L_19;
t3431720054* L_22 = V_6;
return L_22;
}
IL_007b:
{
t3576188904 * L_23 = V_0;
if (L_23)
{
goto IL_0087;
}
}
{
t3576188904 * L_24 = (t3576188904 *)il2cpp_codegen_object_new(t3576188904_TI_var);
m3115358433(L_24, m3115358433_MI_var);
V_0 = L_24;
}
IL_0087:
{
t3196495237 * L_25 = V_3;
Type_t * L_26 = L_25->fg0();
if (!L_26)
{
goto IL_009e;
}
}
{
t3576188904 * L_27 = V_0;
t3196495237 * L_28 = V_3;
Type_t * L_29 = L_28->fg0();
VirtActionInvoker1< Type_t * >::Invoke(19 /* System.Void System.Collections.Generic.List`1<System.Type>::Add(!0) */, L_27, L_29);
}
IL_009e:
{
t3196495237 * L_30 = V_3;
Type_t * L_31 = L_30->fg1();
if (!L_31)
{
goto IL_00b5;
}
}
{
t3576188904 * L_32 = V_0;
t3196495237 * L_33 = V_3;
Type_t * L_34 = L_33->fg1();
VirtActionInvoker1< Type_t * >::Invoke(19 /* System.Void System.Collections.Generic.List`1<System.Type>::Add(!0) */, L_32, L_34);
}
IL_00b5:
{
t3196495237 * L_35 = V_3;
Type_t * L_36 = L_35->fg2();
if (!L_36)
{
goto IL_00cc;
}
}
{
t3576188904 * L_37 = V_0;
t3196495237 * L_38 = V_3;
Type_t * L_39 = L_38->fg2();
VirtActionInvoker1< Type_t * >::Invoke(19 /* System.Void System.Collections.Generic.List`1<System.Type>::Add(!0) */, L_37, L_39);
}
IL_00cc:
{
int32_t L_40 = V_5;
V_5 = ((int32_t)((int32_t)L_40+(int32_t)1));
}
IL_00d2:
{
int32_t L_41 = V_5;
t1641005768* L_42 = V_4;
if ((((int32_t)L_41) < ((int32_t)(((int32_t)((int32_t)(((Il2CppArray *)L_42)->max_length)))))))
{
goto IL_0030;
}
}
{
Type_t * L_43 = V_2;
p0 = L_43;
}
IL_00e0:
{
Type_t * L_44 = p0;
if (!L_44)
{
goto IL_00f6;
}
}
{
Type_t * L_45 = p0;
IL2CPP_RUNTIME_CLASS_INIT(Type_t_TI_var);
Type_t * L_46 = m3806905434(NULL, LoadTypeToken(t3012272455_0_0_0_var), NULL);
if ((!(((Il2CppObject*)(Type_t *)L_45) == ((Il2CppObject*)(Type_t *)L_46))))
{
goto IL_0007;
}
}
IL_00f6:
{
t3576188904 * L_47 = V_0;
if (L_47)
{
goto IL_00fe;
}
}
{
return (t3431720054*)NULL;
}
IL_00fe:
{
t3576188904 * L_48 = V_0;
t3431720054* L_49 = m1108445279(L_48, m1108445279_MI_var);
return L_49;
}
}
extern const Il2CppType* t2676812948_0_0_0_var;
extern const Il2CppType* t3012272455_0_0_0_var;
extern TypeInfo* Type_t_TI_var;
extern const uint32_t m2105533310_MetadataUsageId;
extern "C" bool m2105533310 (Il2CppObject * __this , Type_t * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2105533310_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t11523773* V_0 = NULL;
int32_t V_1 = 0;
{
goto IL_002b;
}
IL_0005:
{
Type_t * L_0 = p0;
IL2CPP_RUNTIME_CLASS_INIT(Type_t_TI_var);
Type_t * L_1 = m3806905434(NULL, LoadTypeToken(t2676812948_0_0_0_var), NULL);
t11523773* L_2 = VirtFuncInvoker2< t11523773*, Type_t *, bool >::Invoke(13 /* System.Object[] System.Reflection.MemberInfo::GetCustomAttributes(System.Type,System.Boolean) */, L_0, L_1, (bool)0);
V_0 = L_2;
t11523773* L_3 = V_0;
V_1 = (((int32_t)((int32_t)(((Il2CppArray *)L_3)->max_length))));
int32_t L_4 = V_1;
if (!L_4)
{
goto IL_0023;
}
}
{
return (bool)1;
}
IL_0023:
{
Type_t * L_5 = p0;
Type_t * L_6 = VirtFuncInvoker0< Type_t * >::Invoke(17 /* System.Type System.Type::get_BaseType() */, L_5);
p0 = L_6;
}
IL_002b:
{
Type_t * L_7 = p0;
if (!L_7)
{
goto IL_0041;
}
}
{
Type_t * L_8 = p0;
IL2CPP_RUNTIME_CLASS_INIT(Type_t_TI_var);
Type_t * L_9 = m3806905434(NULL, LoadTypeToken(t3012272455_0_0_0_var), NULL);
if ((!(((Il2CppObject*)(Type_t *)L_8) == ((Il2CppObject*)(Type_t *)L_9))))
{
goto IL_0005;
}
}
IL_0041:
{
return (bool)0;
}
}
extern "C" void m963695910 (t3714538611 * __this, t1219431280* p0, const MethodInfo* method)
{
{
t749510018 * L_0 = __this->fg2();
if (!L_0)
{
goto IL_0017;
}
}
{
t749510018 * L_1 = __this->fg2();
t1219431280* L_2 = p0;
m2982892301(L_1, L_2, NULL);
}
IL_0017:
{
return;
}
}
extern "C" void m194702160 (t3714538611 * __this, int32_t p0, const MethodInfo* method)
{
{
t2977871350 * L_0 = __this->fg3();
if (!L_0)
{
goto IL_0017;
}
}
{
t2977871350 * L_1 = __this->fg3();
int32_t L_2 = p0;
m1757186207(L_1, L_2, NULL);
}
IL_0017:
{
return;
}
}
extern "C" void m2350128290 (t749510018 * __this, Il2CppObject * p0, IntPtr_t p1, const MethodInfo* method)
{
__this->fs0((methodPointerType)((MethodInfo*)p1.fg0())->method);
__this->fs3(p1);
__this->fs2(p0);
}
extern "C" void m2982892301 (t749510018 * __this, t1219431280* p0, const MethodInfo* method)
{
if(__this->fg9() != NULL)
{
m2982892301((t749510018 *)__this->fg9(),p0, method);
}
il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found((MethodInfo*)(__this->fg3().fg0()));
bool ___methodIsStatic = MethodIsStatic((MethodInfo*)(__this->fg3().fg0()));
if (__this->fg2() != NULL && ___methodIsStatic)
{
typedef void (*FunctionPointerType) (Il2CppObject *, void* __this, t1219431280* p0, const MethodInfo* method);
((FunctionPointerType)__this->fg0())(NULL,il2cpp_codegen_get_delegate_this(__this),p0,(MethodInfo*)(__this->fg3().fg0()));
}
else if (__this->fg2() != NULL || ___methodIsStatic)
{
typedef void (*FunctionPointerType) (void* __this, t1219431280* p0, const MethodInfo* method);
((FunctionPointerType)__this->fg0())(il2cpp_codegen_get_delegate_this(__this),p0,(MethodInfo*)(__this->fg3().fg0()));
}
else
{
typedef void (*FunctionPointerType) (void* __this, const MethodInfo* method);
((FunctionPointerType)__this->fg0())(p0,(MethodInfo*)(__this->fg3().fg0()));
}
}
extern "C" void pinvoke_delegate_wrapper_t749510018(Il2CppObject* delegate, t1219431280* p0)
{
typedef void (STDCALL *native_function_ptr_type)(float*);
native_function_ptr_type _il2cpp_pinvoke_func = ((native_function_ptr_type)((Il2CppDelegate*)delegate)->method->method);
// Marshaling of parameter 'p0' to native representation
float* _p0_marshaled = NULL;
_p0_marshaled = il2cpp_codegen_marshal_array<float>((Il2CppCodeGenArray*)p0);
// Native function invocation
_il2cpp_pinvoke_func(_p0_marshaled);
// Marshaling cleanup of parameter 'p0' native representation
}
extern "C" Il2CppObject * m3711541228 (t749510018 * __this, t1219431280* p0, t1363551830 * p1, Il2CppObject * p2, const MethodInfo* method)
{
void *__d_args[2] = {0};
__d_args[0] = p0;
return (Il2CppObject *)il2cpp_delegate_begin_invoke((Il2CppDelegate*)__this, __d_args, (Il2CppDelegate*)p1, (Il2CppObject*)p2);
}
extern "C" void m1134768050 (t749510018 * __this, Il2CppObject * p0, const MethodInfo* method)
{
il2cpp_delegate_end_invoke((Il2CppAsyncResult*) p0, 0);
}
extern "C" void m2986500852 (t2977871350 * __this, Il2CppObject * p0, IntPtr_t p1, const MethodInfo* method)
{
__this->fs0((methodPointerType)((MethodInfo*)p1.fg0())->method);
__this->fs3(p1);
__this->fs2(p0);
}
extern "C" void m1757186207 (t2977871350 * __this, int32_t p0, const MethodInfo* method)
{
if(__this->fg9() != NULL)
{
m1757186207((t2977871350 *)__this->fg9(),p0, method);
}
il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found((MethodInfo*)(__this->fg3().fg0()));
bool ___methodIsStatic = MethodIsStatic((MethodInfo*)(__this->fg3().fg0()));
if (__this->fg2() != NULL && ___methodIsStatic)
{
typedef void (*FunctionPointerType) (Il2CppObject *, void* __this, int32_t p0, const MethodInfo* method);
((FunctionPointerType)__this->fg0())(NULL,il2cpp_codegen_get_delegate_this(__this),p0,(MethodInfo*)(__this->fg3().fg0()));
}
else
{
typedef void (*FunctionPointerType) (void* __this, int32_t p0, const MethodInfo* method);
((FunctionPointerType)__this->fg0())(il2cpp_codegen_get_delegate_this(__this),p0,(MethodInfo*)(__this->fg3().fg0()));
}
}
extern "C" void pinvoke_delegate_wrapper_t2977871350(Il2CppObject* delegate, int32_t p0)
{
typedef void (STDCALL *native_function_ptr_type)(int32_t);
native_function_ptr_type _il2cpp_pinvoke_func = ((native_function_ptr_type)((Il2CppDelegate*)delegate)->method->method);
// Marshaling of parameter 'p0' to native representation
// Native function invocation
_il2cpp_pinvoke_func(p0);
// Marshaling cleanup of parameter 'p0' native representation
}
extern TypeInfo* t2847414787_TI_var;
extern const uint32_t m3959339032_MetadataUsageId;
extern "C" Il2CppObject * m3959339032 (t2977871350 * __this, int32_t p0, t1363551830 * p1, Il2CppObject * p2, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3959339032_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
void *__d_args[2] = {0};
__d_args[0] = Box(t2847414787_TI_var, &p0);
return (Il2CppObject *)il2cpp_delegate_begin_invoke((Il2CppDelegate*)__this, __d_args, (Il2CppDelegate*)p1, (Il2CppObject*)p2);
}
extern "C" void m239431428 (t2977871350 * __this, Il2CppObject * p0, const MethodInfo* method)
{
il2cpp_delegate_end_invoke((Il2CppAsyncResult*) p0, 0);
}
extern TypeInfo* t1824070214_TI_var;
extern const uint32_t m1851666322_MetadataUsageId;
extern "C" void m1851666322 (Il2CppObject * __this , bool p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m1851666322_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t1722466426 * L_0 = ((t1824070214_SFs*)t1824070214_TI_var->static_fields)->fg0();
if (!L_0)
{
goto IL_0015;
}
}
{
t1722466426 * L_1 = ((t1824070214_SFs*)t1824070214_TI_var->static_fields)->fg0();
bool L_2 = p0;
m3047533822(L_1, L_2, NULL);
}
IL_0015:
{
return;
}
}
extern "C" void m2273531181 (t1722466426 * __this, Il2CppObject * p0, IntPtr_t p1, const MethodInfo* method)
{
__this->fs0((methodPointerType)((MethodInfo*)p1.fg0())->method);
__this->fs3(p1);
__this->fs2(p0);
}
extern "C" void m3047533822 (t1722466426 * __this, bool p0, const MethodInfo* method)
{
if(__this->fg9() != NULL)
{
m3047533822((t1722466426 *)__this->fg9(),p0, method);
}
il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found((MethodInfo*)(__this->fg3().fg0()));
bool ___methodIsStatic = MethodIsStatic((MethodInfo*)(__this->fg3().fg0()));
if (__this->fg2() != NULL && ___methodIsStatic)
{
typedef void (*FunctionPointerType) (Il2CppObject *, void* __this, bool p0, const MethodInfo* method);
((FunctionPointerType)__this->fg0())(NULL,il2cpp_codegen_get_delegate_this(__this),p0,(MethodInfo*)(__this->fg3().fg0()));
}
else
{
typedef void (*FunctionPointerType) (void* __this, bool p0, const MethodInfo* method);
((FunctionPointerType)__this->fg0())(il2cpp_codegen_get_delegate_this(__this),p0,(MethodInfo*)(__this->fg3().fg0()));
}
}
extern "C" void pinvoke_delegate_wrapper_t1722466426(Il2CppObject* delegate, bool p0)
{
typedef void (STDCALL *native_function_ptr_type)(int32_t);
native_function_ptr_type _il2cpp_pinvoke_func = ((native_function_ptr_type)((Il2CppDelegate*)delegate)->method->method);
// Marshaling of parameter 'p0' to native representation
// Native function invocation
_il2cpp_pinvoke_func(p0);
// Marshaling cleanup of parameter 'p0' native representation
}
extern TypeInfo* t211005341_TI_var;
extern const uint32_t m194625699_MetadataUsageId;
extern "C" Il2CppObject * m194625699 (t1722466426 * __this, bool p0, t1363551830 * p1, Il2CppObject * p2, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m194625699_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
void *__d_args[2] = {0};
__d_args[0] = Box(t211005341_TI_var, &p0);
return (Il2CppObject *)il2cpp_delegate_begin_invoke((Il2CppDelegate*)__this, __d_args, (Il2CppDelegate*)p1, (Il2CppObject*)p2);
}
extern "C" void m218260925 (t1722466426 * __this, Il2CppObject * p0, const MethodInfo* method)
{
il2cpp_delegate_end_invoke((Il2CppAsyncResult*) p0, 0);
}
extern "C" void m1624944828 (t3120504042 * __this, const MethodInfo* method)
{
{
m4238603388(__this, NULL);
return;
}
}
extern "C" float m4074655061 (t3533968274 * __this, const MethodInfo* method)
{
typedef float (*m4074655061_ftn) (t3533968274 *);
static m4074655061_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m4074655061_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Camera::get_nearClipPlane()");
return _il2cpp_icall_func(__this);
}
extern "C" float m388706726 (t3533968274 * __this, const MethodInfo* method)
{
typedef float (*m388706726_ftn) (t3533968274 *);
static m388706726_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m388706726_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Camera::get_farClipPlane()");
return _il2cpp_icall_func(__this);
}
extern "C" int32_t m1045975289 (t3533968274 * __this, const MethodInfo* method)
{
typedef int32_t (*m1045975289_ftn) (t3533968274 *);
static m1045975289_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1045975289_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Camera::get_cullingMask()");
return _il2cpp_icall_func(__this);
}
extern "C" int32_t m3669132771 (t3533968274 * __this, const MethodInfo* method)
{
typedef int32_t (*m3669132771_ftn) (t3533968274 *);
static m3669132771_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3669132771_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Camera::get_eventMask()");
return _il2cpp_icall_func(__this);
}
extern "C" t1525428817 m936851539 (t3533968274 * __this, const MethodInfo* method)
{
t1525428817 V_0;
memset(&V_0, 0, sizeof(V_0));
{
m1853722860(__this, (&V_0), NULL);
t1525428817 L_0 = V_0;
return L_0;
}
}
extern "C" void m1853722860 (t3533968274 * __this, t1525428817 * p0, const MethodInfo* method)
{
typedef void (*m1853722860_ftn) (t3533968274 *, t1525428817 *);
static m1853722860_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1853722860_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Camera::INTERNAL_get_pixelRect(UnityEngine.Rect&)");
_il2cpp_icall_func(__this, p0);
}
extern "C" t12905170 * m1468336738 (t3533968274 * __this, const MethodInfo* method)
{
typedef t12905170 * (*m1468336738_ftn) (t3533968274 *);
static m1468336738_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1468336738_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Camera::get_targetTexture()");
return _il2cpp_icall_func(__this);
}
extern "C" int32_t m192466552 (t3533968274 * __this, const MethodInfo* method)
{
typedef int32_t (*m192466552_ftn) (t3533968274 *);
static m192466552_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m192466552_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Camera::get_clearFlags()");
return _il2cpp_icall_func(__this);
}
extern "C" t1522967639 m1733083890 (t3533968274 * __this, t3525329789 p0, const MethodInfo* method)
{
t1522967639 V_0;
memset(&V_0, 0, sizeof(V_0));
{
m371614468(NULL, __this, (&p0), (&V_0), NULL);
t1522967639 L_0 = V_0;
return L_0;
}
}
extern "C" void m371614468 (Il2CppObject * __this , t3533968274 * p0, t3525329789 * p1, t1522967639 * p2, const MethodInfo* method)
{
typedef void (*m371614468_ftn) (t3533968274 *, t3525329789 *, t1522967639 *);
static m371614468_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m371614468_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Camera::INTERNAL_CALL_ScreenPointToRay(UnityEngine.Camera,UnityEngine.Vector3&,UnityEngine.Ray&)");
_il2cpp_icall_func(p0, p1, p2);
}
extern "C" int32_t m3993434431 (Il2CppObject * __this , const MethodInfo* method)
{
typedef int32_t (*m3993434431_ftn) ();
static m3993434431_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3993434431_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Camera::get_allCamerasCount()");
return _il2cpp_icall_func();
}
extern "C" int32_t m3771867787 (Il2CppObject * __this , t458432999* p0, const MethodInfo* method)
{
typedef int32_t (*m3771867787_ftn) (t458432999*);
static m3771867787_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3771867787_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Camera::GetAllCameras(UnityEngine.Camera[])");
return _il2cpp_icall_func(p0);
}
extern TypeInfo* t3533968274_TI_var;
extern const uint32_t m4184591338_MetadataUsageId;
extern "C" void m4184591338 (Il2CppObject * __this , t3533968274 * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m4184591338_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t1908940458 * L_0 = ((t3533968274_SFs*)t3533968274_TI_var->static_fields)->fg2();
if (!L_0)
{
goto IL_0015;
}
}
{
t1908940458 * L_1 = ((t3533968274_SFs*)t3533968274_TI_var->static_fields)->fg2();
t3533968274 * L_2 = p0;
m3757410555(L_1, L_2, NULL);
}
IL_0015:
{
return;
}
}
extern TypeInfo* t3533968274_TI_var;
extern const uint32_t m2754549070_MetadataUsageId;
extern "C" void m2754549070 (Il2CppObject * __this , t3533968274 * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2754549070_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t1908940458 * L_0 = ((t3533968274_SFs*)t3533968274_TI_var->static_fields)->fg3();
if (!L_0)
{
goto IL_0015;
}
}
{
t1908940458 * L_1 = ((t3533968274_SFs*)t3533968274_TI_var->static_fields)->fg3();
t3533968274 * L_2 = p0;
m3757410555(L_1, L_2, NULL);
}
IL_0015:
{
return;
}
}
extern TypeInfo* t3533968274_TI_var;
extern const uint32_t m865551979_MetadataUsageId;
extern "C" void m865551979 (Il2CppObject * __this , t3533968274 * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m865551979_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t1908940458 * L_0 = ((t3533968274_SFs*)t3533968274_TI_var->static_fields)->fg4();
if (!L_0)
{
goto IL_0015;
}
}
{
t1908940458 * L_1 = ((t3533968274_SFs*)t3533968274_TI_var->static_fields)->fg4();
t3533968274 * L_2 = p0;
m3757410555(L_1, L_2, NULL);
}
IL_0015:
{
return;
}
}
extern "C" t4012695102 * m569221064 (t3533968274 * __this, t1522967639 p0, float p1, int32_t p2, const MethodInfo* method)
{
int32_t V_0 = 0;
{
V_0 = 0;
float L_0 = p1;
int32_t L_1 = p2;
int32_t L_2 = V_0;
t4012695102 * L_3 = m2819346616(NULL, __this, (&p0), L_0, L_1, L_2, NULL);
return L_3;
}
}
extern "C" t4012695102 * m2819346616 (Il2CppObject * __this , t3533968274 * p0, t1522967639 * p1, float p2, int32_t p3, int32_t p4, const MethodInfo* method)
{
typedef t4012695102 * (*m2819346616_ftn) (t3533968274 *, t1522967639 *, float, int32_t, int32_t);
static m2819346616_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2819346616_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Camera::INTERNAL_CALL_RaycastTry(UnityEngine.Camera,UnityEngine.Ray&,System.Single,System.Int32,UnityEngine.QueryTriggerInteraction)");
return _il2cpp_icall_func(p0, p1, p2, p3, p4);
}
extern "C" t4012695102 * m3256311322 (t3533968274 * __this, t1522967639 p0, float p1, int32_t p2, const MethodInfo* method)
{
{
float L_0 = p1;
int32_t L_1 = p2;
t4012695102 * L_2 = m2796313289(NULL, __this, (&p0), L_0, L_1, NULL);
return L_2;
}
}
extern "C" t4012695102 * m2796313289 (Il2CppObject * __this , t3533968274 * p0, t1522967639 * p1, float p2, int32_t p3, const MethodInfo* method)
{
typedef t4012695102 * (*m2796313289_ftn) (t3533968274 *, t1522967639 *, float, int32_t);
static m2796313289_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2796313289_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Camera::INTERNAL_CALL_RaycastTry2D(UnityEngine.Camera,UnityEngine.Ray&,System.Single,System.Int32)");
return _il2cpp_icall_func(p0, p1, p2, p3);
}
extern "C" void m3976281469 (t1908940458 * __this, Il2CppObject * p0, IntPtr_t p1, const MethodInfo* method)
{
__this->fs0((methodPointerType)((MethodInfo*)p1.fg0())->method);
__this->fs3(p1);
__this->fs2(p0);
}
extern "C" void m3757410555 (t1908940458 * __this, t3533968274 * p0, const MethodInfo* method)
{
if(__this->fg9() != NULL)
{
m3757410555((t1908940458 *)__this->fg9(),p0, method);
}
il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found((MethodInfo*)(__this->fg3().fg0()));
bool ___methodIsStatic = MethodIsStatic((MethodInfo*)(__this->fg3().fg0()));
if (__this->fg2() != NULL && ___methodIsStatic)
{
typedef void (*FunctionPointerType) (Il2CppObject *, void* __this, t3533968274 * p0, const MethodInfo* method);
((FunctionPointerType)__this->fg0())(NULL,il2cpp_codegen_get_delegate_this(__this),p0,(MethodInfo*)(__this->fg3().fg0()));
}
else if (__this->fg2() != NULL || ___methodIsStatic)
{
typedef void (*FunctionPointerType) (void* __this, t3533968274 * p0, const MethodInfo* method);
((FunctionPointerType)__this->fg0())(il2cpp_codegen_get_delegate_this(__this),p0,(MethodInfo*)(__this->fg3().fg0()));
}
else
{
typedef void (*FunctionPointerType) (void* __this, const MethodInfo* method);
((FunctionPointerType)__this->fg0())(p0,(MethodInfo*)(__this->fg3().fg0()));
}
}
extern "C" void pinvoke_delegate_wrapper_t1908940458(Il2CppObject* delegate, t3533968274 * p0)
{
// Marshaling of parameter 'p0' to native representation
IL2CPP_RAISE_MANAGED_EXCEPTION(il2cpp_codegen_get_not_supported_exception("Cannot marshal type 'UnityEngine.Camera'."));
}
extern "C" Il2CppObject * m3719545510 (t1908940458 * __this, t3533968274 * p0, t1363551830 * p1, Il2CppObject * p2, const MethodInfo* method)
{
void *__d_args[2] = {0};
__d_args[0] = p0;
return (Il2CppObject *)il2cpp_delegate_begin_invoke((Il2CppDelegate*)__this, __d_args, (Il2CppDelegate*)p1, (Il2CppObject*)p2);
}
extern "C" void m534836749 (t1908940458 * __this, Il2CppObject * p0, const MethodInfo* method)
{
il2cpp_delegate_end_invoke((Il2CppAsyncResult*) p0, 0);
}
extern "C" t1972007546 * m2821754842 (t955670625 * __this, const MethodInfo* method)
{
typedef t1972007546 * (*m2821754842_ftn) (t955670625 *);
static m2821754842_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2821754842_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Collider::get_attachedRigidbody()");
return _il2cpp_icall_func(__this);
}
extern "C" void m183727591 (t1119538015 * __this, const MethodInfo* method)
{
{
m1772956182(__this, NULL);
return;
}
}
extern "C" t3525329789 m1067992885 (t1119538015 * __this, const MethodInfo* method)
{
{
t3525329789 L_0 = __this->fg1();
return L_0;
}
}
extern "C" t1972007546 * m1973745126 (t1119538015 * __this, const MethodInfo* method)
{
{
t1972007546 * L_0 = __this->fg2();
return L_0;
}
}
extern "C" t955670625 * m1325344374 (t1119538015 * __this, const MethodInfo* method)
{
{
t955670625 * L_0 = __this->fg3();
return L_0;
}
}
extern "C" t284553113 * m3247945030 (t1119538015 * __this, const MethodInfo* method)
{
t284553113 * G_B3_0 = NULL;
{
t1972007546 * L_0 = m1973745126(__this, NULL);
bool L_1 = m1296218211(NULL, L_0, (t3878351788 *)NULL, NULL);
if (!L_1)
{
goto IL_0021;
}
}
{
t1972007546 * L_2 = m1973745126(__this, NULL);
t284553113 * L_3 = m4257140443(L_2, NULL);
G_B3_0 = L_3;
goto IL_002c;
}
IL_0021:
{
t955670625 * L_4 = m1325344374(__this, NULL);
t284553113 * L_5 = m4257140443(L_4, NULL);
G_B3_0 = L_5;
}
IL_002c:
{
return G_B3_0;
}
}
extern "C" t4012695102 * m4245316464 (t1119538015 * __this, const MethodInfo* method)
{
t4012695102 * G_B3_0 = NULL;
{
t1972007546 * L_0 = __this->fg2();
bool L_1 = m1296218211(NULL, L_0, (t3878351788 *)NULL, NULL);
if (!L_1)
{
goto IL_0021;
}
}
{
t1972007546 * L_2 = __this->fg2();
t4012695102 * L_3 = m1170635899(L_2, NULL);
G_B3_0 = L_3;
goto IL_002c;
}
IL_0021:
{
t955670625 * L_4 = __this->fg3();
t4012695102 * L_5 = m1170635899(L_4, NULL);
G_B3_0 = L_5;
}
IL_002c:
{
return G_B3_0;
}
}
extern "C" t1988025008* m658316947 (t1119538015 * __this, const MethodInfo* method)
{
{
t1988025008* L_0 = __this->fg4();
return L_0;
}
}
extern "C" Il2CppObject * m218695993 (t1119538015 * __this, const MethodInfo* method)
{
{
t1988025008* L_0 = m658316947(__this, NULL);
Il2CppObject * L_1 = VirtFuncInvoker0< Il2CppObject * >::Invoke(4 /* System.Collections.IEnumerator System.Array::GetEnumerator() */, (Il2CppArray *)(Il2CppArray *)L_0);
return L_1;
}
}
extern "C" t3525329789 m2182857643 (t1119538015 * __this, const MethodInfo* method)
{
{
t3525329789 L_0 = __this->fg0();
return L_0;
}
}
extern "C" t3525329789 m3741050290 (t1119538015 * __this, const MethodInfo* method)
{
{
t3525329789 L_0 = m1067992885(__this, NULL);
return L_0;
}
}
extern "C" t3525329789 m3009900454 (t1119538015 * __this, const MethodInfo* method)
{
{
t3525329789 L_0 = m2017759730(NULL, NULL);
return L_0;
}
}
extern "C" t2126946602 * m541712697 (t1119538015 * __this, const MethodInfo* method)
{
t1972007546 * G_B3_0 = NULL;
{
t1972007546 * L_0 = __this->fg2();
bool L_1 = m1296218211(NULL, L_0, (t3878351788 *)NULL, NULL);
if (!L_1)
{
goto IL_001c;
}
}
{
t1972007546 * L_2 = __this->fg2();
G_B3_0 = L_2;
goto IL_0022;
}
IL_001c:
{
t955670625 * L_3 = __this->fg3();
G_B3_0 = ((t1972007546 *)(L_3));
}
IL_0022:
{
return G_B3_0;
}
}
extern "C" void m2252924356 (t1588175760 * __this, float p0, float p1, float p2, float p3, const MethodInfo* method)
{
{
float L_0 = p0;
__this->fs0(L_0);
float L_1 = p1;
__this->fs1(L_1);
float L_2 = p2;
__this->fs2(L_2);
float L_3 = p3;
__this->fs3(L_3);
return;
}
}
extern "C" void m103496991 (t1588175760 * __this, float p0, float p1, float p2, const MethodInfo* method)
{
{
float L_0 = p0;
__this->fs0(L_0);
float L_1 = p1;
__this->fs1(L_1);
float L_2 = p2;
__this->fs2(L_2);
__this->fs3((1.0f));
return;
}
}
extern TypeInfo* t11523773_TI_var;
extern TypeInfo* t958209021_TI_var;
extern Il2CppCodeGenString* _stringLiteral3797438823;
extern const uint32_t m2277845527_MetadataUsageId;
extern "C" String_t* m2277845527 (t1588175760 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2277845527_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t11523773* L_0 = ((t11523773*)SZArrayNew(t11523773_TI_var, (uint32_t)4));
float L_1 = __this->fg0();
float L_2 = L_1;
Il2CppObject * L_3 = Box(t958209021_TI_var, &L_2);
ArrayElementTypeCheck (L_0, L_3);
(L_0)->SetAt(static_cast<il2cpp_array_size_t>(0), (Il2CppObject *)L_3);
t11523773* L_4 = L_0;
float L_5 = __this->fg1();
float L_6 = L_5;
Il2CppObject * L_7 = Box(t958209021_TI_var, &L_6);
ArrayElementTypeCheck (L_4, L_7);
(L_4)->SetAt(static_cast<il2cpp_array_size_t>(1), (Il2CppObject *)L_7);
t11523773* L_8 = L_4;
float L_9 = __this->fg2();
float L_10 = L_9;
Il2CppObject * L_11 = Box(t958209021_TI_var, &L_10);
ArrayElementTypeCheck (L_8, L_11);
(L_8)->SetAt(static_cast<il2cpp_array_size_t>(2), (Il2CppObject *)L_11);
t11523773* L_12 = L_8;
float L_13 = __this->fg3();
float L_14 = L_13;
Il2CppObject * L_15 = Box(t958209021_TI_var, &L_14);
ArrayElementTypeCheck (L_12, L_15);
(L_12)->SetAt(static_cast<il2cpp_array_size_t>(3), (Il2CppObject *)L_15);
String_t* L_16 = m427603113(NULL, _stringLiteral3797438823, L_12, NULL);
return L_16;
}
}
extern "C" int32_t m170503301 (t1588175760 * __this, const MethodInfo* method)
{
t3525329790 V_0;
memset(&V_0, 0, sizeof(V_0));
{
t3525329790 L_0 = m2638307542(NULL, (*(t1588175760 *)__this), NULL);
V_0 = L_0;
int32_t L_1 = m3402333527((&V_0), NULL);
return L_1;
}
}
extern TypeInfo* t1588175760_TI_var;
extern const uint32_t m3016668205_MetadataUsageId;
extern "C" bool m3016668205 (t1588175760 * __this, Il2CppObject * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3016668205_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t1588175760 V_0;
memset(&V_0, 0, sizeof(V_0));
int32_t G_B7_0 = 0;
{
Il2CppObject * L_0 = p0;
if (((Il2CppObject *)IsInstSealed(L_0, t1588175760_TI_var)))
{
goto IL_000d;
}
}
{
return (bool)0;
}
IL_000d:
{
Il2CppObject * L_1 = p0;
V_0 = ((*(t1588175760 *)((t1588175760 *)UnBox (L_1, t1588175760_TI_var))));
float* L_2 = __this->fag0();
float L_3 = (&V_0)->fg0();
bool L_4 = m2110115959(L_2, L_3, NULL);
if (!L_4)
{
goto IL_006d;
}
}
{
float* L_5 = __this->fag1();
float L_6 = (&V_0)->fg1();
bool L_7 = m2110115959(L_5, L_6, NULL);
if (!L_7)
{
goto IL_006d;
}
}
{
float* L_8 = __this->fag2();
float L_9 = (&V_0)->fg2();
bool L_10 = m2110115959(L_8, L_9, NULL);
if (!L_10)
{
goto IL_006d;
}
}
{
float* L_11 = __this->fag3();
float L_12 = (&V_0)->fg3();
bool L_13 = m2110115959(L_11, L_12, NULL);
G_B7_0 = ((int32_t)(L_13));
goto IL_006e;
}
IL_006d:
{
G_B7_0 = 0;
}
IL_006e:
{
return (bool)G_B7_0;
}
}
extern "C" t1588175760 m4288945411 (Il2CppObject * __this , const MethodInfo* method)
{
{
t1588175760 L_0;
memset(&L_0, 0, sizeof(L_0));
m2252924356(&L_0, (1.0f), (0.0f), (0.0f), (1.0f), NULL);
return L_0;
}
}
extern "C" t1588175760 m3038282331 (Il2CppObject * __this , const MethodInfo* method)
{
{
t1588175760 L_0;
memset(&L_0, 0, sizeof(L_0));
m2252924356(&L_0, (1.0f), (1.0f), (1.0f), (1.0f), NULL);
return L_0;
}
}
extern "C" t3525329790 m2638307542 (Il2CppObject * __this , t1588175760 p0, const MethodInfo* method)
{
{
float L_0 = (&p0)->fg0();
float L_1 = (&p0)->fg1();
float L_2 = (&p0)->fg2();
float L_3 = (&p0)->fg3();
t3525329790 L_4;
memset(&L_4, 0, sizeof(L_4));
m2441427762(&L_4, L_0, L_1, L_2, L_3, NULL);
return L_4;
}
}
// Conversion methods for marshalling of: UnityEngine.Color
extern "C" void t1588175760_marshal_pinvoke(const t1588175760& unmarshaled, t1588175760_marshaled_pinvoke& marshaled)
{
marshaled.f0 = unmarshaled.fg0();
marshaled.f1 = unmarshaled.fg1();
marshaled.f2 = unmarshaled.fg2();
marshaled.f3 = unmarshaled.fg3();
}
extern "C" void t1588175760_marshal_pinvoke_back(const t1588175760_marshaled_pinvoke& marshaled, t1588175760& unmarshaled)
{
float unmarshaled_r_temp = 0.0f;
unmarshaled_r_temp = marshaled.f0;
unmarshaled.fs0(unmarshaled_r_temp);
float unmarshaled_g_temp = 0.0f;
unmarshaled_g_temp = marshaled.f1;
unmarshaled.fs1(unmarshaled_g_temp);
float unmarshaled_b_temp = 0.0f;
unmarshaled_b_temp = marshaled.f2;
unmarshaled.fs2(unmarshaled_b_temp);
float unmarshaled_a_temp = 0.0f;
unmarshaled_a_temp = marshaled.f3;
unmarshaled.fs3(unmarshaled_a_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.Color
extern "C" void t1588175760_marshal_pinvoke_cleanup(t1588175760_marshaled_pinvoke& marshaled)
{
}
// Conversion methods for marshalling of: UnityEngine.Color
extern "C" void t1588175760_marshal_com(const t1588175760& unmarshaled, t1588175760_marshaled_com& marshaled)
{
marshaled.f0 = unmarshaled.fg0();
marshaled.f1 = unmarshaled.fg1();
marshaled.f2 = unmarshaled.fg2();
marshaled.f3 = unmarshaled.fg3();
}
extern "C" void t1588175760_marshal_com_back(const t1588175760_marshaled_com& marshaled, t1588175760& unmarshaled)
{
float unmarshaled_r_temp = 0.0f;
unmarshaled_r_temp = marshaled.f0;
unmarshaled.fs0(unmarshaled_r_temp);
float unmarshaled_g_temp = 0.0f;
unmarshaled_g_temp = marshaled.f1;
unmarshaled.fs1(unmarshaled_g_temp);
float unmarshaled_b_temp = 0.0f;
unmarshaled_b_temp = marshaled.f2;
unmarshaled.fs2(unmarshaled_b_temp);
float unmarshaled_a_temp = 0.0f;
unmarshaled_a_temp = marshaled.f3;
unmarshaled.fs3(unmarshaled_a_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.Color
extern "C" void t1588175760_marshal_com_cleanup(t1588175760_marshaled_com& marshaled)
{
}
extern "C" void m4238603388 (t2126946602 * __this, const MethodInfo* method)
{
{
m570634126(__this, NULL);
return;
}
}
extern "C" t284553113 * m4257140443 (t2126946602 * __this, const MethodInfo* method)
{
typedef t284553113 * (*m4257140443_ftn) (t2126946602 *);
static m4257140443_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m4257140443_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Component::get_transform()");
return _il2cpp_icall_func(__this);
}
extern "C" t4012695102 * m1170635899 (t2126946602 * __this, const MethodInfo* method)
{
typedef t4012695102 * (*m1170635899_ftn) (t2126946602 *);
static m1170635899_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1170635899_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Component::get_gameObject()");
return _il2cpp_icall_func(__this);
}
extern "C" t2126946602 * m936021879 (t2126946602 * __this, Type_t * p0, const MethodInfo* method)
{
{
t4012695102 * L_0 = m1170635899(__this, NULL);
Type_t * L_1 = p0;
t2126946602 * L_2 = m1004814461(L_0, L_1, NULL);
return L_2;
}
}
extern "C" void m1455568887 (t2126946602 * __this, Type_t * p0, IntPtr_t p1, const MethodInfo* method)
{
typedef void (*m1455568887_ftn) (t2126946602 *, Type_t *, IntPtr_t);
static m1455568887_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1455568887_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Component::GetComponentFastPath(System.Type,System.IntPtr)");
_il2cpp_icall_func(__this, p0, p1);
}
extern "C" t2126946602 * m840247168 (t2126946602 * __this, String_t* p0, const MethodInfo* method)
{
typedef t2126946602 * (*m840247168_ftn) (t2126946602 *, String_t*);
static m840247168_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m840247168_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Component::GetComponent(System.String)");
return _il2cpp_icall_func(__this, p0);
}
extern "C" t2126946602 * m1899663946 (t2126946602 * __this, Type_t * p0, bool p1, const MethodInfo* method)
{
{
t4012695102 * L_0 = m1170635899(__this, NULL);
Type_t * L_1 = p0;
bool L_2 = p1;
t2126946602 * L_3 = m1490154500(L_0, L_1, L_2, NULL);
return L_3;
}
}
extern "C" t2126946602 * m680239315 (t2126946602 * __this, Type_t * p0, const MethodInfo* method)
{
{
Type_t * L_0 = p0;
t2126946602 * L_1 = m1899663946(__this, L_0, (bool)0, NULL);
return L_1;
}
}
extern "C" t552366831* m1419556996 (t2126946602 * __this, Type_t * p0, const MethodInfo* method)
{
bool V_0 = false;
{
V_0 = (bool)0;
Type_t * L_0 = p0;
bool L_1 = V_0;
t552366831* L_2 = m2446525049(__this, L_0, L_1, NULL);
return L_2;
}
}
extern "C" t552366831* m2446525049 (t2126946602 * __this, Type_t * p0, bool p1, const MethodInfo* method)
{
{
t4012695102 * L_0 = m1170635899(__this, NULL);
Type_t * L_1 = p0;
bool L_2 = p1;
t552366831* L_3 = m305836803(L_0, L_1, L_2, NULL);
return L_3;
}
}
extern "C" t2126946602 * m1953645192 (t2126946602 * __this, Type_t * p0, const MethodInfo* method)
{
{
t4012695102 * L_0 = m1170635899(__this, NULL);
Type_t * L_1 = p0;
t2126946602 * L_2 = m434474382(L_0, L_1, NULL);
return L_2;
}
}
extern "C" t552366831* m345477753 (t2126946602 * __this, Type_t * p0, const MethodInfo* method)
{
bool V_0 = false;
{
V_0 = (bool)0;
Type_t * L_0 = p0;
bool L_1 = V_0;
t552366831* L_2 = m608460772(__this, L_0, L_1, NULL);
return L_2;
}
}
extern "C" t552366831* m608460772 (t2126946602 * __this, Type_t * p0, bool p1, const MethodInfo* method)
{
{
t4012695102 * L_0 = m1170635899(__this, NULL);
Type_t * L_1 = p0;
bool L_2 = p1;
t552366831* L_3 = m521317102(L_0, L_1, L_2, NULL);
return L_3;
}
}
extern "C" t552366831* m2975031400 (t2126946602 * __this, Type_t * p0, const MethodInfo* method)
{
{
t4012695102 * L_0 = m1170635899(__this, NULL);
Type_t * L_1 = p0;
t552366831* L_2 = m1126578334(L_0, L_1, NULL);
return L_2;
}
}
extern "C" void m814665735 (t2126946602 * __this, Type_t * p0, Il2CppObject * p1, const MethodInfo* method)
{
typedef void (*m814665735_ftn) (t2126946602 *, Type_t *, Il2CppObject *);
static m814665735_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m814665735_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Component::GetComponentsForListInternal(System.Type,System.Object)");
_il2cpp_icall_func(__this, p0, p1);
}
extern "C" void m3426812285 (t2126946602 * __this, Type_t * p0, t2923905571 * p1, const MethodInfo* method)
{
{
Type_t * L_0 = p0;
t2923905571 * L_1 = p1;
m814665735(__this, L_0, L_1, NULL);
return;
}
}
extern "C" String_t* m217485006 (t2126946602 * __this, const MethodInfo* method)
{
{
t4012695102 * L_0 = m1170635899(__this, NULL);
String_t* L_1 = m211612200(L_0, NULL);
return L_1;
}
}
extern "C" void m3240989163 (t2126946602 * __this, String_t* p0, const MethodInfo* method)
{
{
t4012695102 * L_0 = m1170635899(__this, NULL);
String_t* L_1 = p0;
m859036203(L_0, L_1, NULL);
return;
}
}
extern "C" bool m305486283 (t2126946602 * __this, String_t* p0, const MethodInfo* method)
{
typedef bool (*m305486283_ftn) (t2126946602 *, String_t*);
static m305486283_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m305486283_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Component::CompareTag(System.String)");
return _il2cpp_icall_func(__this, p0);
}
extern "C" void m2772130661 (t2126946602 * __this, String_t* p0, Il2CppObject * p1, int32_t p2, const MethodInfo* method)
{
typedef void (*m2772130661_ftn) (t2126946602 *, String_t*, Il2CppObject *, int32_t);
static m2772130661_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2772130661_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Component::SendMessageUpwards(System.String,System.Object,UnityEngine.SendMessageOptions)");
_il2cpp_icall_func(__this, p0, p1, p2);
}
extern "C" void m2473191947 (t2126946602 * __this, String_t* p0, Il2CppObject * p1, const MethodInfo* method)
{
int32_t V_0 = 0;
{
V_0 = 0;
String_t* L_0 = p0;
Il2CppObject * L_1 = p1;
int32_t L_2 = V_0;
m2772130661(__this, L_0, L_1, L_2, NULL);
return;
}
}
extern "C" void m767712765 (t2126946602 * __this, String_t* p0, const MethodInfo* method)
{
int32_t V_0 = 0;
Il2CppObject * V_1 = NULL;
{
V_0 = 0;
V_1 = NULL;
String_t* L_0 = p0;
Il2CppObject * L_1 = V_1;
int32_t L_2 = V_0;
m2772130661(__this, L_0, L_1, L_2, NULL);
return;
}
}
extern "C" void m707848499 (t2126946602 * __this, String_t* p0, int32_t p1, const MethodInfo* method)
{
{
String_t* L_0 = p0;
int32_t L_1 = p1;
m2772130661(__this, L_0, NULL, L_1, NULL);
return;
}
}
extern "C" void m1163914169 (t2126946602 * __this, String_t* p0, Il2CppObject * p1, int32_t p2, const MethodInfo* method)
{
typedef void (*m1163914169_ftn) (t2126946602 *, String_t*, Il2CppObject *, int32_t);
static m1163914169_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1163914169_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Component::SendMessage(System.String,System.Object,UnityEngine.SendMessageOptions)");
_il2cpp_icall_func(__this, p0, p1, p2);
}
extern "C" void m904598583 (t2126946602 * __this, String_t* p0, Il2CppObject * p1, const MethodInfo* method)
{
int32_t V_0 = 0;
{
V_0 = 0;
String_t* L_0 = p0;
Il2CppObject * L_1 = p1;
int32_t L_2 = V_0;
m1163914169(__this, L_0, L_1, L_2, NULL);
return;
}
}
extern "C" void m2359133481 (t2126946602 * __this, String_t* p0, const MethodInfo* method)
{
int32_t V_0 = 0;
Il2CppObject * V_1 = NULL;
{
V_0 = 0;
V_1 = NULL;
String_t* L_0 = p0;
Il2CppObject * L_1 = V_1;
int32_t L_2 = V_0;
m1163914169(__this, L_0, L_1, L_2, NULL);
return;
}
}
extern "C" void m1912331399 (t2126946602 * __this, String_t* p0, int32_t p1, const MethodInfo* method)
{
{
String_t* L_0 = p0;
int32_t L_1 = p1;
m1163914169(__this, L_0, NULL, L_1, NULL);
return;
}
}
extern "C" void m3961995854 (t2126946602 * __this, String_t* p0, Il2CppObject * p1, int32_t p2, const MethodInfo* method)
{
typedef void (*m3961995854_ftn) (t2126946602 *, String_t*, Il2CppObject *, int32_t);
static m3961995854_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3961995854_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Component::BroadcastMessage(System.String,System.Object,UnityEngine.SendMessageOptions)");
_il2cpp_icall_func(__this, p0, p1, p2);
}
extern "C" void m3546905666 (t2126946602 * __this, String_t* p0, Il2CppObject * p1, const MethodInfo* method)
{
int32_t V_0 = 0;
{
V_0 = 0;
String_t* L_0 = p0;
Il2CppObject * L_1 = p1;
int32_t L_2 = V_0;
m3961995854(__this, L_0, L_1, L_2, NULL);
return;
}
}
extern "C" void m2857110644 (t2126946602 * __this, String_t* p0, const MethodInfo* method)
{
int32_t V_0 = 0;
Il2CppObject * V_1 = NULL;
{
V_0 = 0;
V_1 = NULL;
String_t* L_0 = p0;
Il2CppObject * L_1 = V_1;
int32_t L_2 = V_0;
m3961995854(__this, L_0, L_1, L_2, NULL);
return;
}
}
extern "C" void m1985948636 (t2126946602 * __this, String_t* p0, int32_t p1, const MethodInfo* method)
{
{
String_t* L_0 = p0;
int32_t L_1 = p1;
m3961995854(__this, L_0, NULL, L_1, NULL);
return;
}
}
// Conversion methods for marshalling of: UnityEngine.ContactPoint
extern "C" void t2951122365_marshal_pinvoke(const t2951122365& unmarshaled, t2951122365_marshaled_pinvoke& marshaled)
{
t3525329789_marshal_pinvoke(unmarshaled.fg0(), marshaled.f0);
t3525329789_marshal_pinvoke(unmarshaled.fg1(), marshaled.f1);
marshaled.f2 = unmarshaled.fg2();
marshaled.f3 = unmarshaled.fg3();
}
extern "C" void t2951122365_marshal_pinvoke_back(const t2951122365_marshaled_pinvoke& marshaled, t2951122365& unmarshaled)
{
t3525329789 unmarshaled_m_Point_temp;
memset(&unmarshaled_m_Point_temp, 0, sizeof(unmarshaled_m_Point_temp));
t3525329789_marshal_pinvoke_back(marshaled.f0, unmarshaled_m_Point_temp);
unmarshaled.fs0(unmarshaled_m_Point_temp);
t3525329789 unmarshaled_m_Normal_temp;
memset(&unmarshaled_m_Normal_temp, 0, sizeof(unmarshaled_m_Normal_temp));
t3525329789_marshal_pinvoke_back(marshaled.f1, unmarshaled_m_Normal_temp);
unmarshaled.fs1(unmarshaled_m_Normal_temp);
int32_t unmarshaled_m_ThisColliderInstanceID_temp = 0;
unmarshaled_m_ThisColliderInstanceID_temp = marshaled.f2;
unmarshaled.fs2(unmarshaled_m_ThisColliderInstanceID_temp);
int32_t unmarshaled_m_OtherColliderInstanceID_temp = 0;
unmarshaled_m_OtherColliderInstanceID_temp = marshaled.f3;
unmarshaled.fs3(unmarshaled_m_OtherColliderInstanceID_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.ContactPoint
extern "C" void t2951122365_marshal_pinvoke_cleanup(t2951122365_marshaled_pinvoke& marshaled)
{
t3525329789_marshal_pinvoke_cleanup(marshaled.f0);
t3525329789_marshal_pinvoke_cleanup(marshaled.f1);
}
// Conversion methods for marshalling of: UnityEngine.ContactPoint
extern "C" void t2951122365_marshal_com(const t2951122365& unmarshaled, t2951122365_marshaled_com& marshaled)
{
t3525329789_marshal_com(unmarshaled.fg0(), marshaled.f0);
t3525329789_marshal_com(unmarshaled.fg1(), marshaled.f1);
marshaled.f2 = unmarshaled.fg2();
marshaled.f3 = unmarshaled.fg3();
}
extern "C" void t2951122365_marshal_com_back(const t2951122365_marshaled_com& marshaled, t2951122365& unmarshaled)
{
t3525329789 unmarshaled_m_Point_temp;
memset(&unmarshaled_m_Point_temp, 0, sizeof(unmarshaled_m_Point_temp));
t3525329789_marshal_com_back(marshaled.f0, unmarshaled_m_Point_temp);
unmarshaled.fs0(unmarshaled_m_Point_temp);
t3525329789 unmarshaled_m_Normal_temp;
memset(&unmarshaled_m_Normal_temp, 0, sizeof(unmarshaled_m_Normal_temp));
t3525329789_marshal_com_back(marshaled.f1, unmarshaled_m_Normal_temp);
unmarshaled.fs1(unmarshaled_m_Normal_temp);
int32_t unmarshaled_m_ThisColliderInstanceID_temp = 0;
unmarshaled_m_ThisColliderInstanceID_temp = marshaled.f2;
unmarshaled.fs2(unmarshaled_m_ThisColliderInstanceID_temp);
int32_t unmarshaled_m_OtherColliderInstanceID_temp = 0;
unmarshaled_m_OtherColliderInstanceID_temp = marshaled.f3;
unmarshaled.fs3(unmarshaled_m_OtherColliderInstanceID_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.ContactPoint
extern "C" void t2951122365_marshal_com_cleanup(t2951122365_marshaled_com& marshaled)
{
t3525329789_marshal_com_cleanup(marshaled.f0);
t3525329789_marshal_com_cleanup(marshaled.f1);
}
extern "C" void m3119252854 (t2693066224 * __this, const MethodInfo* method)
{
{
m1772956182(__this, NULL);
return;
}
}
extern "C" t2029520850 * m4144115758 (t2693066224 * __this, const MethodInfo* method)
{
{
t2029520850 * L_0 = __this->fg0();
return L_0;
}
}
extern "C" t955670625 * m1024441863 (t2693066224 * __this, const MethodInfo* method)
{
{
t955670625 * L_0 = __this->fg1();
return L_0;
}
}
extern "C" t1972007546 * m2091369205 (t2693066224 * __this, const MethodInfo* method)
{
{
t955670625 * L_0 = __this->fg1();
t1972007546 * L_1 = m2821754842(L_0, NULL);
return L_1;
}
}
extern "C" t4012695102 * m3516749633 (t2693066224 * __this, const MethodInfo* method)
{
{
t955670625 * L_0 = __this->fg1();
t4012695102 * L_1 = m1170635899(L_0, NULL);
return L_1;
}
}
extern "C" t284553113 * m1182304469 (t2693066224 * __this, const MethodInfo* method)
{
{
t955670625 * L_0 = __this->fg1();
t284553113 * L_1 = m4257140443(L_0, NULL);
return L_1;
}
}
extern "C" t3525329789 m1436351445 (t2693066224 * __this, const MethodInfo* method)
{
{
t3525329789 L_0 = __this->fg2();
return L_0;
}
}
extern "C" t3525329789 m2642806628 (t2693066224 * __this, const MethodInfo* method)
{
{
t3525329789 L_0 = __this->fg3();
return L_0;
}
}
extern "C" t3525329789 m3645766003 (t2693066224 * __this, const MethodInfo* method)
{
{
t3525329789 L_0 = __this->fg4();
return L_0;
}
}
extern "C" float m3314200770 (t2693066224 * __this, const MethodInfo* method)
{
{
float L_0 = __this->fg5();
return L_0;
}
}
extern "C" bool m2385571563 (t2693066224 * __this, const MethodInfo* method)
{
{
int32_t L_0 = __this->fg6();
return (bool)((((int32_t)((((int32_t)L_0) == ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
}
}
extern "C" void m1358618172 (t2693066224 * __this, bool p0, const MethodInfo* method)
{
t2693066224 * G_B2_0 = NULL;
t2693066224 * G_B1_0 = NULL;
int32_t G_B3_0 = 0;
t2693066224 * G_B3_1 = NULL;
{
bool L_0 = p0;
G_B1_0 = __this;
if (!L_0)
{
G_B2_0 = __this;
goto IL_000d;
}
}
{
G_B3_0 = 1;
G_B3_1 = G_B1_0;
goto IL_000e;
}
IL_000d:
{
G_B3_0 = 0;
G_B3_1 = G_B2_0;
}
IL_000e:
{
G_B3_1->fs6(G_B3_0);
return;
}
}
extern "C" void m3143611649 (t2246592261 * __this, const MethodInfo* method)
{
{
m539393484(__this, NULL);
return;
}
}
extern "C" void m3084231540 (t2246592261 * __this, const MethodInfo* method)
{
typedef void (*m3084231540_ftn) (t2246592261 *);
static m3084231540_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3084231540_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Coroutine::ReleaseCoroutine()");
_il2cpp_icall_func(__this);
}
extern "C" void m3970219969 (t2246592261 * __this, const MethodInfo* method)
{
t1967233988 * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
t1967233988 * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
IL_0000:
try
{ // begin try (depth: 1)
m3084231540(__this, NULL);
IL2CPP_LEAVE(0x12, FINALLY_000b);
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t1967233988 *)e.ex;
goto FINALLY_000b;
}
FINALLY_000b:
{ // begin finally (depth: 1)
m3027285644(__this, NULL);
IL2CPP_END_FINALLY(11)
} // end finally (depth: 1)
IL2CPP_CLEANUP(11)
{
IL2CPP_JUMP_TBL(0x12, IL_0012)
IL2CPP_RETHROW_IF_UNHANDLED(t1967233988 *)
}
IL_0012:
{
return;
}
}
// Conversion methods for marshalling of: UnityEngine.Coroutine
extern "C" void t2246592261_marshal_pinvoke(const t2246592261& unmarshaled, t2246592261_marshaled_pinvoke& marshaled)
{
marshaled.f0 = reinterpret_cast<intptr_t>((unmarshaled.fg0()).fg0());
}
extern "C" void t2246592261_marshal_pinvoke_back(const t2246592261_marshaled_pinvoke& marshaled, t2246592261& unmarshaled)
{
IntPtr_t unmarshaled_m_Ptr_temp;
memset(&unmarshaled_m_Ptr_temp, 0, sizeof(unmarshaled_m_Ptr_temp));
IntPtr_t unmarshaled_m_Ptr_temp_temp;
unmarshaled_m_Ptr_temp_temp.set_m_value_0(reinterpret_cast<void*>((intptr_t)marshaled.f0));
unmarshaled_m_Ptr_temp = unmarshaled_m_Ptr_temp_temp;
unmarshaled.fs0(unmarshaled_m_Ptr_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.Coroutine
extern "C" void t2246592261_marshal_pinvoke_cleanup(t2246592261_marshaled_pinvoke& marshaled)
{
}
// Conversion methods for marshalling of: UnityEngine.Coroutine
extern "C" void t2246592261_marshal_com(const t2246592261& unmarshaled, t2246592261_marshaled_com& marshaled)
{
marshaled.f0 = reinterpret_cast<intptr_t>((unmarshaled.fg0()).fg0());
}
extern "C" void t2246592261_marshal_com_back(const t2246592261_marshaled_com& marshaled, t2246592261& unmarshaled)
{
IntPtr_t unmarshaled_m_Ptr_temp;
memset(&unmarshaled_m_Ptr_temp, 0, sizeof(unmarshaled_m_Ptr_temp));
IntPtr_t unmarshaled_m_Ptr_temp_temp;
unmarshaled_m_Ptr_temp_temp.set_m_value_0(reinterpret_cast<void*>((intptr_t)marshaled.f0));
unmarshaled_m_Ptr_temp = unmarshaled_m_Ptr_temp_temp;
unmarshaled.fs0(unmarshaled_m_Ptr_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.Coroutine
extern "C" void t2246592261_marshal_com_cleanup(t2246592261_marshaled_com& marshaled)
{
}
extern TypeInfo* IntPtr_t_TI_var;
extern const uint32_t m1779710340_MetadataUsageId;
extern "C" void m1779710340 (t281933724 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m1779710340_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t1967233988 * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
t1967233988 * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
IL_0000:
try
{ // begin try (depth: 1)
{
IntPtr_t L_0 = __this->fg0();
IntPtr_t L_1 = ((IntPtr_t_SFs*)IntPtr_t_TI_var->static_fields)->fg1();
bool L_2 = m10053967(NULL, L_0, L_1, NULL);
if (!L_2)
{
goto IL_001b;
}
}
IL_0015:
{
m4240538940(__this, NULL);
}
IL_001b:
{
IL2CPP_LEAVE(0x27, FINALLY_0020);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t1967233988 *)e.ex;
goto FINALLY_0020;
}
FINALLY_0020:
{ // begin finally (depth: 1)
m3027285644(__this, NULL);
IL2CPP_END_FINALLY(32)
} // end finally (depth: 1)
IL2CPP_CLEANUP(32)
{
IL2CPP_JUMP_TBL(0x27, IL_0027)
IL2CPP_RETHROW_IF_UNHANDLED(t1967233988 *)
}
IL_0027:
{
return;
}
}
extern "C" void m3554617051 (t281933724 * __this, const MethodInfo* method)
{
typedef void (*m3554617051_ftn) (t281933724 *);
static m3554617051_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3554617051_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.CullingGroup::Dispose()");
_il2cpp_icall_func(__this);
}
extern "C" void m1355834984 (Il2CppObject * __this , t281933724 * p0, IntPtr_t p1, int32_t p2, const MethodInfo* method)
{
t2364738776 * V_0 = NULL;
int32_t V_1 = 0;
{
void* L_0 = m2676680906((&p1), NULL);
V_0 = (t2364738776 *)L_0;
t281933724 * L_1 = p0;
t1076524291 * L_2 = L_1->fg1();
if (L_2)
{
goto IL_0014;
}
}
{
return;
}
IL_0014:
{
V_1 = 0;
goto IL_0039;
}
IL_001b:
{
t281933724 * L_3 = p0;
t1076524291 * L_4 = L_3->fg1();
t2364738776 * L_5 = V_0;
int32_t L_6 = V_1;
m3174530616(L_4, (*(t2364738776 *)((t2364738776 *)((intptr_t)L_5+(int32_t)((int32_t)((int32_t)L_6*(int32_t)sizeof(t2364738776 )))))), NULL);
int32_t L_7 = V_1;
V_1 = ((int32_t)((int32_t)L_7+(int32_t)1));
}
IL_0039:
{
int32_t L_8 = V_1;
int32_t L_9 = p2;
if ((((int32_t)L_8) < ((int32_t)L_9)))
{
goto IL_001b;
}
}
{
return;
}
}
extern "C" void m4240538940 (t281933724 * __this, const MethodInfo* method)
{
typedef void (*m4240538940_ftn) (t281933724 *);
static m4240538940_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m4240538940_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.CullingGroup::FinalizerFailure()");
_il2cpp_icall_func(__this);
}
extern "C" void m3267025420 (t1076524291 * __this, Il2CppObject * p0, IntPtr_t p1, const MethodInfo* method)
{
__this->fs0((methodPointerType)((MethodInfo*)p1.fg0())->method);
__this->fs3(p1);
__this->fs2(p0);
}
extern "C" void m3174530616 (t1076524291 * __this, t2364738776 p0, const MethodInfo* method)
{
if(__this->fg9() != NULL)
{
m3174530616((t1076524291 *)__this->fg9(),p0, method);
}
il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found((MethodInfo*)(__this->fg3().fg0()));
bool ___methodIsStatic = MethodIsStatic((MethodInfo*)(__this->fg3().fg0()));
if (__this->fg2() != NULL && ___methodIsStatic)
{
typedef void (*FunctionPointerType) (Il2CppObject *, void* __this, t2364738776 p0, const MethodInfo* method);
((FunctionPointerType)__this->fg0())(NULL,il2cpp_codegen_get_delegate_this(__this),p0,(MethodInfo*)(__this->fg3().fg0()));
}
else
{
typedef void (*FunctionPointerType) (void* __this, t2364738776 p0, const MethodInfo* method);
((FunctionPointerType)__this->fg0())(il2cpp_codegen_get_delegate_this(__this),p0,(MethodInfo*)(__this->fg3().fg0()));
}
}
extern "C" void pinvoke_delegate_wrapper_t1076524291(Il2CppObject* delegate, t2364738776 p0)
{
typedef void (STDCALL *native_function_ptr_type)(t2364738776_marshaled_pinvoke);
native_function_ptr_type _il2cpp_pinvoke_func = ((native_function_ptr_type)((Il2CppDelegate*)delegate)->method->method);
// Marshaling of parameter 'p0' to native representation
t2364738776_marshaled_pinvoke _p0_marshaled = { };
t2364738776_marshal_pinvoke(p0, _p0_marshaled);
// Native function invocation
_il2cpp_pinvoke_func(_p0_marshaled);
// Marshaling cleanup of parameter 'p0' native representation
t2364738776_marshal_pinvoke_cleanup(_p0_marshaled);
}
extern TypeInfo* t2364738776_TI_var;
extern const uint32_t m163021837_MetadataUsageId;
extern "C" Il2CppObject * m163021837 (t1076524291 * __this, t2364738776 p0, t1363551830 * p1, Il2CppObject * p2, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m163021837_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
void *__d_args[2] = {0};
__d_args[0] = Box(t2364738776_TI_var, &p0);
return (Il2CppObject *)il2cpp_delegate_begin_invoke((Il2CppDelegate*)__this, __d_args, (Il2CppDelegate*)p1, (Il2CppObject*)p2);
}
extern "C" void m4182061596 (t1076524291 * __this, Il2CppObject * p0, const MethodInfo* method)
{
il2cpp_delegate_end_invoke((Il2CppAsyncResult*) p0, 0);
}
// Conversion methods for marshalling of: UnityEngine.CullingGroupEvent
extern "C" void t2364738776_marshal_pinvoke(const t2364738776& unmarshaled, t2364738776_marshaled_pinvoke& marshaled)
{
marshaled.f0 = unmarshaled.fg0();
marshaled.f1 = unmarshaled.fg1();
marshaled.f2 = unmarshaled.fg2();
}
extern "C" void t2364738776_marshal_pinvoke_back(const t2364738776_marshaled_pinvoke& marshaled, t2364738776& unmarshaled)
{
int32_t unmarshaled_m_Index_temp = 0;
unmarshaled_m_Index_temp = marshaled.f0;
unmarshaled.fs0(unmarshaled_m_Index_temp);
uint8_t unmarshaled_m_PrevState_temp = 0x0;
unmarshaled_m_PrevState_temp = marshaled.f1;
unmarshaled.fs1(unmarshaled_m_PrevState_temp);
uint8_t unmarshaled_m_ThisState_temp = 0x0;
unmarshaled_m_ThisState_temp = marshaled.f2;
unmarshaled.fs2(unmarshaled_m_ThisState_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.CullingGroupEvent
extern "C" void t2364738776_marshal_pinvoke_cleanup(t2364738776_marshaled_pinvoke& marshaled)
{
}
// Conversion methods for marshalling of: UnityEngine.CullingGroupEvent
extern "C" void t2364738776_marshal_com(const t2364738776& unmarshaled, t2364738776_marshaled_com& marshaled)
{
marshaled.f0 = unmarshaled.fg0();
marshaled.f1 = unmarshaled.fg1();
marshaled.f2 = unmarshaled.fg2();
}
extern "C" void t2364738776_marshal_com_back(const t2364738776_marshaled_com& marshaled, t2364738776& unmarshaled)
{
int32_t unmarshaled_m_Index_temp = 0;
unmarshaled_m_Index_temp = marshaled.f0;
unmarshaled.fs0(unmarshaled_m_Index_temp);
uint8_t unmarshaled_m_PrevState_temp = 0x0;
unmarshaled_m_PrevState_temp = marshaled.f1;
unmarshaled.fs1(unmarshaled_m_PrevState_temp);
uint8_t unmarshaled_m_ThisState_temp = 0x0;
unmarshaled_m_ThisState_temp = marshaled.f2;
unmarshaled.fs2(unmarshaled_m_ThisState_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.CullingGroupEvent
extern "C" void t2364738776_marshal_com_cleanup(t2364738776_marshaled_com& marshaled)
{
}
extern TypeInfo* t931256902_TI_var;
extern TypeInfo* t3804382717_TI_var;
extern TypeInfo* t1588791936_TI_var;
extern const uint32_t m37515655_MetadataUsageId;
extern "C" void m37515655 (Il2CppObject * __this , const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m37515655_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t931256902 * L_0 = (t931256902 *)il2cpp_codegen_object_new(t931256902_TI_var);
m1521597024(L_0, NULL);
t3804382717 * L_1 = (t3804382717 *)il2cpp_codegen_object_new(t3804382717_TI_var);
m654679389(L_1, L_0, NULL);
((t1588791936_SFs*)t1588791936_TI_var->static_fields)->fs0(L_1);
return;
}
}
extern TypeInfo* t1588791936_TI_var;
extern const uint32_t m275693158_MetadataUsageId;
extern "C" Il2CppObject * m275693158 (Il2CppObject * __this , const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m275693158_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(t1588791936_TI_var);
t3804382717 * L_0 = ((t1588791936_SFs*)t1588791936_TI_var->static_fields)->fg0();
return L_0;
}
}
extern TypeInfo* t1588791936_TI_var;
extern TypeInfo* t4167641990_TI_var;
extern const uint32_t m1731103628_MetadataUsageId;
extern "C" void m1731103628 (Il2CppObject * __this , Il2CppObject * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m1731103628_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(t1588791936_TI_var);
Il2CppObject * L_0 = m275693158(NULL, NULL);
Il2CppObject * L_1 = p0;
InterfaceActionInvoker2< int32_t, Il2CppObject * >::Invoke(0 /* System.Void UnityEngine.ILogger::Log(UnityEngine.LogType,System.Object) */, t4167641990_TI_var, L_0, 3, L_1);
return;
}
}
extern TypeInfo* t1588791936_TI_var;
extern TypeInfo* t4167641990_TI_var;
extern const uint32_t m4127342994_MetadataUsageId;
extern "C" void m4127342994 (Il2CppObject * __this , Il2CppObject * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m4127342994_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(t1588791936_TI_var);
Il2CppObject * L_0 = m275693158(NULL, NULL);
Il2CppObject * L_1 = p0;
InterfaceActionInvoker2< int32_t, Il2CppObject * >::Invoke(0 /* System.Void UnityEngine.ILogger::Log(UnityEngine.LogType,System.Object) */, t4167641990_TI_var, L_0, 0, L_1);
return;
}
}
extern TypeInfo* t1588791936_TI_var;
extern TypeInfo* t4167641990_TI_var;
extern const uint32_t m3123317694_MetadataUsageId;
extern "C" void m3123317694 (Il2CppObject * __this , Il2CppObject * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3123317694_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(t1588791936_TI_var);
Il2CppObject * L_0 = m275693158(NULL, NULL);
Il2CppObject * L_1 = p0;
InterfaceActionInvoker2< int32_t, Il2CppObject * >::Invoke(0 /* System.Void UnityEngine.ILogger::Log(UnityEngine.LogType,System.Object) */, t4167641990_TI_var, L_0, 2, L_1);
return;
}
}
extern "C" void m1521597024 (t931256902 * __this, const MethodInfo* method)
{
{
m1772956182(__this, NULL);
return;
}
}
extern "C" void m3731237167 (Il2CppObject * __this , int32_t p0, String_t* p1, t3878351788 * p2, const MethodInfo* method)
{
typedef void (*m3731237167_ftn) (int32_t, String_t*, t3878351788 *);
static m3731237167_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3731237167_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.DebugLogHandler::Internal_Log(UnityEngine.LogType,System.String,UnityEngine.Object)");
_il2cpp_icall_func(p0, p1, p2);
}
extern TypeInfo* String_t_TI_var;
extern const uint32_t m1190453926_MetadataUsageId;
extern "C" void m1190453926 (t931256902 * __this, int32_t p0, t3878351788 * p1, String_t* p2, t11523773* p3, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m1190453926_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
int32_t L_0 = p0;
String_t* L_1 = p2;
t11523773* L_2 = p3;
IL2CPP_RUNTIME_CLASS_INIT(String_t_TI_var);
String_t* L_3 = m4050103162(NULL, L_1, L_2, NULL);
t3878351788 * L_4 = p1;
m3731237167(NULL, L_0, L_3, L_4, NULL);
return;
}
}
extern "C" void m923501527 (t564335855 * __this, const MethodInfo* method)
{
{
m1772956182(__this, NULL);
IntPtr_t L_0;
memset(&L_0, 0, sizeof(L_0));
m2136600871(&L_0, 0, NULL);
__this->fs0(L_0);
return;
}
}
extern "C" void m3179075037 (t564335855 * __this, IntPtr_t p0, const MethodInfo* method)
{
{
m1772956182(__this, NULL);
IntPtr_t L_0 = p0;
__this->fs0(L_0);
return;
}
}
extern TypeInfo* t2401773174_TI_var;
extern TypeInfo* t564335855_TI_var;
extern const uint32_t m2376647350_MetadataUsageId;
extern "C" void m2376647350 (Il2CppObject * __this , const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2376647350_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t2401773174* L_0 = ((t2401773174*)SZArrayNew(t2401773174_TI_var, (uint32_t)1));
t564335855 * L_1 = (t564335855 *)il2cpp_codegen_object_new(t564335855_TI_var);
m923501527(L_1, NULL);
ArrayElementTypeCheck (L_0, L_1);
(L_0)->SetAt(static_cast<il2cpp_array_size_t>(0), (t564335855 *)L_1);
((t564335855_SFs*)t564335855_TI_var->static_fields)->fs1(L_0);
t2401773174* L_2 = ((t564335855_SFs*)t564335855_TI_var->static_fields)->fg1();
int32_t L_3 = 0;
((t564335855_SFs*)t564335855_TI_var->static_fields)->fs2(((L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_3))));
((t564335855_SFs*)t564335855_TI_var->static_fields)->fs3((t1240057615 *)NULL);
return;
}
}
extern TypeInfo* t2401773174_TI_var;
extern TypeInfo* t564335855_TI_var;
extern const uint32_t m581883884_MetadataUsageId;
extern "C" void m581883884 (Il2CppObject * __this , t2131596413* p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m581883884_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
{
t2131596413* L_0 = p0;
IL2CPP_RUNTIME_CLASS_INIT(t564335855_TI_var);
((t564335855_SFs*)t564335855_TI_var->static_fields)->fs1(((t2401773174*)SZArrayNew(t2401773174_TI_var, (uint32_t)(((int32_t)((int32_t)(((Il2CppArray *)L_0)->max_length)))))));
V_0 = 0;
goto IL_0027;
}
IL_0014:
{
IL2CPP_RUNTIME_CLASS_INIT(t564335855_TI_var);
t2401773174* L_1 = ((t564335855_SFs*)t564335855_TI_var->static_fields)->fg1();
int32_t L_2 = V_0;
t2131596413* L_3 = p0;
int32_t L_4 = V_0;
int32_t L_5 = L_4;
t564335855 * L_6 = (t564335855 *)il2cpp_codegen_object_new(t564335855_TI_var);
m3179075037(L_6, ((L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5))), NULL);
ArrayElementTypeCheck (L_1, L_6);
(L_1)->SetAt(static_cast<il2cpp_array_size_t>(L_2), (t564335855 *)L_6);
int32_t L_7 = V_0;
V_0 = ((int32_t)((int32_t)L_7+(int32_t)1));
}
IL_0027:
{
int32_t L_8 = V_0;
t2131596413* L_9 = p0;
if ((((int32_t)L_8) < ((int32_t)(((int32_t)((int32_t)(((Il2CppArray *)L_9)->max_length)))))))
{
goto IL_0014;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t564335855_TI_var);
t2401773174* L_10 = ((t564335855_SFs*)t564335855_TI_var->static_fields)->fg1();
int32_t L_11 = 0;
((t564335855_SFs*)t564335855_TI_var->static_fields)->fs2(((L_10)->GetAt(static_cast<il2cpp_array_size_t>(L_11))));
return;
}
}
extern TypeInfo* t564335855_TI_var;
extern const uint32_t m3581134697_MetadataUsageId;
extern "C" void m3581134697 (Il2CppObject * __this , const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3581134697_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(t564335855_TI_var);
t1240057615 * L_0 = ((t564335855_SFs*)t564335855_TI_var->static_fields)->fg3();
if (!L_0)
{
goto IL_0014;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t564335855_TI_var);
t1240057615 * L_1 = ((t564335855_SFs*)t564335855_TI_var->static_fields)->fg3();
m3958989829(L_1, NULL);
}
IL_0014:
{
return;
}
}
extern "C" void m3468699627 (t1240057615 * __this, Il2CppObject * p0, IntPtr_t p1, const MethodInfo* method)
{
__this->fs0((methodPointerType)((MethodInfo*)p1.fg0())->method);
__this->fs3(p1);
__this->fs2(p0);
}
extern "C" void m3958989829 (t1240057615 * __this, const MethodInfo* method)
{
if(__this->fg9() != NULL)
{
m3958989829((t1240057615 *)__this->fg9(), method);
}
il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found((MethodInfo*)(__this->fg3().fg0()));
bool ___methodIsStatic = MethodIsStatic((MethodInfo*)(__this->fg3().fg0()));
if ((__this->fg2() != NULL || MethodHasParameters((MethodInfo*)(__this->fg3().fg0()))) && ___methodIsStatic)
{
typedef void (*FunctionPointerType) (Il2CppObject *, void* __this, const MethodInfo* method);
((FunctionPointerType)__this->fg0())(NULL,il2cpp_codegen_get_delegate_this(__this),(MethodInfo*)(__this->fg3().fg0()));
}
else
{
typedef void (*FunctionPointerType) (void* __this, const MethodInfo* method);
((FunctionPointerType)__this->fg0())(il2cpp_codegen_get_delegate_this(__this),(MethodInfo*)(__this->fg3().fg0()));
}
}
extern "C" void pinvoke_delegate_wrapper_t1240057615(Il2CppObject* delegate)
{
typedef void (STDCALL *native_function_ptr_type)();
native_function_ptr_type _il2cpp_pinvoke_func = ((native_function_ptr_type)((Il2CppDelegate*)delegate)->method->method);
// Native function invocation
_il2cpp_pinvoke_func();
}
extern "C" Il2CppObject * m3264685798 (t1240057615 * __this, t1363551830 * p0, Il2CppObject * p1, const MethodInfo* method)
{
void *__d_args[1] = {0};
return (Il2CppObject *)il2cpp_delegate_begin_invoke((Il2CppDelegate*)__this, __d_args, (Il2CppDelegate*)p0, (Il2CppObject*)p1);
}
extern "C" void m3466741627 (t1240057615 * __this, Il2CppObject * p0, const MethodInfo* method)
{
il2cpp_delegate_end_invoke((Il2CppAsyncResult*) p0, 0);
}
extern "C" void m66398544 (t1590224583 * __this, int32_t p0, const MethodInfo* method)
{
{
m1772956182(__this, NULL);
int32_t L_0 = p0;
m3525277126(__this, L_0, NULL);
return;
}
}
extern "C" void m2449826179 (t1590224583 * __this, const MethodInfo* method)
{
t1967233988 * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
t1967233988 * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
IL_0000:
try
{ // begin try (depth: 1)
m3160122945(__this, NULL);
IL2CPP_LEAVE(0x12, FINALLY_000b);
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t1967233988 *)e.ex;
goto FINALLY_000b;
}
FINALLY_000b:
{ // begin finally (depth: 1)
m3027285644(__this, NULL);
IL2CPP_END_FINALLY(11)
} // end finally (depth: 1)
IL2CPP_CLEANUP(11)
{
IL2CPP_JUMP_TBL(0x12, IL_0012)
IL2CPP_RETHROW_IF_UNHANDLED(t1967233988 *)
}
IL_0012:
{
return;
}
}
extern "C" t3525329788 m3610425949 (t1590224583 * __this, const MethodInfo* method)
{
t3525329788 V_0;
memset(&V_0, 0, sizeof(V_0));
{
m2054214537(__this, (&V_0), NULL);
t3525329788 L_0 = V_0;
return L_0;
}
}
extern TypeInfo* t1590224583_TI_var;
extern const uint32_t m238587645_MetadataUsageId;
extern "C" t1590224583 * m238587645 (Il2CppObject * __this , const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m238587645_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t1590224583 * L_0 = ((t1590224583_SFs*)t1590224583_TI_var->static_fields)->fg1();
return L_0;
}
}
extern TypeInfo* t1590224583_TI_var;
extern const uint32_t m213199903_MetadataUsageId;
extern "C" void m213199903 (Il2CppObject * __this , int32_t p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m213199903_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t1590224583 * L_0 = ((t1590224583_SFs*)t1590224583_TI_var->static_fields)->fg2();
if (L_0)
{
goto IL_0015;
}
}
{
int32_t L_1 = p0;
t1590224583 * L_2 = (t1590224583 *)il2cpp_codegen_object_new(t1590224583_TI_var);
m66398544(L_2, L_1, NULL);
((t1590224583_SFs*)t1590224583_TI_var->static_fields)->fs2(L_2);
}
IL_0015:
{
t1590224583 * L_3 = ((t1590224583_SFs*)t1590224583_TI_var->static_fields)->fg2();
int32_t L_4 = p0;
m4130090435(L_3, L_4, NULL);
t1590224583 * L_5 = ((t1590224583_SFs*)t1590224583_TI_var->static_fields)->fg2();
((t1590224583_SFs*)t1590224583_TI_var->static_fields)->fs1(L_5);
t1590224583 * L_6 = ((t1590224583_SFs*)t1590224583_TI_var->static_fields)->fg2();
IntPtr_t L_7 = L_6->fg0();
m930902932(NULL, L_7, NULL);
return;
}
}
extern "C" bool m645126607 (t1590224583 * __this, const MethodInfo* method)
{
int32_t V_0 = 0;
int32_t G_B3_0 = 0;
{
int32_t L_0 = m2209939250(__this, NULL);
V_0 = L_0;
int32_t L_1 = V_0;
if ((((int32_t)L_1) == ((int32_t)4)))
{
goto IL_0014;
}
}
{
int32_t L_2 = V_0;
G_B3_0 = ((((int32_t)L_2) == ((int32_t)5))? 1 : 0);
goto IL_0015;
}
IL_0014:
{
G_B3_0 = 1;
}
IL_0015:
{
return (bool)G_B3_0;
}
}
extern "C" bool m3551276757 (t1590224583 * __this, const MethodInfo* method)
{
int32_t V_0 = 0;
int32_t G_B5_0 = 0;
{
int32_t L_0 = m2209939250(__this, NULL);
V_0 = L_0;
int32_t L_1 = V_0;
if ((((int32_t)L_1) == ((int32_t)2)))
{
goto IL_0021;
}
}
{
int32_t L_2 = V_0;
if (!L_2)
{
goto IL_0021;
}
}
{
int32_t L_3 = V_0;
if ((((int32_t)L_3) == ((int32_t)1)))
{
goto IL_0021;
}
}
{
int32_t L_4 = V_0;
G_B5_0 = ((((int32_t)L_4) == ((int32_t)3))? 1 : 0);
goto IL_0022;
}
IL_0021:
{
G_B5_0 = 1;
}
IL_0022:
{
return (bool)G_B5_0;
}
}
extern "C" int32_t m2341647470 (t1590224583 * __this, const MethodInfo* method)
{
int32_t V_0 = 0;
t3525329788 V_1;
memset(&V_1, 0, sizeof(V_1));
{
V_0 = 1;
bool L_0 = m645126607(__this, NULL);
if (!L_0)
{
goto IL_0015;
}
}
{
int32_t L_1 = m1820698462(__this, NULL);
V_0 = (((int32_t)((uint16_t)L_1)));
}
IL_0015:
{
bool L_2 = m3551276757(__this, NULL);
if (!L_2)
{
goto IL_002f;
}
}
{
t3525329788 L_3 = m3610425949(__this, NULL);
V_1 = L_3;
int32_t L_4 = m128434585((&V_1), NULL);
V_0 = L_4;
}
IL_002f:
{
int32_t L_5 = V_0;
int32_t L_6 = m4020990886(__this, NULL);
V_0 = ((int32_t)((int32_t)((int32_t)((int32_t)L_5*(int32_t)((int32_t)37)))|(int32_t)L_6));
int32_t L_7 = V_0;
return L_7;
}
}
extern TypeInfo* t1590224583_TI_var;
extern const uint32_t m2374615830_MetadataUsageId;
extern "C" bool m2374615830 (t1590224583 * __this, Il2CppObject * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2374615830_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t1590224583 * V_0 = NULL;
{
Il2CppObject * L_0 = p0;
if (L_0)
{
goto IL_0008;
}
}
{
return (bool)0;
}
IL_0008:
{
Il2CppObject * L_1 = p0;
bool L_2 = m3695130242(NULL, __this, L_1, NULL);
if (!L_2)
{
goto IL_0016;
}
}
{
return (bool)1;
}
IL_0016:
{
Il2CppObject * L_3 = p0;
Type_t * L_4 = m2022236990(L_3, NULL);
Type_t * L_5 = m2022236990(__this, NULL);
if ((((Il2CppObject*)(Type_t *)L_4) == ((Il2CppObject*)(Type_t *)L_5)))
{
goto IL_0029;
}
}
{
return (bool)0;
}
IL_0029:
{
Il2CppObject * L_6 = p0;
V_0 = ((t1590224583 *)CastclassSealed(L_6, t1590224583_TI_var));
int32_t L_7 = m2209939250(__this, NULL);
t1590224583 * L_8 = V_0;
int32_t L_9 = m2209939250(L_8, NULL);
if ((!(((uint32_t)L_7) == ((uint32_t)L_9))))
{
goto IL_0058;
}
}
{
int32_t L_10 = m4020990886(__this, NULL);
t1590224583 * L_11 = V_0;
int32_t L_12 = m4020990886(L_11, NULL);
if ((((int32_t)((int32_t)((int32_t)L_10&(int32_t)((int32_t)-33)))) == ((int32_t)((int32_t)((int32_t)L_12&(int32_t)((int32_t)-33))))))
{
goto IL_005a;
}
}
IL_0058:
{
return (bool)0;
}
IL_005a:
{
bool L_13 = m645126607(__this, NULL);
if (!L_13)
{
goto IL_0074;
}
}
{
int32_t L_14 = m1820698462(__this, NULL);
t1590224583 * L_15 = V_0;
int32_t L_16 = m1820698462(L_15, NULL);
return (bool)((((int32_t)L_14) == ((int32_t)L_16))? 1 : 0);
}
IL_0074:
{
bool L_17 = m3551276757(__this, NULL);
if (!L_17)
{
goto IL_0091;
}
}
{
t3525329788 L_18 = m3610425949(__this, NULL);
t1590224583 * L_19 = V_0;
t3525329788 L_20 = m3610425949(L_19, NULL);
bool L_21 = m1927481448(NULL, L_18, L_20, NULL);
return L_21;
}
IL_0091:
{
return (bool)0;
}
}
extern TypeInfo* t11523773_TI_var;
extern TypeInfo* t3558284577_TI_var;
extern TypeInfo* t3870720879_TI_var;
extern TypeInfo* t2371581209_TI_var;
extern TypeInfo* t2847414787_TI_var;
extern TypeInfo* String_t_TI_var;
extern TypeInfo* t3525329788_TI_var;
extern Il2CppCodeGenString* _stringLiteral565784926;
extern Il2CppCodeGenString* _stringLiteral2087505152;
extern Il2CppCodeGenString* _stringLiteral607738481;
extern Il2CppCodeGenString* _stringLiteral559441790;
extern Il2CppCodeGenString* _stringLiteral3464389902;
extern Il2CppCodeGenString* _stringLiteral1980489796;
extern Il2CppCodeGenString* _stringLiteral1621281301;
extern const uint32_t m3661517518_MetadataUsageId;
extern "C" String_t* m3661517518 (t1590224583 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3661517518_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
bool L_0 = m645126607(__this, NULL);
if (!L_0)
{
goto IL_00b5;
}
}
{
uint16_t L_1 = m3663172667(__this, NULL);
if (L_1)
{
goto IL_0051;
}
}
{
t11523773* L_2 = ((t11523773*)SZArrayNew(t11523773_TI_var, (uint32_t)3));
int32_t L_3 = m2209939250(__this, NULL);
int32_t L_4 = L_3;
Il2CppObject * L_5 = Box(t3558284577_TI_var, &L_4);
ArrayElementTypeCheck (L_2, L_5);
(L_2)->SetAt(static_cast<il2cpp_array_size_t>(0), (Il2CppObject *)L_5);
t11523773* L_6 = L_2;
int32_t L_7 = m4020990886(__this, NULL);
int32_t L_8 = L_7;
Il2CppObject * L_9 = Box(t3870720879_TI_var, &L_8);
ArrayElementTypeCheck (L_6, L_9);
(L_6)->SetAt(static_cast<il2cpp_array_size_t>(1), (Il2CppObject *)L_9);
t11523773* L_10 = L_6;
int32_t L_11 = m1820698462(__this, NULL);
int32_t L_12 = L_11;
Il2CppObject * L_13 = Box(t2371581209_TI_var, &L_12);
ArrayElementTypeCheck (L_10, L_13);
(L_10)->SetAt(static_cast<il2cpp_array_size_t>(2), (Il2CppObject *)L_13);
String_t* L_14 = m427603113(NULL, _stringLiteral565784926, L_10, NULL);
return L_14;
}
IL_0051:
{
t11523773* L_15 = ((t11523773*)SZArrayNew(t11523773_TI_var, (uint32_t)8));
ArrayElementTypeCheck (L_15, _stringLiteral2087505152);
(L_15)->SetAt(static_cast<il2cpp_array_size_t>(0), (Il2CppObject *)_stringLiteral2087505152);
t11523773* L_16 = L_15;
int32_t L_17 = m2209939250(__this, NULL);
int32_t L_18 = L_17;
Il2CppObject * L_19 = Box(t3558284577_TI_var, &L_18);
ArrayElementTypeCheck (L_16, L_19);
(L_16)->SetAt(static_cast<il2cpp_array_size_t>(1), (Il2CppObject *)L_19);
t11523773* L_20 = L_16;
ArrayElementTypeCheck (L_20, _stringLiteral607738481);
(L_20)->SetAt(static_cast<il2cpp_array_size_t>(2), (Il2CppObject *)_stringLiteral607738481);
t11523773* L_21 = L_20;
uint16_t L_22 = m3663172667(__this, NULL);
int32_t L_23 = ((int32_t)L_22);
Il2CppObject * L_24 = Box(t2847414787_TI_var, &L_23);
ArrayElementTypeCheck (L_21, L_24);
(L_21)->SetAt(static_cast<il2cpp_array_size_t>(3), (Il2CppObject *)L_24);
t11523773* L_25 = L_21;
ArrayElementTypeCheck (L_25, _stringLiteral559441790);
(L_25)->SetAt(static_cast<il2cpp_array_size_t>(4), (Il2CppObject *)_stringLiteral559441790);
t11523773* L_26 = L_25;
int32_t L_27 = m4020990886(__this, NULL);
int32_t L_28 = L_27;
Il2CppObject * L_29 = Box(t3870720879_TI_var, &L_28);
ArrayElementTypeCheck (L_26, L_29);
(L_26)->SetAt(static_cast<il2cpp_array_size_t>(5), (Il2CppObject *)L_29);
t11523773* L_30 = L_26;
ArrayElementTypeCheck (L_30, _stringLiteral3464389902);
(L_30)->SetAt(static_cast<il2cpp_array_size_t>(6), (Il2CppObject *)_stringLiteral3464389902);
t11523773* L_31 = L_30;
int32_t L_32 = m1820698462(__this, NULL);
int32_t L_33 = L_32;
Il2CppObject * L_34 = Box(t2371581209_TI_var, &L_33);
ArrayElementTypeCheck (L_31, L_34);
(L_31)->SetAt(static_cast<il2cpp_array_size_t>(7), (Il2CppObject *)L_34);
IL2CPP_RUNTIME_CLASS_INIT(String_t_TI_var);
String_t* L_35 = m3016520001(NULL, L_31, NULL);
return L_35;
}
IL_00b5:
{
bool L_36 = m3551276757(__this, NULL);
if (!L_36)
{
goto IL_00fb;
}
}
{
t11523773* L_37 = ((t11523773*)SZArrayNew(t11523773_TI_var, (uint32_t)3));
int32_t L_38 = m2209939250(__this, NULL);
int32_t L_39 = L_38;
Il2CppObject * L_40 = Box(t3558284577_TI_var, &L_39);
ArrayElementTypeCheck (L_37, L_40);
(L_37)->SetAt(static_cast<il2cpp_array_size_t>(0), (Il2CppObject *)L_40);
t11523773* L_41 = L_37;
t3525329788 L_42 = m3610425949(__this, NULL);
t3525329788 L_43 = L_42;
Il2CppObject * L_44 = Box(t3525329788_TI_var, &L_43);
ArrayElementTypeCheck (L_41, L_44);
(L_41)->SetAt(static_cast<il2cpp_array_size_t>(1), (Il2CppObject *)L_44);
t11523773* L_45 = L_41;
int32_t L_46 = m4020990886(__this, NULL);
int32_t L_47 = L_46;
Il2CppObject * L_48 = Box(t3870720879_TI_var, &L_47);
ArrayElementTypeCheck (L_45, L_48);
(L_45)->SetAt(static_cast<il2cpp_array_size_t>(2), (Il2CppObject *)L_48);
String_t* L_49 = m427603113(NULL, _stringLiteral1980489796, L_45, NULL);
return L_49;
}
IL_00fb:
{
int32_t L_50 = m2209939250(__this, NULL);
if ((((int32_t)L_50) == ((int32_t)((int32_t)14))))
{
goto IL_0115;
}
}
{
int32_t L_51 = m2209939250(__this, NULL);
if ((!(((uint32_t)L_51) == ((uint32_t)((int32_t)13)))))
{
goto IL_013d;
}
}
IL_0115:
{
t11523773* L_52 = ((t11523773*)SZArrayNew(t11523773_TI_var, (uint32_t)2));
int32_t L_53 = m2209939250(__this, NULL);
int32_t L_54 = L_53;
Il2CppObject * L_55 = Box(t3558284577_TI_var, &L_54);
ArrayElementTypeCheck (L_52, L_55);
(L_52)->SetAt(static_cast<il2cpp_array_size_t>(0), (Il2CppObject *)L_55);
t11523773* L_56 = L_52;
String_t* L_57 = m1197792621(__this, NULL);
ArrayElementTypeCheck (L_56, L_57);
(L_56)->SetAt(static_cast<il2cpp_array_size_t>(1), (Il2CppObject *)L_57);
String_t* L_58 = m427603113(NULL, _stringLiteral1621281301, L_56, NULL);
return L_58;
}
IL_013d:
{
IL2CPP_RUNTIME_CLASS_INIT(String_t_TI_var);
String_t* L_59 = ((String_t_SFs*)String_t_TI_var->static_fields)->fg2();
int32_t L_60 = m2209939250(__this, NULL);
int32_t L_61 = L_60;
Il2CppObject * L_62 = Box(t3558284577_TI_var, &L_61);
String_t* L_63 = m389863537(NULL, L_59, L_62, NULL);
return L_63;
}
}
extern "C" void m3525277126 (t1590224583 * __this, int32_t p0, const MethodInfo* method)
{
typedef void (*m3525277126_ftn) (t1590224583 *, int32_t);
static m3525277126_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3525277126_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Event::Init(System.Int32)");
_il2cpp_icall_func(__this, p0);
}
extern "C" void m3160122945 (t1590224583 * __this, const MethodInfo* method)
{
typedef void (*m3160122945_ftn) (t1590224583 *);
static m3160122945_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3160122945_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Event::Cleanup()");
_il2cpp_icall_func(__this);
}
extern "C" int32_t m2209939250 (t1590224583 * __this, const MethodInfo* method)
{
typedef int32_t (*m2209939250_ftn) (t1590224583 *);
static m2209939250_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2209939250_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Event::get_type()");
return _il2cpp_icall_func(__this);
}
extern "C" void m2054214537 (t1590224583 * __this, t3525329788 * p0, const MethodInfo* method)
{
typedef void (*m2054214537_ftn) (t1590224583 *, t3525329788 *);
static m2054214537_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2054214537_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Event::Internal_GetMousePosition(UnityEngine.Vector2&)");
_il2cpp_icall_func(__this, p0);
}
extern "C" int32_t m4020990886 (t1590224583 * __this, const MethodInfo* method)
{
typedef int32_t (*m4020990886_ftn) (t1590224583 *);
static m4020990886_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m4020990886_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Event::get_modifiers()");
return _il2cpp_icall_func(__this);
}
extern "C" uint16_t m3663172667 (t1590224583 * __this, const MethodInfo* method)
{
typedef uint16_t (*m3663172667_ftn) (t1590224583 *);
static m3663172667_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3663172667_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Event::get_character()");
return _il2cpp_icall_func(__this);
}
extern "C" String_t* m1197792621 (t1590224583 * __this, const MethodInfo* method)
{
typedef String_t* (*m1197792621_ftn) (t1590224583 *);
static m1197792621_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1197792621_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Event::get_commandName()");
return _il2cpp_icall_func(__this);
}
extern "C" int32_t m1820698462 (t1590224583 * __this, const MethodInfo* method)
{
typedef int32_t (*m1820698462_ftn) (t1590224583 *);
static m1820698462_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1820698462_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Event::get_keyCode()");
return _il2cpp_icall_func(__this);
}
extern "C" void m930902932 (Il2CppObject * __this , IntPtr_t p0, const MethodInfo* method)
{
typedef void (*m930902932_ftn) (IntPtr_t);
static m930902932_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m930902932_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Event::Internal_SetNativeEvent(System.IntPtr)");
_il2cpp_icall_func(p0);
}
extern "C" void m4130090435 (t1590224583 * __this, int32_t p0, const MethodInfo* method)
{
typedef void (*m4130090435_ftn) (t1590224583 *, int32_t);
static m4130090435_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m4130090435_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Event::set_displayIndex(System.Int32)");
_il2cpp_icall_func(__this, p0);
}
// Conversion methods for marshalling of: UnityEngine.Event
extern "C" void t1590224583_marshal_pinvoke(const t1590224583& unmarshaled, t1590224583_marshaled_pinvoke& marshaled)
{
marshaled.f0 = reinterpret_cast<intptr_t>((unmarshaled.fg0()).fg0());
}
extern "C" void t1590224583_marshal_pinvoke_back(const t1590224583_marshaled_pinvoke& marshaled, t1590224583& unmarshaled)
{
IntPtr_t unmarshaled_m_Ptr_temp;
memset(&unmarshaled_m_Ptr_temp, 0, sizeof(unmarshaled_m_Ptr_temp));
IntPtr_t unmarshaled_m_Ptr_temp_temp;
unmarshaled_m_Ptr_temp_temp.set_m_value_0(reinterpret_cast<void*>((intptr_t)marshaled.f0));
unmarshaled_m_Ptr_temp = unmarshaled_m_Ptr_temp_temp;
unmarshaled.fs0(unmarshaled_m_Ptr_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.Event
extern "C" void t1590224583_marshal_pinvoke_cleanup(t1590224583_marshaled_pinvoke& marshaled)
{
}
// Conversion methods for marshalling of: UnityEngine.Event
extern "C" void t1590224583_marshal_com(const t1590224583& unmarshaled, t1590224583_marshaled_com& marshaled)
{
marshaled.f0 = reinterpret_cast<intptr_t>((unmarshaled.fg0()).fg0());
}
extern "C" void t1590224583_marshal_com_back(const t1590224583_marshaled_com& marshaled, t1590224583& unmarshaled)
{
IntPtr_t unmarshaled_m_Ptr_temp;
memset(&unmarshaled_m_Ptr_temp, 0, sizeof(unmarshaled_m_Ptr_temp));
IntPtr_t unmarshaled_m_Ptr_temp_temp;
unmarshaled_m_Ptr_temp_temp.set_m_value_0(reinterpret_cast<void*>((intptr_t)marshaled.f0));
unmarshaled_m_Ptr_temp = unmarshaled_m_Ptr_temp_temp;
unmarshaled.fs0(unmarshaled_m_Ptr_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.Event
extern "C" void t1590224583_marshal_com_cleanup(t1590224583_marshaled_com& marshaled)
{
}
extern "C" void m4004594141 (t2732610389 * __this, const MethodInfo* method)
{
{
m1772956182(__this, NULL);
return;
}
}
extern TypeInfo* String_t_TI_var;
extern TypeInfo* t3802381858_TI_var;
extern Il2CppCodeGenString* _stringLiteral146032809;
extern Il2CppCodeGenString* _stringLiteral645554989;
extern Il2CppCodeGenString* _stringLiteral3912495626;
extern const uint32_t m705559900_MetadataUsageId;
extern "C" void m705559900 (t2732610389 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m705559900_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
String_t* L_0 = __this->fg0();
IL2CPP_RUNTIME_CLASS_INIT(String_t_TI_var);
bool L_1 = m1256468773(NULL, L_0, NULL);
if (!L_1)
{
goto IL_0011;
}
}
{
return;
}
IL_0011:
{
String_t* L_2 = __this->fg0();
IL2CPP_RUNTIME_CLASS_INIT(String_t_TI_var);
String_t* L_3 = ((String_t_SFs*)String_t_TI_var->static_fields)->fg2();
IL2CPP_RUNTIME_CLASS_INIT(t3802381858_TI_var);
String_t* L_4 = m2658391113(NULL, L_2, _stringLiteral146032809, L_3, NULL);
__this->fs0(L_4);
String_t* L_5 = __this->fg0();
String_t* L_6 = ((String_t_SFs*)String_t_TI_var->static_fields)->fg2();
String_t* L_7 = m2658391113(NULL, L_5, _stringLiteral645554989, L_6, NULL);
__this->fs0(L_7);
String_t* L_8 = __this->fg0();
String_t* L_9 = ((String_t_SFs*)String_t_TI_var->static_fields)->fg2();
String_t* L_10 = m2658391113(NULL, L_8, _stringLiteral3912495626, L_9, NULL);
__this->fs0(L_10);
return;
}
}
extern "C" void m2323221949 (t2732610389 * __this, const MethodInfo* method)
{
{
m705559900(__this, NULL);
return;
}
}
extern "C" void m3764330697 (t2732610389 * __this, const MethodInfo* method)
{
{
m705559900(__this, NULL);
return;
}
}
extern TypeInfo* t2530496925_TI_var;
extern const MethodInfo* m825644024_MI_var;
extern const uint32_t m2413334847_MetadataUsageId;
extern "C" void m2413334847 (t3771143731 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2413334847_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t2530496925 * L_0 = (t2530496925 *)il2cpp_codegen_object_new(t2530496925_TI_var);
m825644024(L_0, m825644024_MI_var);
__this->fs0(L_0);
t2530496925 * L_1 = (t2530496925 *)il2cpp_codegen_object_new(t2530496925_TI_var);
m825644024(L_1, m825644024_MI_var);
__this->fs1(L_1);
t2530496925 * L_2 = (t2530496925 *)il2cpp_codegen_object_new(t2530496925_TI_var);
m825644024(L_2, m825644024_MI_var);
__this->fs2(L_2);
__this->fs3((bool)1);
m1772956182(__this, NULL);
return;
}
}
extern "C" void m1690187553 (t3771143731 * __this, const MethodInfo* method)
{
{
t2530496925 * L_0 = __this->fg0();
VirtActionInvoker0::Invoke(20 /* System.Void System.Collections.Generic.List`1<UnityEngine.Events.BaseInvokableCall>::Clear() */, L_0);
__this->fs3((bool)1);
return;
}
}
extern TypeInfo* t2732610389_TI_var;
extern const uint32_t m3363339247_MetadataUsageId;
extern "C" void m3363339247 (t4127144549 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3363339247_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t2732610389 * L_0 = (t2732610389 *)il2cpp_codegen_object_new(t2732610389_TI_var);
m4004594141(L_0, NULL);
__this->fs0(L_0);
__this->fs1(2);
m1772956182(__this, NULL);
return;
}
}
extern TypeInfo* t629136222_TI_var;
extern const MethodInfo* m334889691_MI_var;
extern const uint32_t m3119615256_MetadataUsageId;
extern "C" void m3119615256 (t3683860090 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3119615256_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
m1772956182(__this, NULL);
t629136222 * L_0 = (t629136222 *)il2cpp_codegen_object_new(t629136222_TI_var);
m334889691(L_0, m334889691_MI_var);
__this->fs0(L_0);
return;
}
}
extern TypeInfo* t11523773_TI_var;
extern const uint32_t m1715209183_MetadataUsageId;
extern "C" void m1715209183 (t2938797301 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m1715209183_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
__this->fs4(((t11523773*)SZArrayNew(t11523773_TI_var, (uint32_t)0)));
m199506446(__this, NULL);
return;
}
}
extern TypeInfo* t3771143731_TI_var;
extern TypeInfo* t3683860090_TI_var;
extern const uint32_t m199506446_MetadataUsageId;
extern "C" void m199506446 (t2174897510 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m199506446_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
__this->fs3((bool)1);
m1772956182(__this, NULL);
t3771143731 * L_0 = (t3771143731 *)il2cpp_codegen_object_new(t3771143731_TI_var);
m2413334847(L_0, NULL);
__this->fs0(L_0);
t3683860090 * L_1 = (t3683860090 *)il2cpp_codegen_object_new(t3683860090_TI_var);
m3119615256(L_1, NULL);
__this->fs1(L_1);
Type_t * L_2 = m2022236990(__this, NULL);
String_t* L_3 = VirtFuncInvoker0< String_t* >::Invoke(15 /* System.String System.Type::get_AssemblyQualifiedName() */, L_2);
__this->fs2(L_3);
return;
}
}
extern "C" void m1699382396 (t2174897510 * __this, const MethodInfo* method)
{
{
return;
}
}
extern "C" void m1605173738 (t2174897510 * __this, const MethodInfo* method)
{
{
m1636785090(__this, NULL);
Type_t * L_0 = m2022236990(__this, NULL);
String_t* L_1 = VirtFuncInvoker0< String_t* >::Invoke(15 /* System.String System.Type::get_AssemblyQualifiedName() */, L_0);
__this->fs2(L_1);
return;
}
}
extern "C" void m1636785090 (t2174897510 * __this, const MethodInfo* method)
{
{
t3771143731 * L_0 = __this->fg0();
m1690187553(L_0, NULL);
__this->fs3((bool)1);
return;
}
}
extern TypeInfo* String_t_TI_var;
extern Il2CppCodeGenString* _stringLiteral32;
extern const uint32_t m249191135_MetadataUsageId;
extern "C" String_t* m249191135 (t2174897510 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m249191135_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
String_t* L_0 = m2286807767(__this, NULL);
Type_t * L_1 = m2022236990(__this, NULL);
String_t* L_2 = VirtFuncInvoker0< String_t* >::Invoke(18 /* System.String System.Type::get_FullName() */, L_1);
IL2CPP_RUNTIME_CLASS_INIT(String_t_TI_var);
String_t* L_3 = m1825781833(NULL, L_0, _stringLiteral32, L_2, NULL);
return L_3;
}
}
extern "C" void m1394231890 (t2676812948 * __this, const MethodInfo* method)
{
{
m2985353781(__this, NULL);
return;
}
}
// Conversion methods for marshalling of: UnityEngine.Experimental.Director.FrameData
extern "C" void t4009178800_marshal_pinvoke(const t4009178800& unmarshaled, t4009178800_marshaled_pinvoke& marshaled)
{
marshaled.f0 = unmarshaled.fg0();
marshaled.f1 = unmarshaled.fg1();
marshaled.f2 = unmarshaled.fg2();
marshaled.f3 = unmarshaled.fg3();
}
extern "C" void t4009178800_marshal_pinvoke_back(const t4009178800_marshaled_pinvoke& marshaled, t4009178800& unmarshaled)
{
int32_t unmarshaled_m_UpdateId_temp = 0;
unmarshaled_m_UpdateId_temp = marshaled.f0;
unmarshaled.fs0(unmarshaled_m_UpdateId_temp);
double unmarshaled_m_Time_temp = 0.0;
unmarshaled_m_Time_temp = marshaled.f1;
unmarshaled.fs1(unmarshaled_m_Time_temp);
double unmarshaled_m_LastTime_temp = 0.0;
unmarshaled_m_LastTime_temp = marshaled.f2;
unmarshaled.fs2(unmarshaled_m_LastTime_temp);
double unmarshaled_m_TimeScale_temp = 0.0;
unmarshaled_m_TimeScale_temp = marshaled.f3;
unmarshaled.fs3(unmarshaled_m_TimeScale_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.Experimental.Director.FrameData
extern "C" void t4009178800_marshal_pinvoke_cleanup(t4009178800_marshaled_pinvoke& marshaled)
{
}
// Conversion methods for marshalling of: UnityEngine.Experimental.Director.FrameData
extern "C" void t4009178800_marshal_com(const t4009178800& unmarshaled, t4009178800_marshaled_com& marshaled)
{
marshaled.f0 = unmarshaled.fg0();
marshaled.f1 = unmarshaled.fg1();
marshaled.f2 = unmarshaled.fg2();
marshaled.f3 = unmarshaled.fg3();
}
extern "C" void t4009178800_marshal_com_back(const t4009178800_marshaled_com& marshaled, t4009178800& unmarshaled)
{
int32_t unmarshaled_m_UpdateId_temp = 0;
unmarshaled_m_UpdateId_temp = marshaled.f0;
unmarshaled.fs0(unmarshaled_m_UpdateId_temp);
double unmarshaled_m_Time_temp = 0.0;
unmarshaled_m_Time_temp = marshaled.f1;
unmarshaled.fs1(unmarshaled_m_Time_temp);
double unmarshaled_m_LastTime_temp = 0.0;
unmarshaled_m_LastTime_temp = marshaled.f2;
unmarshaled.fs2(unmarshaled_m_LastTime_temp);
double unmarshaled_m_TimeScale_temp = 0.0;
unmarshaled_m_TimeScale_temp = marshaled.f3;
unmarshaled.fs3(unmarshaled_m_TimeScale_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.Experimental.Director.FrameData
extern "C" void t4009178800_marshal_com_cleanup(t4009178800_marshaled_com& marshaled)
{
}
extern TypeInfo* IntPtr_t_TI_var;
extern const uint32_t m2241556995_MetadataUsageId;
extern "C" void m2241556995 (t3404354247 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2241556995_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
m1772956182(__this, NULL);
IntPtr_t L_0 = ((IntPtr_t_SFs*)IntPtr_t_TI_var->static_fields)->fg1();
__this->fs0(L_0);
int32_t L_1 = m3980506242(__this, NULL);
__this->fs1(L_1);
m3931021595(__this, NULL);
return;
}
}
extern TypeInfo* IntPtr_t_TI_var;
extern const uint32_t m3752126010_MetadataUsageId;
extern "C" void m3752126010 (t3404354247 * __this, bool p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3752126010_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
m1772956182(__this, NULL);
IntPtr_t L_0 = ((IntPtr_t_SFs*)IntPtr_t_TI_var->static_fields)->fg1();
__this->fs0(L_0);
int32_t L_1 = m3980506242(__this, NULL);
__this->fs1(L_1);
bool L_2 = p0;
if (!L_2)
{
goto IL_0029;
}
}
{
m3931021595(__this, NULL);
}
IL_0029:
{
return;
}
}
extern TypeInfo* IntPtr_t_TI_var;
extern const uint32_t m2747727607_MetadataUsageId;
extern "C" void m2747727607 (t3404354247 * __this, bool p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2747727607_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
m2094169144(__this, NULL);
IntPtr_t L_0 = ((IntPtr_t_SFs*)IntPtr_t_TI_var->static_fields)->fg1();
__this->fs0(L_0);
return;
}
}
extern "C" int32_t m1016415712 (t3404354247 * __this, const MethodInfo* method)
{
typedef int32_t (*m1016415712_ftn) (t3404354247 *);
static m1016415712_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1016415712_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Experimental.Director.Playable::GetUniqueIDInternal()");
return _il2cpp_icall_func(__this);
}
extern "C" bool m622693985 (Il2CppObject * __this , t3404354247 * p0, t3404354247 * p1, const MethodInfo* method)
{
{
t3404354247 * L_0 = p0;
t3404354247 * L_1 = p1;
bool L_2 = m1578187905(NULL, L_0, L_1, (-1), (-1), NULL);
return L_2;
}
}
extern Il2CppCodeGenString* _stringLiteral3398461467;
extern Il2CppCodeGenString* _stringLiteral3414061457;
extern const uint32_t m1578187905_MetadataUsageId;
extern "C" bool m1578187905 (Il2CppObject * __this , t3404354247 * p0, t3404354247 * p1, int32_t p2, int32_t p3, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m1578187905_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t3404354247 * L_0 = p0;
bool L_1 = m2318405566(NULL, L_0, _stringLiteral3398461467, NULL);
if (L_1)
{
goto IL_0022;
}
}
{
t3404354247 * L_2 = p1;
bool L_3 = m2318405566(NULL, L_2, _stringLiteral3414061457, NULL);
if (L_3)
{
goto IL_0022;
}
}
{
return (bool)0;
}
IL_0022:
{
t3404354247 * L_4 = p0;
bool L_5 = m3181167342(NULL, L_4, (t3404354247 *)NULL, NULL);
if (!L_5)
{
goto IL_003d;
}
}
{
t3404354247 * L_6 = p0;
int32_t L_7 = p2;
bool L_8 = m3596125390(L_6, L_7, (bool)1, NULL);
if (L_8)
{
goto IL_003d;
}
}
{
return (bool)0;
}
IL_003d:
{
t3404354247 * L_9 = p1;
int32_t L_10 = p3;
bool L_11 = m3596125390(L_9, L_10, (bool)1, NULL);
if (L_11)
{
goto IL_004c;
}
}
{
return (bool)0;
}
IL_004c:
{
t3404354247 * L_12 = p0;
t3404354247 * L_13 = p1;
int32_t L_14 = p2;
int32_t L_15 = p3;
bool L_16 = m3467855684(NULL, L_12, L_13, L_14, L_15, NULL);
return L_16;
}
}
extern Il2CppCodeGenString* _stringLiteral3414061457;
extern const uint32_t m3811503323_MetadataUsageId;
extern "C" void m3811503323 (Il2CppObject * __this , t3404354247 * p0, int32_t p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3811503323_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t3404354247 * L_0 = p0;
bool L_1 = m2318405566(NULL, L_0, _stringLiteral3414061457, NULL);
if (L_1)
{
goto IL_0011;
}
}
{
return;
}
IL_0011:
{
t3404354247 * L_2 = p0;
int32_t L_3 = p1;
bool L_4 = m1883207375(L_2, L_3, NULL);
if (L_4)
{
goto IL_001e;
}
}
{
return;
}
IL_001e:
{
t3404354247 * L_5 = p0;
int32_t L_6 = p1;
m216904862(NULL, L_5, L_6, NULL);
return;
}
}
extern "C" void m2094169144 (t3404354247 * __this, const MethodInfo* method)
{
typedef void (*m2094169144_ftn) (t3404354247 *);
static m2094169144_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2094169144_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Experimental.Director.Playable::ReleaseEnginePlayable()");
_il2cpp_icall_func(__this);
}
extern "C" void m3931021595 (t3404354247 * __this, const MethodInfo* method)
{
typedef void (*m3931021595_ftn) (t3404354247 *);
static m3931021595_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3931021595_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Experimental.Director.Playable::InstantiateEnginePlayable()");
_il2cpp_icall_func(__this);
}
extern "C" int32_t m3980506242 (t3404354247 * __this, const MethodInfo* method)
{
typedef int32_t (*m3980506242_ftn) (t3404354247 *);
static m3980506242_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3980506242_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Experimental.Director.Playable::GenerateUniqueId()");
return _il2cpp_icall_func(__this);
}
extern "C" bool m3751861498 (t3404354247 * __this, int32_t p0, float p1, const MethodInfo* method)
{
typedef bool (*m3751861498_ftn) (t3404354247 *, int32_t, float);
static m3751861498_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3751861498_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Experimental.Director.Playable::SetInputWeightInternal(System.Int32,System.Single)");
return _il2cpp_icall_func(__this, p0, p1);
}
extern "C" float m2277506695 (t3404354247 * __this, int32_t p0, const MethodInfo* method)
{
typedef float (*m2277506695_ftn) (t3404354247 *, int32_t);
static m2277506695_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2277506695_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Experimental.Director.Playable::GetInputWeightInternal(System.Int32)");
return _il2cpp_icall_func(__this, p0);
}
extern "C" double m4261299130 (t3404354247 * __this, const MethodInfo* method)
{
typedef double (*m4261299130_ftn) (t3404354247 *);
static m4261299130_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m4261299130_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Experimental.Director.Playable::get_time()");
return _il2cpp_icall_func(__this);
}
extern "C" void m4095539287 (t3404354247 * __this, double p0, const MethodInfo* method)
{
typedef void (*m4095539287_ftn) (t3404354247 *, double);
static m4095539287_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m4095539287_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Experimental.Director.Playable::set_time(System.Double)");
_il2cpp_icall_func(__this, p0);
}
extern "C" int32_t m3392280896 (t3404354247 * __this, const MethodInfo* method)
{
typedef int32_t (*m3392280896_ftn) (t3404354247 *);
static m3392280896_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3392280896_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Experimental.Director.Playable::get_state()");
return _il2cpp_icall_func(__this);
}
extern "C" void m2851443923 (t3404354247 * __this, int32_t p0, const MethodInfo* method)
{
typedef void (*m2851443923_ftn) (t3404354247 *, int32_t);
static m2851443923_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2851443923_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Experimental.Director.Playable::set_state(UnityEngine.Experimental.Director.PlayState)");
_il2cpp_icall_func(__this, p0);
}
extern "C" bool m3467855684 (Il2CppObject * __this , t3404354247 * p0, t3404354247 * p1, int32_t p2, int32_t p3, const MethodInfo* method)
{
typedef bool (*m3467855684_ftn) (t3404354247 *, t3404354247 *, int32_t, int32_t);
static m3467855684_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3467855684_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Experimental.Director.Playable::ConnectInternal(UnityEngine.Experimental.Director.Playable,UnityEngine.Experimental.Director.Playable,System.Int32,System.Int32)");
return _il2cpp_icall_func(p0, p1, p2, p3);
}
extern "C" void m216904862 (Il2CppObject * __this , t3404354247 * p0, int32_t p1, const MethodInfo* method)
{
typedef void (*m216904862_ftn) (t3404354247 *, int32_t);
static m216904862_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m216904862_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Experimental.Director.Playable::DisconnectInternal(UnityEngine.Experimental.Director.Playable,System.Int32)");
_il2cpp_icall_func(p0, p1);
}
extern "C" t3404354247 * m777009268 (t3404354247 * __this, int32_t p0, const MethodInfo* method)
{
typedef t3404354247 * (*m777009268_ftn) (t3404354247 *, int32_t);
static m777009268_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m777009268_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Experimental.Director.Playable::GetInput(System.Int32)");
return _il2cpp_icall_func(__this, p0);
}
extern "C" t2032975422* m1899129588 (t3404354247 * __this, const MethodInfo* method)
{
typedef t2032975422* (*m1899129588_ftn) (t3404354247 *);
static m1899129588_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1899129588_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Experimental.Director.Playable::GetInputs()");
return _il2cpp_icall_func(__this);
}
extern "C" int32_t m3038792623 (t3404354247 * __this, const MethodInfo* method)
{
typedef int32_t (*m3038792623_ftn) (t3404354247 *);
static m3038792623_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3038792623_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Experimental.Director.Playable::get_inputCount()");
return _il2cpp_icall_func(__this);
}
extern "C" int32_t m2666149542 (t3404354247 * __this, const MethodInfo* method)
{
typedef int32_t (*m2666149542_ftn) (t3404354247 *);
static m2666149542_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2666149542_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Experimental.Director.Playable::get_outputCount()");
return _il2cpp_icall_func(__this);
}
extern "C" void m4141811767 (t3404354247 * __this, const MethodInfo* method)
{
typedef void (*m4141811767_ftn) (t3404354247 *);
static m4141811767_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m4141811767_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Experimental.Director.Playable::ClearInputs()");
_il2cpp_icall_func(__this);
}
extern "C" t3404354247 * m1666786747 (t3404354247 * __this, int32_t p0, const MethodInfo* method)
{
typedef t3404354247 * (*m1666786747_ftn) (t3404354247 *, int32_t);
static m1666786747_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1666786747_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Experimental.Director.Playable::GetOutput(System.Int32)");
return _il2cpp_icall_func(__this, p0);
}
extern "C" t2032975422* m3506315017 (t3404354247 * __this, const MethodInfo* method)
{
typedef t2032975422* (*m3506315017_ftn) (t3404354247 *);
static m3506315017_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3506315017_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Experimental.Director.Playable::GetOutputs()");
return _il2cpp_icall_func(__this);
}
extern "C" void m2169096151 (t3404354247 * __this, Il2CppObject * p0, const MethodInfo* method)
{
typedef void (*m2169096151_ftn) (t3404354247 *, Il2CppObject *);
static m2169096151_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2169096151_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Experimental.Director.Playable::GetInputsInternal(System.Object)");
_il2cpp_icall_func(__this, p0);
}
extern "C" void m891872506 (t3404354247 * __this, Il2CppObject * p0, const MethodInfo* method)
{
typedef void (*m891872506_ftn) (t3404354247 *, Il2CppObject *);
static m891872506_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m891872506_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Experimental.Director.Playable::GetOutputsInternal(System.Object)");
_il2cpp_icall_func(__this, p0);
}
extern "C" void m175426431 (t3404354247 * __this, const MethodInfo* method)
{
t1967233988 * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
t1967233988 * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
IL_0000:
try
{ // begin try (depth: 1)
m2747727607(__this, (bool)0, NULL);
IL2CPP_LEAVE(0x13, FINALLY_000c);
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t1967233988 *)e.ex;
goto FINALLY_000c;
}
FINALLY_000c:
{ // begin finally (depth: 1)
m3027285644(__this, NULL);
IL2CPP_END_FINALLY(12)
} // end finally (depth: 1)
IL2CPP_CLEANUP(12)
{
IL2CPP_JUMP_TBL(0x13, IL_0013)
IL2CPP_RETHROW_IF_UNHANDLED(t1967233988 *)
}
IL_0013:
{
return;
}
}
extern "C" void m2255939968 (t3404354247 * __this, const MethodInfo* method)
{
{
m2747727607(__this, (bool)1, NULL);
m1160635446(NULL, __this, NULL);
return;
}
}
extern TypeInfo* t3404354247_TI_var;
extern const uint32_t m1149042830_MetadataUsageId;
extern "C" bool m1149042830 (t3404354247 * __this, Il2CppObject * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m1149042830_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
Il2CppObject * L_0 = p0;
bool L_1 = m2113594311(NULL, __this, ((t3404354247 *)IsInstClass(L_0, t3404354247_TI_var)), NULL);
return L_1;
}
}
extern "C" int32_t m3165087730 (t3404354247 * __this, const MethodInfo* method)
{
{
int32_t L_0 = __this->fg1();
return L_0;
}
}
extern "C" bool m2113594311 (Il2CppObject * __this , t3404354247 * p0, t3404354247 * p1, const MethodInfo* method)
{
bool V_0 = false;
bool V_1 = false;
int32_t G_B3_0 = 0;
int32_t G_B6_0 = 0;
{
t3404354247 * L_0 = p0;
if (!L_0)
{
goto IL_0011;
}
}
{
t3404354247 * L_1 = p0;
bool L_2 = m1365031800(NULL, L_1, NULL);
G_B3_0 = ((((int32_t)L_2) == ((int32_t)0))? 1 : 0);
goto IL_0012;
}
IL_0011:
{
G_B3_0 = 1;
}
IL_0012:
{
V_0 = (bool)G_B3_0;
t3404354247 * L_3 = p1;
if (!L_3)
{
goto IL_0024;
}
}
{
t3404354247 * L_4 = p1;
bool L_5 = m1365031800(NULL, L_4, NULL);
G_B6_0 = ((((int32_t)L_5) == ((int32_t)0))? 1 : 0);
goto IL_0025;
}
IL_0024:
{
G_B6_0 = 1;
}
IL_0025:
{
V_1 = (bool)G_B6_0;
bool L_6 = V_1;
if (!L_6)
{
goto IL_0034;
}
}
{
bool L_7 = V_0;
if (!L_7)
{
goto IL_0034;
}
}
{
return (bool)1;
}
IL_0034:
{
bool L_8 = V_1;
if (!L_8)
{
goto IL_0044;
}
}
{
t3404354247 * L_9 = p0;
bool L_10 = m1365031800(NULL, L_9, NULL);
return (bool)((((int32_t)L_10) == ((int32_t)0))? 1 : 0);
}
IL_0044:
{
bool L_11 = V_0;
if (!L_11)
{
goto IL_0054;
}
}
{
t3404354247 * L_12 = p1;
bool L_13 = m1365031800(NULL, L_12, NULL);
return (bool)((((int32_t)L_13) == ((int32_t)0))? 1 : 0);
}
IL_0054:
{
t3404354247 * L_14 = p0;
int32_t L_15 = m1016415712(L_14, NULL);
t3404354247 * L_16 = p1;
int32_t L_17 = m1016415712(L_16, NULL);
return (bool)((((int32_t)L_15) == ((int32_t)L_17))? 1 : 0);
}
}
extern TypeInfo* IntPtr_t_TI_var;
extern const uint32_t m1365031800_MetadataUsageId;
extern "C" bool m1365031800 (Il2CppObject * __this , t3404354247 * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m1365031800_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t3404354247 * L_0 = p0;
IntPtr_t L_1 = L_0->fg0();
IntPtr_t L_2 = ((IntPtr_t_SFs*)IntPtr_t_TI_var->static_fields)->fg1();
bool L_3 = m10053967(NULL, L_1, L_2, NULL);
return L_3;
}
}
extern TypeInfo* String_t_TI_var;
extern TypeInfo* t3216235232_TI_var;
extern Il2CppCodeGenString* _stringLiteral127765298;
extern Il2CppCodeGenString* _stringLiteral2023903933;
extern const uint32_t m2318405566_MetadataUsageId;
extern "C" bool m2318405566 (Il2CppObject * __this , t3404354247 * p0, String_t* p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2318405566_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t3404354247 * L_0 = p0;
bool L_1 = m3091846835(NULL, L_0, (t3404354247 *)NULL, NULL);
if (!L_1)
{
goto IL_0022;
}
}
{
String_t* L_2 = p1;
IL2CPP_RUNTIME_CLASS_INIT(String_t_TI_var);
String_t* L_3 = m1825781833(NULL, _stringLiteral127765298, L_2, _stringLiteral2023903933, NULL);
t3216235232 * L_4 = (t3216235232 *)il2cpp_codegen_object_new(t3216235232_TI_var);
m2208732056(L_4, L_3, NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_4);
}
IL_0022:
{
return (bool)1;
}
}
extern "C" bool m1883207375 (t3404354247 * __this, int32_t p0, const MethodInfo* method)
{
{
int32_t L_0 = p0;
bool L_1 = m3596125390(__this, L_0, (bool)0, NULL);
return L_1;
}
}
extern TypeInfo* t3760259642_TI_var;
extern TypeInfo* t11523773_TI_var;
extern TypeInfo* t2847414787_TI_var;
extern TypeInfo* String_t_TI_var;
extern Il2CppCodeGenString* _stringLiteral3989796523;
extern Il2CppCodeGenString* _stringLiteral3696735736;
extern Il2CppCodeGenString* _stringLiteral2565957228;
extern Il2CppCodeGenString* _stringLiteral1317;
extern const uint32_t m3596125390_MetadataUsageId;
extern "C" bool m3596125390 (t3404354247 * __this, int32_t p0, bool p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3596125390_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t2032975422* V_0 = NULL;
{
int32_t L_0 = p0;
if ((!(((uint32_t)L_0) == ((uint32_t)(-1)))))
{
goto IL_000f;
}
}
{
bool L_1 = p1;
if (!L_1)
{
goto IL_000f;
}
}
{
return (bool)1;
}
IL_000f:
{
int32_t L_2 = p0;
if ((((int32_t)L_2) >= ((int32_t)0)))
{
goto IL_0021;
}
}
{
t3760259642 * L_3 = (t3760259642 *)il2cpp_codegen_object_new(t3760259642_TI_var);
m1621772274(L_3, _stringLiteral3989796523, NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_3);
}
IL_0021:
{
t2032975422* L_4 = m1899129588(__this, NULL);
V_0 = L_4;
t2032975422* L_5 = V_0;
int32_t L_6 = p0;
if ((((int32_t)(((int32_t)((int32_t)(((Il2CppArray *)L_5)->max_length))))) > ((int32_t)L_6)))
{
goto IL_006e;
}
}
{
t11523773* L_7 = ((t11523773*)SZArrayNew(t11523773_TI_var, (uint32_t)5));
ArrayElementTypeCheck (L_7, _stringLiteral3696735736);
(L_7)->SetAt(static_cast<il2cpp_array_size_t>(0), (Il2CppObject *)_stringLiteral3696735736);
t11523773* L_8 = L_7;
int32_t L_9 = p0;
int32_t L_10 = L_9;
Il2CppObject * L_11 = Box(t2847414787_TI_var, &L_10);
ArrayElementTypeCheck (L_8, L_11);
(L_8)->SetAt(static_cast<il2cpp_array_size_t>(1), (Il2CppObject *)L_11);
t11523773* L_12 = L_8;
ArrayElementTypeCheck (L_12, _stringLiteral2565957228);
(L_12)->SetAt(static_cast<il2cpp_array_size_t>(2), (Il2CppObject *)_stringLiteral2565957228);
t11523773* L_13 = L_12;
t2032975422* L_14 = V_0;
int32_t L_15 = (((int32_t)((int32_t)(((Il2CppArray *)L_14)->max_length))));
Il2CppObject * L_16 = Box(t2847414787_TI_var, &L_15);
ArrayElementTypeCheck (L_13, L_16);
(L_13)->SetAt(static_cast<il2cpp_array_size_t>(3), (Il2CppObject *)L_16);
t11523773* L_17 = L_13;
ArrayElementTypeCheck (L_17, _stringLiteral1317);
(L_17)->SetAt(static_cast<il2cpp_array_size_t>(4), (Il2CppObject *)_stringLiteral1317);
IL2CPP_RUNTIME_CLASS_INIT(String_t_TI_var);
String_t* L_18 = m3016520001(NULL, L_17, NULL);
t3760259642 * L_19 = (t3760259642 *)il2cpp_codegen_object_new(t3760259642_TI_var);
m1621772274(L_19, L_18, NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_19);
}
IL_006e:
{
return (bool)1;
}
}
extern "C" float m837530218 (t3404354247 * __this, int32_t p0, const MethodInfo* method)
{
{
int32_t L_0 = p0;
bool L_1 = m1883207375(__this, L_0, NULL);
if (!L_1)
{
goto IL_0014;
}
}
{
int32_t L_2 = p0;
float L_3 = m2277506695(__this, L_2, NULL);
return L_3;
}
IL_0014:
{
return (-1.0f);
}
}
extern "C" bool m2698917277 (t3404354247 * __this, int32_t p0, float p1, const MethodInfo* method)
{
{
int32_t L_0 = p0;
bool L_1 = m1883207375(__this, L_0, NULL);
if (!L_1)
{
goto IL_0015;
}
}
{
int32_t L_2 = p0;
float L_3 = p1;
bool L_4 = m3751861498(__this, L_2, L_3, NULL);
return L_4;
}
IL_0015:
{
return (bool)0;
}
}
extern "C" void m1527871507 (t3404354247 * __this, t4201313216 * p0, const MethodInfo* method)
{
{
t4201313216 * L_0 = p0;
VirtActionInvoker0::Invoke(20 /* System.Void System.Collections.Generic.List`1<UnityEngine.Experimental.Director.Playable>::Clear() */, L_0);
t4201313216 * L_1 = p0;
m2169096151(__this, L_1, NULL);
return;
}
}
extern "C" void m3459436598 (t3404354247 * __this, t4201313216 * p0, const MethodInfo* method)
{
{
t4201313216 * L_0 = p0;
VirtActionInvoker0::Invoke(20 /* System.Void System.Collections.Generic.List`1<UnityEngine.Experimental.Director.Playable>::Clear() */, L_0);
t4201313216 * L_1 = p0;
m891872506(__this, L_1, NULL);
return;
}
}
extern "C" void m497491591 (t3404354247 * __this, t4009178800 p0, const MethodInfo* method)
{
{
return;
}
}
extern "C" void m2039333501 (t3404354247 * __this, t4009178800 p0, Il2CppObject * p1, const MethodInfo* method)
{
{
return;
}
}
extern "C" void m3177236154 (t3404354247 * __this, float p0, const MethodInfo* method)
{
{
return;
}
}
extern "C" void m3539986029 (t3404354247 * __this, int32_t p0, const MethodInfo* method)
{
{
return;
}
}
extern "C" bool m3091846835 (Il2CppObject * __this , t3404354247 * p0, t3404354247 * p1, const MethodInfo* method)
{
{
t3404354247 * L_0 = p0;
t3404354247 * L_1 = p1;
bool L_2 = m2113594311(NULL, L_0, L_1, NULL);
return L_2;
}
}
extern "C" bool m3181167342 (Il2CppObject * __this , t3404354247 * p0, t3404354247 * p1, const MethodInfo* method)
{
{
t3404354247 * L_0 = p0;
t3404354247 * L_1 = p1;
bool L_2 = m2113594311(NULL, L_0, L_1, NULL);
return (bool)((((int32_t)L_2) == ((int32_t)0))? 1 : 0);
}
}
extern "C" bool m2513159357 (Il2CppObject * __this , t3404354247 * p0, const MethodInfo* method)
{
{
t3404354247 * L_0 = p0;
bool L_1 = m2113594311(NULL, L_0, (t3404354247 *)NULL, NULL);
return (bool)((((int32_t)L_1) == ((int32_t)0))? 1 : 0);
}
}
extern TypeInfo* t1525081276_TI_var;
extern const MethodInfo* m2936931053_MI_var;
extern const uint32_t m1357223658_MetadataUsageId;
extern "C" void m1357223658 (Il2CppObject * __this , t1525081276 * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m1357223658_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t1673533981 * V_0 = NULL;
{
t1673533981 * L_0 = ((t1525081276_SFs*)t1525081276_TI_var->static_fields)->fg2();
V_0 = L_0;
t1673533981 * L_1 = V_0;
if (!L_1)
{
goto IL_0013;
}
}
{
t1673533981 * L_2 = V_0;
t1525081276 * L_3 = p0;
m2936931053(L_2, L_3, m2936931053_MI_var);
}
IL_0013:
{
t1525081276 * L_4 = p0;
t401089076 * L_5 = L_4->fg3();
if (!L_5)
{
goto IL_0029;
}
}
{
t1525081276 * L_6 = p0;
t401089076 * L_7 = L_6->fg3();
m3507488951(L_7, NULL);
}
IL_0029:
{
return;
}
}
extern "C" void m2909762077 (t401089076 * __this, Il2CppObject * p0, IntPtr_t p1, const MethodInfo* method)
{
__this->fs0((methodPointerType)((MethodInfo*)p1.fg0())->method);
__this->fs3(p1);
__this->fs2(p0);
}
extern "C" void m3507488951 (t401089076 * __this, const MethodInfo* method)
{
if(__this->fg9() != NULL)
{
m3507488951((t401089076 *)__this->fg9(), method);
}
il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found((MethodInfo*)(__this->fg3().fg0()));
bool ___methodIsStatic = MethodIsStatic((MethodInfo*)(__this->fg3().fg0()));
if ((__this->fg2() != NULL || MethodHasParameters((MethodInfo*)(__this->fg3().fg0()))) && ___methodIsStatic)
{
typedef void (*FunctionPointerType) (Il2CppObject *, void* __this, const MethodInfo* method);
((FunctionPointerType)__this->fg0())(NULL,il2cpp_codegen_get_delegate_this(__this),(MethodInfo*)(__this->fg3().fg0()));
}
else
{
typedef void (*FunctionPointerType) (void* __this, const MethodInfo* method);
((FunctionPointerType)__this->fg0())(il2cpp_codegen_get_delegate_this(__this),(MethodInfo*)(__this->fg3().fg0()));
}
}
extern "C" void pinvoke_delegate_wrapper_t401089076(Il2CppObject* delegate)
{
typedef void (STDCALL *native_function_ptr_type)();
native_function_ptr_type _il2cpp_pinvoke_func = ((native_function_ptr_type)((Il2CppDelegate*)delegate)->method->method);
// Native function invocation
_il2cpp_pinvoke_func();
}
extern "C" Il2CppObject * m2984345076 (t401089076 * __this, t1363551830 * p0, Il2CppObject * p1, const MethodInfo* method)
{
void *__d_args[1] = {0};
return (Il2CppObject *)il2cpp_delegate_begin_invoke((Il2CppDelegate*)__this, __d_args, (Il2CppDelegate*)p0, (Il2CppObject*)p1);
}
extern "C" void m2078440109 (t401089076 * __this, Il2CppObject * p0, const MethodInfo* method)
{
il2cpp_delegate_end_invoke((Il2CppAsyncResult*) p0, 0);
}
extern "C" t2126946602 * m1004814461 (t4012695102 * __this, Type_t * p0, const MethodInfo* method)
{
typedef t2126946602 * (*m1004814461_ftn) (t4012695102 *, Type_t *);
static m1004814461_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1004814461_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GameObject::GetComponent(System.Type)");
return _il2cpp_icall_func(__this, p0);
}
extern "C" t2126946602 * m1490154500 (t4012695102 * __this, Type_t * p0, bool p1, const MethodInfo* method)
{
typedef t2126946602 * (*m1490154500_ftn) (t4012695102 *, Type_t *, bool);
static m1490154500_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1490154500_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GameObject::GetComponentInChildren(System.Type,System.Boolean)");
return _il2cpp_icall_func(__this, p0, p1);
}
extern "C" t2126946602 * m434474382 (t4012695102 * __this, Type_t * p0, const MethodInfo* method)
{
typedef t2126946602 * (*m434474382_ftn) (t4012695102 *, Type_t *);
static m434474382_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m434474382_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GameObject::GetComponentInParent(System.Type)");
return _il2cpp_icall_func(__this, p0);
}
extern TypeInfo* t552366831_TI_var;
extern const uint32_t m1126578334_MetadataUsageId;
extern "C" t552366831* m1126578334 (t4012695102 * __this, Type_t * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m1126578334_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
Type_t * L_0 = p0;
Il2CppArray * L_1 = m181453881(__this, L_0, (bool)0, (bool)0, (bool)1, (bool)0, NULL, NULL);
return ((t552366831*)Castclass(L_1, t552366831_TI_var));
}
}
extern TypeInfo* t552366831_TI_var;
extern const uint32_t m305836803_MetadataUsageId;
extern "C" t552366831* m305836803 (t4012695102 * __this, Type_t * p0, bool p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m305836803_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
Type_t * L_0 = p0;
bool L_1 = p1;
Il2CppArray * L_2 = m181453881(__this, L_0, (bool)0, (bool)1, L_1, (bool)0, NULL, NULL);
return ((t552366831*)Castclass(L_2, t552366831_TI_var));
}
}
extern TypeInfo* t552366831_TI_var;
extern const uint32_t m521317102_MetadataUsageId;
extern "C" t552366831* m521317102 (t4012695102 * __this, Type_t * p0, bool p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m521317102_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
Type_t * L_0 = p0;
bool L_1 = p1;
Il2CppArray * L_2 = m181453881(__this, L_0, (bool)0, (bool)1, L_1, (bool)1, NULL, NULL);
return ((t552366831*)Castclass(L_2, t552366831_TI_var));
}
}
extern "C" Il2CppArray * m181453881 (t4012695102 * __this, Type_t * p0, bool p1, bool p2, bool p3, bool p4, Il2CppObject * p5, const MethodInfo* method)
{
typedef Il2CppArray * (*m181453881_ftn) (t4012695102 *, Type_t *, bool, bool, bool, bool, Il2CppObject *);
static m181453881_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m181453881_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GameObject::GetComponentsInternal(System.Type,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Object)");
return _il2cpp_icall_func(__this, p0, p1, p2, p3, p4, p5);
}
extern "C" String_t* m211612200 (t4012695102 * __this, const MethodInfo* method)
{
typedef String_t* (*m211612200_ftn) (t4012695102 *);
static m211612200_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m211612200_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GameObject::get_tag()");
return _il2cpp_icall_func(__this);
}
extern "C" void m859036203 (t4012695102 * __this, String_t* p0, const MethodInfo* method)
{
typedef void (*m859036203_ftn) (t4012695102 *, String_t*);
static m859036203_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m859036203_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GameObject::set_tag(System.String)");
_il2cpp_icall_func(__this, p0);
}
extern "C" void m423373689 (t4012695102 * __this, String_t* p0, Il2CppObject * p1, int32_t p2, const MethodInfo* method)
{
typedef void (*m423373689_ftn) (t4012695102 *, String_t*, Il2CppObject *, int32_t);
static m423373689_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m423373689_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GameObject::SendMessage(System.String,System.Object,UnityEngine.SendMessageOptions)");
_il2cpp_icall_func(__this, p0, p1, p2);
}
extern "C" void m3068495933 (t1677180829 * __this, const MethodInfo* method)
{
{
m1772956182(__this, NULL);
m2544372343(__this, NULL);
return;
}
}
extern "C" void m2544372343 (t1677180829 * __this, const MethodInfo* method)
{
typedef void (*m2544372343_ftn) (t1677180829 *);
static m2544372343_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2544372343_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Gradient::Init()");
_il2cpp_icall_func(__this);
}
extern "C" void m850820223 (t1677180829 * __this, const MethodInfo* method)
{
typedef void (*m850820223_ftn) (t1677180829 *);
static m850820223_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m850820223_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Gradient::Cleanup()");
_il2cpp_icall_func(__this);
}
extern "C" void m3875885829 (t1677180829 * __this, const MethodInfo* method)
{
t1967233988 * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
t1967233988 * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
IL_0000:
try
{ // begin try (depth: 1)
m850820223(__this, NULL);
IL2CPP_LEAVE(0x12, FINALLY_000b);
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t1967233988 *)e.ex;
goto FINALLY_000b;
}
FINALLY_000b:
{ // begin finally (depth: 1)
m3027285644(__this, NULL);
IL2CPP_END_FINALLY(11)
} // end finally (depth: 1)
IL2CPP_CLEANUP(11)
{
IL2CPP_JUMP_TBL(0x12, IL_0012)
IL2CPP_RETHROW_IF_UNHANDLED(t1967233988 *)
}
IL_0012:
{
return;
}
}
// Conversion methods for marshalling of: UnityEngine.Gradient
extern "C" void t1677180829_marshal_pinvoke(const t1677180829& unmarshaled, t1677180829_marshaled_pinvoke& marshaled)
{
marshaled.f0 = reinterpret_cast<intptr_t>((unmarshaled.fg0()).fg0());
}
extern "C" void t1677180829_marshal_pinvoke_back(const t1677180829_marshaled_pinvoke& marshaled, t1677180829& unmarshaled)
{
IntPtr_t unmarshaled_m_Ptr_temp;
memset(&unmarshaled_m_Ptr_temp, 0, sizeof(unmarshaled_m_Ptr_temp));
IntPtr_t unmarshaled_m_Ptr_temp_temp;
unmarshaled_m_Ptr_temp_temp.set_m_value_0(reinterpret_cast<void*>((intptr_t)marshaled.f0));
unmarshaled_m_Ptr_temp = unmarshaled_m_Ptr_temp_temp;
unmarshaled.fs0(unmarshaled_m_Ptr_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.Gradient
extern "C" void t1677180829_marshal_pinvoke_cleanup(t1677180829_marshaled_pinvoke& marshaled)
{
}
// Conversion methods for marshalling of: UnityEngine.Gradient
extern "C" void t1677180829_marshal_com(const t1677180829& unmarshaled, t1677180829_marshaled_com& marshaled)
{
marshaled.f0 = reinterpret_cast<intptr_t>((unmarshaled.fg0()).fg0());
}
extern "C" void t1677180829_marshal_com_back(const t1677180829_marshaled_com& marshaled, t1677180829& unmarshaled)
{
IntPtr_t unmarshaled_m_Ptr_temp;
memset(&unmarshaled_m_Ptr_temp, 0, sizeof(unmarshaled_m_Ptr_temp));
IntPtr_t unmarshaled_m_Ptr_temp_temp;
unmarshaled_m_Ptr_temp_temp.set_m_value_0(reinterpret_cast<void*>((intptr_t)marshaled.f0));
unmarshaled_m_Ptr_temp = unmarshaled_m_Ptr_temp_temp;
unmarshaled.fs0(unmarshaled_m_Ptr_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.Gradient
extern "C" void t1677180829_marshal_com_cleanup(t1677180829_marshaled_com& marshaled)
{
}
extern TypeInfo* t1522956648_TI_var;
extern TypeInfo* t2344941421_TI_var;
extern TypeInfo* t339033936_TI_var;
extern Il2CppCodeGenString* _stringLiteral66987;
extern Il2CppCodeGenString* _stringLiteral1449353389;
extern Il2CppCodeGenString* _stringLiteral2510530420;
extern Il2CppCodeGenString* _stringLiteral2351634872;
extern Il2CppCodeGenString* _stringLiteral2479187201;
extern Il2CppCodeGenString* _stringLiteral3083430774;
extern Il2CppCodeGenString* _stringLiteral66348818;
extern const uint32_t m1345698031_MetadataUsageId;
extern "C" void m1345698031 (Il2CppObject * __this , const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m1345698031_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
((t1522956648_SFs*)t1522956648_TI_var->static_fields)->fs0((10.0f));
((t1522956648_SFs*)t1522956648_TI_var->static_fields)->fs1((-1));
int32_t L_0 = m471729487(_stringLiteral66987, NULL);
((t1522956648_SFs*)t1522956648_TI_var->static_fields)->fs2(L_0);
int32_t L_1 = m471729487(_stringLiteral1449353389, NULL);
((t1522956648_SFs*)t1522956648_TI_var->static_fields)->fs3(L_1);
int32_t L_2 = m471729487(_stringLiteral2510530420, NULL);
((t1522956648_SFs*)t1522956648_TI_var->static_fields)->fs4(L_2);
int32_t L_3 = m471729487(_stringLiteral2351634872, NULL);
((t1522956648_SFs*)t1522956648_TI_var->static_fields)->fs5(L_3);
int32_t L_4 = m471729487(_stringLiteral2479187201, NULL);
((t1522956648_SFs*)t1522956648_TI_var->static_fields)->fs6(L_4);
int32_t L_5 = m471729487(_stringLiteral3083430774, NULL);
((t1522956648_SFs*)t1522956648_TI_var->static_fields)->fs7(L_5);
int32_t L_6 = m471729487(_stringLiteral66348818, NULL);
((t1522956648_SFs*)t1522956648_TI_var->static_fields)->fs8(L_6);
t2344941421 * L_7 = (t2344941421 *)il2cpp_codegen_object_new(t2344941421_TI_var);
m2328546233(L_7, NULL);
((t1522956648_SFs*)t1522956648_TI_var->static_fields)->fs10(L_7);
IL2CPP_RUNTIME_CLASS_INIT(t339033936_TI_var);
t339033936 L_8 = m1812131422(NULL, NULL);
m3820512796(NULL, L_8, NULL);
return;
}
}
extern TypeInfo* t1522956648_TI_var;
extern const uint32_t m3820512796_MetadataUsageId;
extern "C" void m3820512796 (Il2CppObject * __this , t339033936 p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3820512796_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t339033936 L_0 = p0;
IL2CPP_RUNTIME_CLASS_INIT(t1522956648_TI_var);
((t1522956648_SFs*)t1522956648_TI_var->static_fields)->fs11(L_0);
return;
}
}
extern TypeInfo* t1366332446_TI_var;
extern TypeInfo* t1522956648_TI_var;
extern const uint32_t m1213959601_MetadataUsageId;
extern "C" void m1213959601 (Il2CppObject * __this , t2614611333 * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m1213959601_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(t1366332446_TI_var);
m640002012(NULL, NULL);
t2614611333 * L_0 = p0;
IL2CPP_RUNTIME_CLASS_INIT(t1522956648_TI_var);
m800823745(NULL, L_0, NULL);
return;
}
}
extern TypeInfo* t1366332446_TI_var;
extern TypeInfo* t1522956648_TI_var;
extern const uint32_t m4001454842_MetadataUsageId;
extern "C" t2614611333 * m4001454842 (Il2CppObject * __this , const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m4001454842_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(t1366332446_TI_var);
m640002012(NULL, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1522956648_TI_var);
t2614611333 * L_0 = ((t1522956648_SFs*)t1522956648_TI_var->static_fields)->fg9();
return L_0;
}
}
extern TypeInfo* t1366332446_TI_var;
extern TypeInfo* t1522956648_TI_var;
extern const uint32_t m800823745_MetadataUsageId;
extern "C" void m800823745 (Il2CppObject * __this , t2614611333 * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m800823745_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t2614611333 * L_0 = p0;
bool L_1 = m2106766291(NULL, L_0, NULL);
if (L_1)
{
goto IL_0012;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t1366332446_TI_var);
t2614611333 * L_2 = m3151786562(NULL, NULL);
p0 = L_2;
}
IL_0012:
{
t2614611333 * L_3 = p0;
IL2CPP_RUNTIME_CLASS_INIT(t1522956648_TI_var);
((t1522956648_SFs*)t1522956648_TI_var->static_fields)->fs9(L_3);
t2614611333 * L_4 = p0;
m174297994(L_4, NULL);
return;
}
}
extern TypeInfo* t1366332446_TI_var;
extern TypeInfo* t2432841515_TI_var;
extern TypeInfo* t1522956648_TI_var;
extern const uint32_t m885093907_MetadataUsageId;
extern "C" bool m885093907 (Il2CppObject * __this , t1525428817 p0, String_t* p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m885093907_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(t1366332446_TI_var);
m640002012(NULL, NULL);
t1525428817 L_0 = p0;
String_t* L_1 = p1;
IL2CPP_RUNTIME_CLASS_INIT(t2432841515_TI_var);
t2432841515 * L_2 = m2857440895(NULL, L_1, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1522956648_TI_var);
t2614611333 * L_3 = ((t1522956648_SFs*)t1522956648_TI_var->static_fields)->fg9();
t1006925219 * L_4 = m3628017756(L_3, NULL);
IntPtr_t L_5 = L_4->fg0();
bool L_6 = m2194494269(NULL, L_0, L_2, L_5, NULL);
return L_6;
}
}
extern TypeInfo* t1596329428_TI_var;
extern TypeInfo* t1522956648_TI_var;
extern TypeInfo* t1890718142_TI_var;
extern const uint32_t m2260338804_MetadataUsageId;
extern "C" void m2260338804 (Il2CppObject * __this , t999919624 * p0, int32_t p1, t2614611333 * p2, int32_t p3, float p4, float p5, t1006925219 * p6, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2260338804_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t2614611333 * V_0 = NULL;
t1890718142* V_1 = NULL;
{
int32_t L_0 = p1;
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
m801008209(NULL, L_0, (bool)1, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1522956648_TI_var);
t2614611333 * L_1 = m4001454842(NULL, NULL);
V_0 = L_1;
t1590224583 * L_2 = m238587645(NULL, NULL);
int32_t L_3 = m2209939250(L_2, NULL);
if ((!(((uint32_t)L_3) == ((uint32_t)8))))
{
goto IL_0056;
}
}
{
int32_t L_4 = p3;
if (!L_4)
{
goto IL_004d;
}
}
{
t1890718142* L_5 = ((t1890718142*)SZArrayNew(t1890718142_TI_var, (uint32_t)2));
float L_6 = p4;
t3151226183 * L_7 = m2259621411(NULL, L_6, NULL);
ArrayElementTypeCheck (L_5, L_7);
(L_5)->SetAt(static_cast<il2cpp_array_size_t>(0), (t3151226183 *)L_7);
t1890718142* L_8 = L_5;
float L_9 = p5;
t3151226183 * L_10 = m3774802884(NULL, L_9, NULL);
ArrayElementTypeCheck (L_8, L_10);
(L_8)->SetAt(static_cast<il2cpp_array_size_t>(1), (t3151226183 *)L_10);
V_1 = L_8;
int32_t L_11 = p1;
t1006925219 * L_12 = p6;
t1890718142* L_13 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
m4017651538(NULL, L_11, L_12, L_13, NULL);
goto IL_0056;
}
IL_004d:
{
int32_t L_14 = p1;
t1006925219 * L_15 = p6;
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
m4017651538(NULL, L_14, L_15, (t1890718142*)(t1890718142*)NULL, NULL);
}
IL_0056:
{
t2614611333 * L_16 = p2;
IL2CPP_RUNTIME_CLASS_INIT(t1522956648_TI_var);
m1213959601(NULL, L_16, NULL);
t999919624 * L_17 = p0;
int32_t L_18 = p1;
m2798584028(L_17, L_18, NULL);
t1590224583 * L_19 = m238587645(NULL, NULL);
int32_t L_20 = m2209939250(L_19, NULL);
if ((!(((uint32_t)L_20) == ((uint32_t)8))))
{
goto IL_0078;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
m1143185416(NULL, NULL);
}
IL_0078:
{
t2614611333 * L_21 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(t1522956648_TI_var);
m1213959601(NULL, L_21, NULL);
return;
}
}
extern "C" void m727947722 (Il2CppObject * __this , bool p0, const MethodInfo* method)
{
typedef void (*m727947722_ftn) (bool);
static m727947722_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m727947722_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUI::set_changed(System.Boolean)");
_il2cpp_icall_func(p0);
}
extern TypeInfo* t1522956648_TI_var;
extern const uint32_t m2194494269_MetadataUsageId;
extern "C" bool m2194494269 (Il2CppObject * __this , t1525428817 p0, t2432841515 * p1, IntPtr_t p2, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2194494269_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t2432841515 * L_0 = p1;
IntPtr_t L_1 = p2;
IL2CPP_RUNTIME_CLASS_INIT(t1522956648_TI_var);
bool L_2 = m1954108340(NULL, (&p0), L_0, L_1, NULL);
return L_2;
}
}
extern "C" bool m1954108340 (Il2CppObject * __this , t1525428817 * p0, t2432841515 * p1, IntPtr_t p2, const MethodInfo* method)
{
typedef bool (*m1954108340_ftn) (t1525428817 *, t2432841515 *, IntPtr_t);
static m1954108340_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1954108340_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUI::INTERNAL_CALL_DoButton(UnityEngine.Rect&,UnityEngine.GUIContent,System.IntPtr)");
return _il2cpp_icall_func(p0, p1, p2);
}
extern "C" void m739544590 (t4291149951 * __this, const MethodInfo* method)
{
{
m1772956182(__this, NULL);
return;
}
}
extern "C" void m732638321 (t999919624 * __this, Il2CppObject * p0, IntPtr_t p1, const MethodInfo* method)
{
__this->fs0((methodPointerType)((MethodInfo*)p1.fg0())->method);
__this->fs3(p1);
__this->fs2(p0);
}
extern "C" void m2798584028 (t999919624 * __this, int32_t p0, const MethodInfo* method)
{
if(__this->fg9() != NULL)
{
m2798584028((t999919624 *)__this->fg9(),p0, method);
}
il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found((MethodInfo*)(__this->fg3().fg0()));
bool ___methodIsStatic = MethodIsStatic((MethodInfo*)(__this->fg3().fg0()));
if (__this->fg2() != NULL && ___methodIsStatic)
{
typedef void (*FunctionPointerType) (Il2CppObject *, void* __this, int32_t p0, const MethodInfo* method);
((FunctionPointerType)__this->fg0())(NULL,il2cpp_codegen_get_delegate_this(__this),p0,(MethodInfo*)(__this->fg3().fg0()));
}
else
{
typedef void (*FunctionPointerType) (void* __this, int32_t p0, const MethodInfo* method);
((FunctionPointerType)__this->fg0())(il2cpp_codegen_get_delegate_this(__this),p0,(MethodInfo*)(__this->fg3().fg0()));
}
}
extern "C" void pinvoke_delegate_wrapper_t999919624(Il2CppObject* delegate, int32_t p0)
{
typedef void (STDCALL *native_function_ptr_type)(int32_t);
native_function_ptr_type _il2cpp_pinvoke_func = ((native_function_ptr_type)((Il2CppDelegate*)delegate)->method->method);
// Marshaling of parameter 'p0' to native representation
// Native function invocation
_il2cpp_pinvoke_func(p0);
// Marshaling cleanup of parameter 'p0' native representation
}
extern TypeInfo* t2847414787_TI_var;
extern const uint32_t m526788181_MetadataUsageId;
extern "C" Il2CppObject * m526788181 (t999919624 * __this, int32_t p0, t1363551830 * p1, Il2CppObject * p2, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m526788181_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
void *__d_args[2] = {0};
__d_args[0] = Box(t2847414787_TI_var, &p0);
return (Il2CppObject *)il2cpp_delegate_begin_invoke((Il2CppDelegate*)__this, __d_args, (Il2CppDelegate*)p1, (Il2CppObject*)p2);
}
extern "C" void m203456257 (t999919624 * __this, Il2CppObject * p0, const MethodInfo* method)
{
il2cpp_delegate_end_invoke((Il2CppAsyncResult*) p0, 0);
}
extern TypeInfo* String_t_TI_var;
extern const uint32_t m923375087_MetadataUsageId;
extern "C" void m923375087 (t2432841515 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m923375087_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(String_t_TI_var);
String_t* L_0 = ((String_t_SFs*)String_t_TI_var->static_fields)->fg2();
__this->fs0(L_0);
String_t* L_1 = ((String_t_SFs*)String_t_TI_var->static_fields)->fg2();
__this->fs2(L_1);
m1772956182(__this, NULL);
return;
}
}
extern TypeInfo* String_t_TI_var;
extern const uint32_t m174155123_MetadataUsageId;
extern "C" void m174155123 (t2432841515 * __this, String_t* p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m174155123_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(String_t_TI_var);
String_t* L_0 = ((String_t_SFs*)String_t_TI_var->static_fields)->fg2();
__this->fs0(L_0);
String_t* L_1 = ((String_t_SFs*)String_t_TI_var->static_fields)->fg2();
__this->fs2(L_1);
m1772956182(__this, NULL);
String_t* L_2 = p0;
__this->fs0(L_2);
return;
}
}
extern TypeInfo* t2432841515_TI_var;
extern TypeInfo* String_t_TI_var;
extern const uint32_t m2372727710_MetadataUsageId;
extern "C" void m2372727710 (Il2CppObject * __this , const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2372727710_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t2432841515 * L_0 = (t2432841515 *)il2cpp_codegen_object_new(t2432841515_TI_var);
m923375087(L_0, NULL);
((t2432841515_SFs*)t2432841515_TI_var->static_fields)->fs3(L_0);
t2432841515 * L_1 = (t2432841515 *)il2cpp_codegen_object_new(t2432841515_TI_var);
m923375087(L_1, NULL);
((t2432841515_SFs*)t2432841515_TI_var->static_fields)->fs4(L_1);
t2432841515 * L_2 = (t2432841515 *)il2cpp_codegen_object_new(t2432841515_TI_var);
m923375087(L_2, NULL);
((t2432841515_SFs*)t2432841515_TI_var->static_fields)->fs5(L_2);
IL2CPP_RUNTIME_CLASS_INIT(String_t_TI_var);
String_t* L_3 = ((String_t_SFs*)String_t_TI_var->static_fields)->fg2();
t2432841515 * L_4 = (t2432841515 *)il2cpp_codegen_object_new(t2432841515_TI_var);
m174155123(L_4, L_3, NULL);
((t2432841515_SFs*)t2432841515_TI_var->static_fields)->fs6(L_4);
return;
}
}
extern TypeInfo* t2432841515_TI_var;
extern TypeInfo* String_t_TI_var;
extern const uint32_t m2857440895_MetadataUsageId;
extern "C" t2432841515 * m2857440895 (Il2CppObject * __this , String_t* p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2857440895_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(t2432841515_TI_var);
t2432841515 * L_0 = ((t2432841515_SFs*)t2432841515_TI_var->static_fields)->fg3();
String_t* L_1 = p0;
L_0->fs0(L_1);
t2432841515 * L_2 = ((t2432841515_SFs*)t2432841515_TI_var->static_fields)->fg3();
IL2CPP_RUNTIME_CLASS_INIT(String_t_TI_var);
String_t* L_3 = ((String_t_SFs*)String_t_TI_var->static_fields)->fg2();
L_2->fs2(L_3);
t2432841515 * L_4 = ((t2432841515_SFs*)t2432841515_TI_var->static_fields)->fg3();
return L_4;
}
}
extern TypeInfo* t2432841515_TI_var;
extern TypeInfo* String_t_TI_var;
extern const uint32_t m3826417963_MetadataUsageId;
extern "C" t2432841515 * m3826417963 (Il2CppObject * __this , t1769722184 * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3826417963_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(t2432841515_TI_var);
t2432841515 * L_0 = ((t2432841515_SFs*)t2432841515_TI_var->static_fields)->fg4();
t1769722184 * L_1 = p0;
L_0->fs1(L_1);
t2432841515 * L_2 = ((t2432841515_SFs*)t2432841515_TI_var->static_fields)->fg4();
IL2CPP_RUNTIME_CLASS_INIT(String_t_TI_var);
String_t* L_3 = ((String_t_SFs*)String_t_TI_var->static_fields)->fg2();
L_2->fs2(L_3);
t2432841515 * L_4 = ((t2432841515_SFs*)t2432841515_TI_var->static_fields)->fg4();
return L_4;
}
}
extern TypeInfo* t2432841515_TI_var;
extern TypeInfo* String_t_TI_var;
extern const uint32_t m2388858588_MetadataUsageId;
extern "C" void m2388858588 (Il2CppObject * __this , const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2388858588_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(t2432841515_TI_var);
t2432841515 * L_0 = ((t2432841515_SFs*)t2432841515_TI_var->static_fields)->fg3();
L_0->fs0((String_t*)NULL);
t2432841515 * L_1 = ((t2432841515_SFs*)t2432841515_TI_var->static_fields)->fg3();
IL2CPP_RUNTIME_CLASS_INIT(String_t_TI_var);
String_t* L_2 = ((String_t_SFs*)String_t_TI_var->static_fields)->fg2();
L_1->fs2(L_2);
t2432841515 * L_3 = ((t2432841515_SFs*)t2432841515_TI_var->static_fields)->fg4();
L_3->fs1((t1769722184 *)NULL);
t2432841515 * L_4 = ((t2432841515_SFs*)t2432841515_TI_var->static_fields)->fg4();
String_t* L_5 = ((String_t_SFs*)String_t_TI_var->static_fields)->fg2();
L_4->fs2(L_5);
t2432841515 * L_6 = ((t2432841515_SFs*)t2432841515_TI_var->static_fields)->fg5();
L_6->fs0((String_t*)NULL);
t2432841515 * L_7 = ((t2432841515_SFs*)t2432841515_TI_var->static_fields)->fg5();
L_7->fs1((t1769722184 *)NULL);
return;
}
}
extern "C" t4113441198 * m3356120918 (t999894339 * __this, t3525329789 p0, const MethodInfo* method)
{
{
t4113441198 * L_0 = m4210766818(NULL, __this, (&p0), NULL);
return L_0;
}
}
extern "C" t4113441198 * m4210766818 (Il2CppObject * __this , t999894339 * p0, t3525329789 * p1, const MethodInfo* method)
{
typedef t4113441198 * (*m4210766818_ftn) (t999894339 *, t3525329789 *);
static m4210766818_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m4210766818_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUILayer::INTERNAL_CALL_HitTest(UnityEngine.GUILayer,UnityEngine.Vector3&)");
return _il2cpp_icall_func(p0, p1);
}
extern TypeInfo* t958209021_TI_var;
extern TypeInfo* t3151226183_TI_var;
extern const uint32_t m2259621411_MetadataUsageId;
extern "C" t3151226183 * m2259621411 (Il2CppObject * __this , float p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2259621411_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
float L_0 = p0;
float L_1 = L_0;
Il2CppObject * L_2 = Box(t958209021_TI_var, &L_1);
t3151226183 * L_3 = (t3151226183 *)il2cpp_codegen_object_new(t3151226183_TI_var);
m573459815(L_3, 0, L_2, NULL);
return L_3;
}
}
extern TypeInfo* t958209021_TI_var;
extern TypeInfo* t3151226183_TI_var;
extern const uint32_t m3774802884_MetadataUsageId;
extern "C" t3151226183 * m3774802884 (Il2CppObject * __this , float p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3774802884_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
float L_0 = p0;
float L_1 = L_0;
Il2CppObject * L_2 = Box(t958209021_TI_var, &L_1);
t3151226183 * L_3 = (t3151226183 *)il2cpp_codegen_object_new(t3151226183_TI_var);
m573459815(L_3, 1, L_2, NULL);
return L_3;
}
}
extern TypeInfo* t1006925219_TI_var;
extern const uint32_t m3586081151_MetadataUsageId;
extern "C" void m3586081151 (t1011928986 * __this, float p0, float p1, float p2, float p3, t1006925219 * p4, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3586081151_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t1525428817 L_0;
memset(&L_0, 0, sizeof(L_0));
m3291325233(&L_0, (0.0f), (0.0f), (0.0f), (0.0f), NULL);
__this->fs4(L_0);
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
t1006925219 * L_1 = m2767659632(NULL, NULL);
__this->fs7(L_1);
m1772956182(__this, NULL);
float L_2 = p0;
__this->fs0(L_2);
float L_3 = p1;
__this->fs1(L_3);
float L_4 = p2;
__this->fs2(L_4);
float L_5 = p3;
__this->fs3(L_5);
t1006925219 * L_6 = p4;
if (L_6)
{
goto IL_005b;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
t1006925219 * L_7 = m2767659632(NULL, NULL);
p4 = L_7;
}
IL_005b:
{
t1006925219 * L_8 = p4;
m706118245(__this, L_8, NULL);
return;
}
}
extern TypeInfo* t1011928986_TI_var;
extern const uint32_t m4107715149_MetadataUsageId;
extern "C" void m4107715149 (Il2CppObject * __this , const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m4107715149_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t1525428817 L_0;
memset(&L_0, 0, sizeof(L_0));
m3291325233(&L_0, (0.0f), (0.0f), (1.0f), (1.0f), NULL);
((t1011928986_SFs*)t1011928986_TI_var->static_fields)->fs8(L_0);
((t1011928986_SFs*)t1011928986_TI_var->static_fields)->fs9(0);
return;
}
}
extern "C" t1006925219 * m3507897988 (t1011928986 * __this, const MethodInfo* method)
{
{
t1006925219 * L_0 = __this->fg7();
return L_0;
}
}
extern "C" void m706118245 (t1011928986 * __this, t1006925219 * p0, const MethodInfo* method)
{
{
t1006925219 * L_0 = p0;
__this->fs7(L_0);
t1006925219 * L_1 = p0;
VirtActionInvoker1< t1006925219 * >::Invoke(9 /* System.Void UnityEngine.GUILayoutEntry::ApplyStyleSettings(UnityEngine.GUIStyle) */, __this, L_1);
return;
}
}
extern "C" t3394170884 * m3705107036 (t1011928986 * __this, const MethodInfo* method)
{
{
t1006925219 * L_0 = m3507897988(__this, NULL);
t3394170884 * L_1 = m4279849445(L_0, NULL);
return L_1;
}
}
extern "C" void m3370167343 (t1011928986 * __this, const MethodInfo* method)
{
{
return;
}
}
extern "C" void m1899786880 (t1011928986 * __this, const MethodInfo* method)
{
{
return;
}
}
extern "C" void m3810336940 (t1011928986 * __this, float p0, float p1, const MethodInfo* method)
{
{
t1525428817 * L_0 = __this->fag4();
float L_1 = p0;
m577970569(L_0, L_1, NULL);
t1525428817 * L_2 = __this->fag4();
float L_3 = p1;
m3771513595(L_2, L_3, NULL);
return;
}
}
extern "C" void m880890586 (t1011928986 * __this, float p0, float p1, const MethodInfo* method)
{
{
t1525428817 * L_0 = __this->fag4();
float L_1 = p0;
m67436392(L_0, L_1, NULL);
t1525428817 * L_2 = __this->fag4();
float L_3 = p1;
m3398820332(L_2, L_3, NULL);
return;
}
}
extern "C" void m937804029 (t1011928986 * __this, t1006925219 * p0, const MethodInfo* method)
{
t1011928986 * G_B3_0 = NULL;
t1011928986 * G_B1_0 = NULL;
t1011928986 * G_B2_0 = NULL;
int32_t G_B4_0 = 0;
t1011928986 * G_B4_1 = NULL;
t1011928986 * G_B7_0 = NULL;
t1011928986 * G_B5_0 = NULL;
t1011928986 * G_B6_0 = NULL;
int32_t G_B8_0 = 0;
t1011928986 * G_B8_1 = NULL;
{
t1006925219 * L_0 = p0;
float L_1 = m3249098964(L_0, NULL);
G_B1_0 = __this;
if ((!(((float)L_1) == ((float)(0.0f)))))
{
G_B3_0 = __this;
goto IL_0022;
}
}
{
t1006925219 * L_2 = p0;
bool L_3 = m38609341(L_2, NULL);
G_B2_0 = G_B1_0;
if (!L_3)
{
G_B3_0 = G_B1_0;
goto IL_0022;
}
}
{
G_B4_0 = 1;
G_B4_1 = G_B2_0;
goto IL_0023;
}
IL_0022:
{
G_B4_0 = 0;
G_B4_1 = G_B3_0;
}
IL_0023:
{
G_B4_1->fs5(G_B4_0);
t1006925219 * L_4 = p0;
float L_5 = m2441634427(L_4, NULL);
G_B5_0 = __this;
if ((!(((float)L_5) == ((float)(0.0f)))))
{
G_B7_0 = __this;
goto IL_004a;
}
}
{
t1006925219 * L_6 = p0;
bool L_7 = m1700703922(L_6, NULL);
G_B6_0 = G_B5_0;
if (!L_7)
{
G_B7_0 = G_B5_0;
goto IL_004a;
}
}
{
G_B8_0 = 1;
G_B8_1 = G_B6_0;
goto IL_004b;
}
IL_004a:
{
G_B8_0 = 0;
G_B8_1 = G_B7_0;
}
IL_004b:
{
G_B8_1->fs6(G_B8_0);
t1006925219 * L_8 = p0;
__this->fs7(L_8);
return;
}
}
extern TypeInfo* t958209021_TI_var;
extern TypeInfo* t2847414787_TI_var;
extern const uint32_t m2425801465_MetadataUsageId;
extern "C" void m2425801465 (t1011928986 * __this, t1890718142* p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2425801465_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t3151226183 * V_0 = NULL;
t1890718142* V_1 = NULL;
int32_t V_2 = 0;
int32_t V_3 = 0;
float V_4 = 0.0f;
{
t1890718142* L_0 = p0;
if (L_0)
{
goto IL_0007;
}
}
{
return;
}
IL_0007:
{
t1890718142* L_1 = p0;
V_1 = L_1;
V_2 = 0;
goto IL_01a0;
}
IL_0010:
{
t1890718142* L_2 = V_1;
int32_t L_3 = V_2;
int32_t L_4 = L_3;
V_0 = ((L_2)->GetAt(static_cast<il2cpp_array_size_t>(L_4)));
t3151226183 * L_5 = V_0;
int32_t L_6 = L_5->fg0();
V_3 = L_6;
int32_t L_7 = V_3;
if (L_7 == 0)
{
goto IL_0046;
}
if (L_7 == 1)
{
goto IL_006e;
}
if (L_7 == 2)
{
goto IL_0096;
}
if (L_7 == 3)
{
goto IL_00c9;
}
if (L_7 == 4)
{
goto IL_0103;
}
if (L_7 == 5)
{
goto IL_0136;
}
if (L_7 == 6)
{
goto IL_0170;
}
if (L_7 == 7)
{
goto IL_0186;
}
}
{
goto IL_019c;
}
IL_0046:
{
t3151226183 * L_8 = V_0;
Il2CppObject * L_9 = L_8->fg1();
float L_10 = ((*(float*)((float*)UnBox (L_9, t958209021_TI_var))));
V_4 = L_10;
__this->fs1(L_10);
float L_11 = V_4;
__this->fs0(L_11);
__this->fs5(0);
goto IL_019c;
}
IL_006e:
{
t3151226183 * L_12 = V_0;
Il2CppObject * L_13 = L_12->fg1();
float L_14 = ((*(float*)((float*)UnBox (L_13, t958209021_TI_var))));
V_4 = L_14;
__this->fs3(L_14);
float L_15 = V_4;
__this->fs2(L_15);
__this->fs6(0);
goto IL_019c;
}
IL_0096:
{
t3151226183 * L_16 = V_0;
Il2CppObject * L_17 = L_16->fg1();
__this->fs0(((*(float*)((float*)UnBox (L_17, t958209021_TI_var)))));
float L_18 = __this->fg1();
float L_19 = __this->fg0();
if ((!(((float)L_18) < ((float)L_19))))
{
goto IL_00c4;
}
}
{
float L_20 = __this->fg0();
__this->fs1(L_20);
}
IL_00c4:
{
goto IL_019c;
}
IL_00c9:
{
t3151226183 * L_21 = V_0;
Il2CppObject * L_22 = L_21->fg1();
__this->fs1(((*(float*)((float*)UnBox (L_22, t958209021_TI_var)))));
float L_23 = __this->fg0();
float L_24 = __this->fg1();
if ((!(((float)L_23) > ((float)L_24))))
{
goto IL_00f7;
}
}
{
float L_25 = __this->fg1();
__this->fs0(L_25);
}
IL_00f7:
{
__this->fs5(0);
goto IL_019c;
}
IL_0103:
{
t3151226183 * L_26 = V_0;
Il2CppObject * L_27 = L_26->fg1();
__this->fs2(((*(float*)((float*)UnBox (L_27, t958209021_TI_var)))));
float L_28 = __this->fg3();
float L_29 = __this->fg2();
if ((!(((float)L_28) < ((float)L_29))))
{
goto IL_0131;
}
}
{
float L_30 = __this->fg2();
__this->fs3(L_30);
}
IL_0131:
{
goto IL_019c;
}
IL_0136:
{
t3151226183 * L_31 = V_0;
Il2CppObject * L_32 = L_31->fg1();
__this->fs3(((*(float*)((float*)UnBox (L_32, t958209021_TI_var)))));
float L_33 = __this->fg2();
float L_34 = __this->fg3();
if ((!(((float)L_33) > ((float)L_34))))
{
goto IL_0164;
}
}
{
float L_35 = __this->fg3();
__this->fs2(L_35);
}
IL_0164:
{
__this->fs6(0);
goto IL_019c;
}
IL_0170:
{
t3151226183 * L_36 = V_0;
Il2CppObject * L_37 = L_36->fg1();
__this->fs5(((*(int32_t*)((int32_t*)UnBox (L_37, t2847414787_TI_var)))));
goto IL_019c;
}
IL_0186:
{
t3151226183 * L_38 = V_0;
Il2CppObject * L_39 = L_38->fg1();
__this->fs6(((*(int32_t*)((int32_t*)UnBox (L_39, t2847414787_TI_var)))));
goto IL_019c;
}
IL_019c:
{
int32_t L_40 = V_2;
V_2 = ((int32_t)((int32_t)L_40+(int32_t)1));
}
IL_01a0:
{
int32_t L_41 = V_2;
t1890718142* L_42 = V_1;
if ((((int32_t)L_41) < ((int32_t)(((int32_t)((int32_t)(((Il2CppArray *)L_42)->max_length)))))))
{
goto IL_0010;
}
}
{
float L_43 = __this->fg1();
if ((((float)L_43) == ((float)(0.0f))))
{
goto IL_01d6;
}
}
{
float L_44 = __this->fg1();
float L_45 = __this->fg0();
if ((!(((float)L_44) < ((float)L_45))))
{
goto IL_01d6;
}
}
{
float L_46 = __this->fg0();
__this->fs1(L_46);
}
IL_01d6:
{
float L_47 = __this->fg3();
if ((((float)L_47) == ((float)(0.0f))))
{
goto IL_0203;
}
}
{
float L_48 = __this->fg3();
float L_49 = __this->fg2();
if ((!(((float)L_48) < ((float)L_49))))
{
goto IL_0203;
}
}
{
float L_50 = __this->fg2();
__this->fs3(L_50);
}
IL_0203:
{
return;
}
}
extern TypeInfo* String_t_TI_var;
extern TypeInfo* t1011928986_TI_var;
extern TypeInfo* t11523773_TI_var;
extern TypeInfo* t958209021_TI_var;
extern Il2CppCodeGenString* _stringLiteral32;
extern Il2CppCodeGenString* _stringLiteral2836752022;
extern Il2CppCodeGenString* _stringLiteral2407815;
extern Il2CppCodeGenString* _stringLiteral2462574570;
extern Il2CppCodeGenString* _stringLiteral45;
extern Il2CppCodeGenString* _stringLiteral43;
extern Il2CppCodeGenString* _stringLiteral41659258;
extern const uint32_t m4021956595_MetadataUsageId;
extern "C" String_t* m4021956595 (t1011928986 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m4021956595_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
String_t* V_0 = NULL;
int32_t V_1 = 0;
int32_t G_B5_0 = 0;
t11523773* G_B5_1 = NULL;
t11523773* G_B5_2 = NULL;
String_t* G_B5_3 = NULL;
int32_t G_B5_4 = 0;
t11523773* G_B5_5 = NULL;
t11523773* G_B5_6 = NULL;
int32_t G_B4_0 = 0;
t11523773* G_B4_1 = NULL;
t11523773* G_B4_2 = NULL;
String_t* G_B4_3 = NULL;
int32_t G_B4_4 = 0;
t11523773* G_B4_5 = NULL;
t11523773* G_B4_6 = NULL;
String_t* G_B6_0 = NULL;
int32_t G_B6_1 = 0;
t11523773* G_B6_2 = NULL;
t11523773* G_B6_3 = NULL;
String_t* G_B6_4 = NULL;
int32_t G_B6_5 = 0;
t11523773* G_B6_6 = NULL;
t11523773* G_B6_7 = NULL;
int32_t G_B8_0 = 0;
t11523773* G_B8_1 = NULL;
t11523773* G_B8_2 = NULL;
int32_t G_B7_0 = 0;
t11523773* G_B7_1 = NULL;
t11523773* G_B7_2 = NULL;
String_t* G_B9_0 = NULL;
int32_t G_B9_1 = 0;
t11523773* G_B9_2 = NULL;
t11523773* G_B9_3 = NULL;
int32_t G_B11_0 = 0;
t11523773* G_B11_1 = NULL;
t11523773* G_B11_2 = NULL;
int32_t G_B10_0 = 0;
t11523773* G_B10_1 = NULL;
t11523773* G_B10_2 = NULL;
String_t* G_B12_0 = NULL;
int32_t G_B12_1 = 0;
t11523773* G_B12_2 = NULL;
t11523773* G_B12_3 = NULL;
{
IL2CPP_RUNTIME_CLASS_INIT(String_t_TI_var);
String_t* L_0 = ((String_t_SFs*)String_t_TI_var->static_fields)->fg2();
V_0 = L_0;
V_1 = 0;
goto IL_001d;
}
IL_000d:
{
String_t* L_1 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(String_t_TI_var);
String_t* L_2 = m138640077(NULL, L_1, _stringLiteral32, NULL);
V_0 = L_2;
int32_t L_3 = V_1;
V_1 = ((int32_t)((int32_t)L_3+(int32_t)1));
}
IL_001d:
{
int32_t L_4 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(t1011928986_TI_var);
int32_t L_5 = ((t1011928986_SFs*)t1011928986_TI_var->static_fields)->fg9();
if ((((int32_t)L_4) < ((int32_t)L_5)))
{
goto IL_000d;
}
}
{
t11523773* L_6 = ((t11523773*)SZArrayNew(t11523773_TI_var, (uint32_t)((int32_t)12)));
String_t* L_7 = V_0;
ArrayElementTypeCheck (L_6, L_7);
(L_6)->SetAt(static_cast<il2cpp_array_size_t>(0), (Il2CppObject *)L_7);
t11523773* L_8 = L_6;
t11523773* L_9 = ((t11523773*)SZArrayNew(t11523773_TI_var, (uint32_t)6));
t1006925219 * L_10 = m3507897988(__this, NULL);
G_B4_0 = 0;
G_B4_1 = L_9;
G_B4_2 = L_9;
G_B4_3 = _stringLiteral2836752022;
G_B4_4 = 1;
G_B4_5 = L_8;
G_B4_6 = L_8;
if (!L_10)
{
G_B5_0 = 0;
G_B5_1 = L_9;
G_B5_2 = L_9;
G_B5_3 = _stringLiteral2836752022;
G_B5_4 = 1;
G_B5_5 = L_8;
G_B5_6 = L_8;
goto IL_005d;
}
}
{
t1006925219 * L_11 = m3507897988(__this, NULL);
String_t* L_12 = m4046186628(L_11, NULL);
G_B6_0 = L_12;
G_B6_1 = G_B4_0;
G_B6_2 = G_B4_1;
G_B6_3 = G_B4_2;
G_B6_4 = G_B4_3;
G_B6_5 = G_B4_4;
G_B6_6 = G_B4_5;
G_B6_7 = G_B4_6;
goto IL_0062;
}
IL_005d:
{
G_B6_0 = _stringLiteral2407815;
G_B6_1 = G_B5_0;
G_B6_2 = G_B5_1;
G_B6_3 = G_B5_2;
G_B6_4 = G_B5_3;
G_B6_5 = G_B5_4;
G_B6_6 = G_B5_5;
G_B6_7 = G_B5_6;
}
IL_0062:
{
ArrayElementTypeCheck (G_B6_2, G_B6_0);
(G_B6_2)->SetAt(static_cast<il2cpp_array_size_t>(G_B6_1), (Il2CppObject *)G_B6_0);
t11523773* L_13 = G_B6_3;
Type_t * L_14 = m2022236990(__this, NULL);
ArrayElementTypeCheck (L_13, L_14);
(L_13)->SetAt(static_cast<il2cpp_array_size_t>(1), (Il2CppObject *)L_14);
t11523773* L_15 = L_13;
t1525428817 * L_16 = __this->fag4();
float L_17 = m982385354(L_16, NULL);
float L_18 = L_17;
Il2CppObject * L_19 = Box(t958209021_TI_var, &L_18);
ArrayElementTypeCheck (L_15, L_19);
(L_15)->SetAt(static_cast<il2cpp_array_size_t>(2), (Il2CppObject *)L_19);
t11523773* L_20 = L_15;
t1525428817 * L_21 = __this->fag4();
float L_22 = m370881244(L_21, NULL);
float L_23 = L_22;
Il2CppObject * L_24 = Box(t958209021_TI_var, &L_23);
ArrayElementTypeCheck (L_20, L_24);
(L_20)->SetAt(static_cast<il2cpp_array_size_t>(3), (Il2CppObject *)L_24);
t11523773* L_25 = L_20;
t1525428817 * L_26 = __this->fag4();
float L_27 = m982386315(L_26, NULL);
float L_28 = L_27;
Il2CppObject * L_29 = Box(t958209021_TI_var, &L_28);
ArrayElementTypeCheck (L_25, L_29);
(L_25)->SetAt(static_cast<il2cpp_array_size_t>(4), (Il2CppObject *)L_29);
t11523773* L_30 = L_25;
t1525428817 * L_31 = __this->fag4();
float L_32 = m399510395(L_31, NULL);
float L_33 = L_32;
Il2CppObject * L_34 = Box(t958209021_TI_var, &L_33);
ArrayElementTypeCheck (L_30, L_34);
(L_30)->SetAt(static_cast<il2cpp_array_size_t>(5), (Il2CppObject *)L_34);
String_t* L_35 = m427603113(NULL, G_B6_4, L_30, NULL);
ArrayElementTypeCheck (G_B6_6, L_35);
(G_B6_6)->SetAt(static_cast<il2cpp_array_size_t>(G_B6_5), (Il2CppObject *)L_35);
t11523773* L_36 = G_B6_7;
ArrayElementTypeCheck (L_36, _stringLiteral2462574570);
(L_36)->SetAt(static_cast<il2cpp_array_size_t>(2), (Il2CppObject *)_stringLiteral2462574570);
t11523773* L_37 = L_36;
float L_38 = __this->fg0();
float L_39 = L_38;
Il2CppObject * L_40 = Box(t958209021_TI_var, &L_39);
ArrayElementTypeCheck (L_37, L_40);
(L_37)->SetAt(static_cast<il2cpp_array_size_t>(3), (Il2CppObject *)L_40);
t11523773* L_41 = L_37;
ArrayElementTypeCheck (L_41, _stringLiteral45);
(L_41)->SetAt(static_cast<il2cpp_array_size_t>(4), (Il2CppObject *)_stringLiteral45);
t11523773* L_42 = L_41;
float L_43 = __this->fg1();
float L_44 = L_43;
Il2CppObject * L_45 = Box(t958209021_TI_var, &L_44);
ArrayElementTypeCheck (L_42, L_45);
(L_42)->SetAt(static_cast<il2cpp_array_size_t>(5), (Il2CppObject *)L_45);
t11523773* L_46 = L_42;
int32_t L_47 = __this->fg5();
G_B7_0 = 6;
G_B7_1 = L_46;
G_B7_2 = L_46;
if (!L_47)
{
G_B8_0 = 6;
G_B8_1 = L_46;
G_B8_2 = L_46;
goto IL_0101;
}
}
{
G_B9_0 = _stringLiteral43;
G_B9_1 = G_B7_0;
G_B9_2 = G_B7_1;
G_B9_3 = G_B7_2;
goto IL_0106;
}
IL_0101:
{
IL2CPP_RUNTIME_CLASS_INIT(String_t_TI_var);
String_t* L_48 = ((String_t_SFs*)String_t_TI_var->static_fields)->fg2();
G_B9_0 = L_48;
G_B9_1 = G_B8_0;
G_B9_2 = G_B8_1;
G_B9_3 = G_B8_2;
}
IL_0106:
{
ArrayElementTypeCheck (G_B9_2, G_B9_0);
(G_B9_2)->SetAt(static_cast<il2cpp_array_size_t>(G_B9_1), (Il2CppObject *)G_B9_0);
t11523773* L_49 = G_B9_3;
ArrayElementTypeCheck (L_49, _stringLiteral41659258);
(L_49)->SetAt(static_cast<il2cpp_array_size_t>(7), (Il2CppObject *)_stringLiteral41659258);
t11523773* L_50 = L_49;
float L_51 = __this->fg2();
float L_52 = L_51;
Il2CppObject * L_53 = Box(t958209021_TI_var, &L_52);
ArrayElementTypeCheck (L_50, L_53);
(L_50)->SetAt(static_cast<il2cpp_array_size_t>(8), (Il2CppObject *)L_53);
t11523773* L_54 = L_50;
ArrayElementTypeCheck (L_54, _stringLiteral45);
(L_54)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)9)), (Il2CppObject *)_stringLiteral45);
t11523773* L_55 = L_54;
float L_56 = __this->fg3();
float L_57 = L_56;
Il2CppObject * L_58 = Box(t958209021_TI_var, &L_57);
ArrayElementTypeCheck (L_55, L_58);
(L_55)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)10)), (Il2CppObject *)L_58);
t11523773* L_59 = L_55;
int32_t L_60 = __this->fg6();
G_B10_0 = ((int32_t)11);
G_B10_1 = L_59;
G_B10_2 = L_59;
if (!L_60)
{
G_B11_0 = ((int32_t)11);
G_B11_1 = L_59;
G_B11_2 = L_59;
goto IL_014d;
}
}
{
G_B12_0 = _stringLiteral43;
G_B12_1 = G_B10_0;
G_B12_2 = G_B10_1;
G_B12_3 = G_B10_2;
goto IL_0152;
}
IL_014d:
{
IL2CPP_RUNTIME_CLASS_INIT(String_t_TI_var);
String_t* L_61 = ((String_t_SFs*)String_t_TI_var->static_fields)->fg2();
G_B12_0 = L_61;
G_B12_1 = G_B11_0;
G_B12_2 = G_B11_1;
G_B12_3 = G_B11_2;
}
IL_0152:
{
ArrayElementTypeCheck (G_B12_2, G_B12_0);
(G_B12_2)->SetAt(static_cast<il2cpp_array_size_t>(G_B12_1), (Il2CppObject *)G_B12_0);
IL2CPP_RUNTIME_CLASS_INIT(String_t_TI_var);
String_t* L_62 = m3016520001(NULL, G_B12_3, NULL);
return L_62;
}
}
extern TypeInfo* t1808887955_TI_var;
extern TypeInfo* t3394170884_TI_var;
extern TypeInfo* t1006925219_TI_var;
extern TypeInfo* t1011928986_TI_var;
extern const MethodInfo* m2979952710_MI_var;
extern const uint32_t m3393996275_MetadataUsageId;
extern "C" void m3393996275 (t1013890471 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3393996275_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t1808887955 * L_0 = (t1808887955 *)il2cpp_codegen_object_new(t1808887955_TI_var);
m2979952710(L_0, m2979952710_MI_var);
__this->fs10(L_0);
__this->fs11((bool)1);
__this->fs14((bool)1);
__this->fs16((-1));
__this->fs18(((int32_t)100));
__this->fs19(((int32_t)100));
__this->fs22((100.0f));
__this->fs23((100.0f));
__this->fs24((100.0f));
__this->fs25((100.0f));
t3394170884 * L_1 = (t3394170884 *)il2cpp_codegen_object_new(t3394170884_TI_var);
m2395783478(L_1, NULL);
__this->fs26(L_1);
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
t1006925219 * L_2 = m2767659632(NULL, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1011928986_TI_var);
m3586081151(__this, (0.0f), (0.0f), (0.0f), (0.0f), L_2, NULL);
return;
}
}
extern "C" t3394170884 * m1931560361 (t1013890471 * __this, const MethodInfo* method)
{
{
t3394170884 * L_0 = __this->fg26();
return L_0;
}
}
extern TypeInfo* t2847414787_TI_var;
extern const uint32_t m743820812_MetadataUsageId;
extern "C" void m743820812 (t1013890471 * __this, t1890718142* p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m743820812_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t3151226183 * V_0 = NULL;
t1890718142* V_1 = NULL;
int32_t V_2 = 0;
int32_t V_3 = 0;
{
t1890718142* L_0 = p0;
if (L_0)
{
goto IL_0007;
}
}
{
return;
}
IL_0007:
{
t1890718142* L_1 = p0;
m2425801465(__this, L_1, NULL);
t1890718142* L_2 = p0;
V_1 = L_2;
V_2 = 0;
goto IL_0098;
}
IL_0017:
{
t1890718142* L_3 = V_1;
int32_t L_4 = V_2;
int32_t L_5 = L_4;
V_0 = ((L_3)->GetAt(static_cast<il2cpp_array_size_t>(L_5)));
t3151226183 * L_6 = V_0;
int32_t L_7 = L_6->fg0();
V_3 = L_7;
int32_t L_8 = V_3;
if (L_8 == 0)
{
goto IL_0065;
}
if (L_8 == 1)
{
goto IL_0071;
}
if (L_8 == 2)
{
goto IL_0065;
}
if (L_8 == 3)
{
goto IL_0065;
}
if (L_8 == 4)
{
goto IL_0071;
}
if (L_8 == 5)
{
goto IL_0071;
}
if (L_8 == 6)
{
goto IL_0094;
}
if (L_8 == 7)
{
goto IL_0094;
}
if (L_8 == 8)
{
goto IL_0094;
}
if (L_8 == 9)
{
goto IL_0094;
}
if (L_8 == 10)
{
goto IL_0094;
}
if (L_8 == 11)
{
goto IL_0094;
}
if (L_8 == 12)
{
goto IL_0094;
}
if (L_8 == 13)
{
goto IL_007d;
}
}
{
goto IL_0094;
}
IL_0065:
{
__this->fs21((bool)1);
goto IL_0094;
}
IL_0071:
{
__this->fs20((bool)1);
goto IL_0094;
}
IL_007d:
{
t3151226183 * L_9 = V_0;
Il2CppObject * L_10 = L_9->fg1();
__this->fs13((((float)((float)((*(int32_t*)((int32_t*)UnBox (L_10, t2847414787_TI_var))))))));
goto IL_0094;
}
IL_0094:
{
int32_t L_11 = V_2;
V_2 = ((int32_t)((int32_t)L_11+(int32_t)1));
}
IL_0098:
{
int32_t L_12 = V_2;
t1890718142* L_13 = V_1;
if ((((int32_t)L_12) < ((int32_t)(((int32_t)((int32_t)(((Il2CppArray *)L_13)->max_length)))))))
{
goto IL_0017;
}
}
{
return;
}
}
extern "C" void m1024249546 (t1013890471 * __this, t1006925219 * p0, const MethodInfo* method)
{
t3394170884 * V_0 = NULL;
{
t1006925219 * L_0 = p0;
m937804029(__this, L_0, NULL);
t1006925219 * L_1 = p0;
t3394170884 * L_2 = m4279849445(L_1, NULL);
V_0 = L_2;
t3394170884 * L_3 = __this->fg26();
t3394170884 * L_4 = V_0;
int32_t L_5 = m4104523390(L_4, NULL);
m901965251(L_3, L_5, NULL);
t3394170884 * L_6 = __this->fg26();
t3394170884 * L_7 = V_0;
int32_t L_8 = m3831383975(L_7, NULL);
m2119805444(L_6, L_8, NULL);
t3394170884 * L_9 = __this->fg26();
t3394170884 * L_10 = V_0;
int32_t L_11 = m140097312(L_10, NULL);
m3043172093(L_9, L_11, NULL);
t3394170884 * L_12 = __this->fg26();
t3394170884 * L_13 = V_0;
int32_t L_14 = m2106858018(L_13, NULL);
m3840454247(L_12, L_14, NULL);
return;
}
}
extern "C" void m982464342 (t1013890471 * __this, const MethodInfo* method)
{
{
__this->fs17(0);
return;
}
}
extern TypeInfo* t1596329428_TI_var;
extern TypeInfo* t1597001355_TI_var;
extern TypeInfo* t4189638243_TI_var;
extern TypeInfo* t1628921374_TI_var;
extern TypeInfo* t1006925219_TI_var;
extern const MethodInfo* m2550530949_MI_var;
extern const MethodInfo* m2219564735_MI_var;
extern const MethodInfo* m2002561277_MI_var;
extern const uint32_t m1234746178_MetadataUsageId;
extern "C" void m1234746178 (t1013890471 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m1234746178_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
bool V_2 = false;
t1011928986 * V_3 = NULL;
t4189638243 V_4;
memset(&V_4, 0, sizeof(V_4));
t3394170884 * V_5 = NULL;
int32_t V_6 = 0;
t1011928986 * V_7 = NULL;
t4189638243 V_8;
memset(&V_8, 0, sizeof(V_8));
t3394170884 * V_9 = NULL;
int32_t V_10 = 0;
float V_11 = 0.0f;
float V_12 = 0.0f;
float V_13 = 0.0f;
t1967233988 * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
t1967233988 * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
int32_t G_B22_0 = 0;
int32_t G_B39_0 = 0;
int32_t G_B39_1 = 0;
t1013890471 * G_B39_2 = NULL;
int32_t G_B38_0 = 0;
int32_t G_B38_1 = 0;
t1013890471 * G_B38_2 = NULL;
int32_t G_B40_0 = 0;
int32_t G_B40_1 = 0;
int32_t G_B40_2 = 0;
t1013890471 * G_B40_3 = NULL;
{
t1808887955 * L_0 = __this->fg10();
int32_t L_1 = VirtFuncInvoker0< int32_t >::Invoke(17 /* System.Int32 System.Collections.Generic.List`1<UnityEngine.GUILayoutEntry>::get_Count() */, L_0);
if (L_1)
{
goto IL_0033;
}
}
{
t1006925219 * L_2 = m3507897988(__this, NULL);
t3394170884 * L_3 = m3072941276(L_2, NULL);
int32_t L_4 = m1186440923(L_3, NULL);
float L_5 = (((float)((float)L_4)));
V_13 = L_5;
((t1011928986 *)__this)->fs0(L_5);
float L_6 = V_13;
((t1011928986 *)__this)->fs1(L_6);
return;
}
IL_0033:
{
V_0 = 0;
V_1 = 0;
__this->fs22((0.0f));
__this->fs23((0.0f));
__this->fs18(0);
V_2 = (bool)1;
bool L_7 = __this->fg11();
if (!L_7)
{
goto IL_016a;
}
}
{
t1808887955 * L_8 = __this->fg10();
t4189638243 L_9 = m2550530949(L_8, m2550530949_MI_var);
V_4 = L_9;
}
IL_006e:
try
{ // begin try (depth: 1)
{
goto IL_0125;
}
IL_0073:
{
t1011928986 * L_10 = m2219564735((&V_4), m2219564735_MI_var);
V_3 = L_10;
t1011928986 * L_11 = V_3;
VirtActionInvoker0::Invoke(5 /* System.Void UnityEngine.GUILayoutEntry::CalcWidth() */, L_11);
t1011928986 * L_12 = V_3;
t3394170884 * L_13 = VirtFuncInvoker0< t3394170884 * >::Invoke(4 /* UnityEngine.RectOffset UnityEngine.GUILayoutEntry::get_margin() */, L_12);
V_5 = L_13;
t1011928986 * L_14 = V_3;
t1006925219 * L_15 = m3507897988(L_14, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
t1006925219 * L_16 = m3628948340(NULL, NULL);
if ((((Il2CppObject*)(t1006925219 *)L_15) == ((Il2CppObject*)(t1006925219 *)L_16)))
{
goto IL_0112;
}
}
IL_0099:
{
bool L_17 = V_2;
if (L_17)
{
goto IL_00c0;
}
}
IL_009f:
{
t3394170884 * L_18 = V_5;
int32_t L_19 = m4104523390(L_18, NULL);
int32_t L_20 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
int32_t L_21 = m2413438171(NULL, L_19, L_20, NULL);
V_0 = L_21;
t3394170884 * L_22 = V_5;
int32_t L_23 = m3831383975(L_22, NULL);
int32_t L_24 = V_1;
int32_t L_25 = m2413438171(NULL, L_23, L_24, NULL);
V_1 = L_25;
goto IL_00d2;
}
IL_00c0:
{
t3394170884 * L_26 = V_5;
int32_t L_27 = m4104523390(L_26, NULL);
V_0 = L_27;
t3394170884 * L_28 = V_5;
int32_t L_29 = m3831383975(L_28, NULL);
V_1 = L_29;
V_2 = (bool)0;
}
IL_00d2:
{
t1011928986 * L_30 = V_3;
float L_31 = L_30->fg0();
t3394170884 * L_32 = V_5;
int32_t L_33 = m1186440923(L_32, NULL);
float L_34 = __this->fg22();
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
float L_35 = m3923796455(NULL, ((float)((float)L_31+(float)(((float)((float)L_33))))), L_34, NULL);
__this->fs22(L_35);
t1011928986 * L_36 = V_3;
float L_37 = L_36->fg1();
t3394170884 * L_38 = V_5;
int32_t L_39 = m1186440923(L_38, NULL);
float L_40 = __this->fg23();
float L_41 = m3923796455(NULL, ((float)((float)L_37+(float)(((float)((float)L_39))))), L_40, NULL);
__this->fs23(L_41);
}
IL_0112:
{
int32_t L_42 = __this->fg18();
t1011928986 * L_43 = V_3;
int32_t L_44 = L_43->fg5();
__this->fs18(((int32_t)((int32_t)L_42+(int32_t)L_44)));
}
IL_0125:
{
bool L_45 = m2002561277((&V_4), m2002561277_MI_var);
if (L_45)
{
goto IL_0073;
}
}
IL_0131:
{
IL2CPP_LEAVE(0x143, FINALLY_0136);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t1967233988 *)e.ex;
goto FINALLY_0136;
}
FINALLY_0136:
{ // begin finally (depth: 1)
t4189638243 L_46 = V_4;
t4189638243 L_47 = L_46;
Il2CppObject * L_48 = Box(t4189638243_TI_var, &L_47);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, t1628921374_TI_var, (Il2CppObject *)L_48);
IL2CPP_END_FINALLY(310)
} // end finally (depth: 1)
IL2CPP_CLEANUP(310)
{
IL2CPP_JUMP_TBL(0x143, IL_0143)
IL2CPP_RETHROW_IF_UNHANDLED(t1967233988 *)
}
IL_0143:
{
float L_49 = __this->fg22();
int32_t L_50 = V_0;
int32_t L_51 = V_1;
__this->fs22(((float)((float)L_49-(float)(((float)((float)((int32_t)((int32_t)L_50+(int32_t)L_51))))))));
float L_52 = __this->fg23();
int32_t L_53 = V_0;
int32_t L_54 = V_1;
__this->fs23(((float)((float)L_52-(float)(((float)((float)((int32_t)((int32_t)L_53+(int32_t)L_54))))))));
goto IL_02ea;
}
IL_016a:
{
V_6 = 0;
t1808887955 * L_55 = __this->fg10();
t4189638243 L_56 = m2550530949(L_55, m2550530949_MI_var);
V_8 = L_56;
}
IL_017a:
try
{ // begin try (depth: 1)
{
goto IL_0273;
}
IL_017f:
{
t1011928986 * L_57 = m2219564735((&V_8), m2219564735_MI_var);
V_7 = L_57;
t1011928986 * L_58 = V_7;
VirtActionInvoker0::Invoke(5 /* System.Void UnityEngine.GUILayoutEntry::CalcWidth() */, L_58);
t1011928986 * L_59 = V_7;
t3394170884 * L_60 = VirtFuncInvoker0< t3394170884 * >::Invoke(4 /* UnityEngine.RectOffset UnityEngine.GUILayoutEntry::get_margin() */, L_59);
V_9 = L_60;
t1011928986 * L_61 = V_7;
t1006925219 * L_62 = m3507897988(L_61, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
t1006925219 * L_63 = m3628948340(NULL, NULL);
if ((((Il2CppObject*)(t1006925219 *)L_62) == ((Il2CppObject*)(t1006925219 *)L_63)))
{
goto IL_0237;
}
}
IL_01a9:
{
bool L_64 = V_2;
if (L_64)
{
goto IL_01d2;
}
}
IL_01af:
{
int32_t L_65 = V_6;
t3394170884 * L_66 = V_9;
int32_t L_67 = m4104523390(L_66, NULL);
if ((((int32_t)L_65) <= ((int32_t)L_67)))
{
goto IL_01c4;
}
}
IL_01bd:
{
int32_t L_68 = V_6;
G_B22_0 = L_68;
goto IL_01cb;
}
IL_01c4:
{
t3394170884 * L_69 = V_9;
int32_t L_70 = m4104523390(L_69, NULL);
G_B22_0 = L_70;
}
IL_01cb:
{
V_10 = G_B22_0;
goto IL_01d7;
}
IL_01d2:
{
V_10 = 0;
V_2 = (bool)0;
}
IL_01d7:
{
float L_71 = __this->fg22();
t1011928986 * L_72 = V_7;
float L_73 = L_72->fg0();
float L_74 = __this->fg13();
int32_t L_75 = V_10;
__this->fs22(((float)((float)L_71+(float)((float)((float)((float)((float)L_73+(float)L_74))+(float)(((float)((float)L_75))))))));
float L_76 = __this->fg23();
t1011928986 * L_77 = V_7;
float L_78 = L_77->fg1();
float L_79 = __this->fg13();
int32_t L_80 = V_10;
__this->fs23(((float)((float)L_76+(float)((float)((float)((float)((float)L_78+(float)L_79))+(float)(((float)((float)L_80))))))));
t3394170884 * L_81 = V_9;
int32_t L_82 = m3831383975(L_81, NULL);
V_6 = L_82;
int32_t L_83 = __this->fg18();
t1011928986 * L_84 = V_7;
int32_t L_85 = L_84->fg5();
__this->fs18(((int32_t)((int32_t)L_83+(int32_t)L_85)));
goto IL_0273;
}
IL_0237:
{
float L_86 = __this->fg22();
t1011928986 * L_87 = V_7;
float L_88 = L_87->fg0();
__this->fs22(((float)((float)L_86+(float)L_88)));
float L_89 = __this->fg23();
t1011928986 * L_90 = V_7;
float L_91 = L_90->fg1();
__this->fs23(((float)((float)L_89+(float)L_91)));
int32_t L_92 = __this->fg18();
t1011928986 * L_93 = V_7;
int32_t L_94 = L_93->fg5();
__this->fs18(((int32_t)((int32_t)L_92+(int32_t)L_94)));
}
IL_0273:
{
bool L_95 = m2002561277((&V_8), m2002561277_MI_var);
if (L_95)
{
goto IL_017f;
}
}
IL_027f:
{
IL2CPP_LEAVE(0x291, FINALLY_0284);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t1967233988 *)e.ex;
goto FINALLY_0284;
}
FINALLY_0284:
{ // begin finally (depth: 1)
t4189638243 L_96 = V_8;
t4189638243 L_97 = L_96;
Il2CppObject * L_98 = Box(t4189638243_TI_var, &L_97);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, t1628921374_TI_var, (Il2CppObject *)L_98);
IL2CPP_END_FINALLY(644)
} // end finally (depth: 1)
IL2CPP_CLEANUP(644)
{
IL2CPP_JUMP_TBL(0x291, IL_0291)
IL2CPP_RETHROW_IF_UNHANDLED(t1967233988 *)
}
IL_0291:
{
float L_99 = __this->fg22();
float L_100 = __this->fg13();
__this->fs22(((float)((float)L_99-(float)L_100)));
float L_101 = __this->fg23();
float L_102 = __this->fg13();
__this->fs23(((float)((float)L_101-(float)L_102)));
t1808887955 * L_103 = __this->fg10();
int32_t L_104 = VirtFuncInvoker0< int32_t >::Invoke(17 /* System.Int32 System.Collections.Generic.List`1<UnityEngine.GUILayoutEntry>::get_Count() */, L_103);
if (!L_104)
{
goto IL_02e6;
}
}
{
t1808887955 * L_105 = __this->fg10();
t1011928986 * L_106 = VirtFuncInvoker1< t1011928986 *, int32_t >::Invoke(28 /* !0 System.Collections.Generic.List`1<UnityEngine.GUILayoutEntry>::get_Item(System.Int32) */, L_105, 0);
t3394170884 * L_107 = VirtFuncInvoker0< t3394170884 * >::Invoke(4 /* UnityEngine.RectOffset UnityEngine.GUILayoutEntry::get_margin() */, L_106);
int32_t L_108 = m4104523390(L_107, NULL);
V_0 = L_108;
int32_t L_109 = V_6;
V_1 = L_109;
goto IL_02ea;
}
IL_02e6:
{
int32_t L_110 = 0;
V_1 = L_110;
V_0 = L_110;
}
IL_02ea:
{
V_11 = (0.0f);
V_12 = (0.0f);
t1006925219 * L_111 = m3507897988(__this, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
t1006925219 * L_112 = m2767659632(NULL, NULL);
if ((!(((Il2CppObject*)(t1006925219 *)L_111) == ((Il2CppObject*)(t1006925219 *)L_112))))
{
goto IL_0313;
}
}
{
bool L_113 = __this->fg20();
if (!L_113)
{
goto IL_034a;
}
}
IL_0313:
{
t1006925219 * L_114 = m3507897988(__this, NULL);
t3394170884 * L_115 = m3072941276(L_114, NULL);
int32_t L_116 = m4104523390(L_115, NULL);
int32_t L_117 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
int32_t L_118 = m2911193737(NULL, L_116, L_117, NULL);
V_11 = (((float)((float)L_118)));
t1006925219 * L_119 = m3507897988(__this, NULL);
t3394170884 * L_120 = m3072941276(L_119, NULL);
int32_t L_121 = m3831383975(L_120, NULL);
int32_t L_122 = V_1;
int32_t L_123 = m2911193737(NULL, L_121, L_122, NULL);
V_12 = (((float)((float)L_123)));
goto IL_036c;
}
IL_034a:
{
t3394170884 * L_124 = __this->fg26();
int32_t L_125 = V_0;
m901965251(L_124, L_125, NULL);
t3394170884 * L_126 = __this->fg26();
int32_t L_127 = V_1;
m2119805444(L_126, L_127, NULL);
float L_128 = (0.0f);
V_12 = L_128;
V_11 = L_128;
}
IL_036c:
{
float L_129 = ((t1011928986 *)__this)->fg0();
float L_130 = __this->fg22();
float L_131 = V_11;
float L_132 = V_12;
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
float L_133 = m3923796455(NULL, L_129, ((float)((float)((float)((float)L_130+(float)L_131))+(float)L_132)), NULL);
((t1011928986 *)__this)->fs0(L_133);
float L_134 = ((t1011928986 *)__this)->fg1();
if ((!(((float)L_134) == ((float)(0.0f)))))
{
goto IL_03db;
}
}
{
int32_t L_135 = ((t1011928986 *)__this)->fg5();
int32_t L_136 = __this->fg18();
t1006925219 * L_137 = m3507897988(__this, NULL);
bool L_138 = m38609341(L_137, NULL);
G_B38_0 = L_136;
G_B38_1 = L_135;
G_B38_2 = __this;
if (!L_138)
{
G_B39_0 = L_136;
G_B39_1 = L_135;
G_B39_2 = __this;
goto IL_03bc;
}
}
{
G_B40_0 = 1;
G_B40_1 = G_B38_0;
G_B40_2 = G_B38_1;
G_B40_3 = G_B38_2;
goto IL_03bd;
}
IL_03bc:
{
G_B40_0 = 0;
G_B40_1 = G_B39_0;
G_B40_2 = G_B39_1;
G_B40_3 = G_B39_2;
}
IL_03bd:
{
((t1011928986 *)G_B40_3)->fs5(((int32_t)((int32_t)G_B40_2+(int32_t)((int32_t)((int32_t)G_B40_1+(int32_t)G_B40_0)))));
float L_139 = __this->fg23();
float L_140 = V_11;
float L_141 = V_12;
((t1011928986 *)__this)->fs1(((float)((float)((float)((float)L_139+(float)L_140))+(float)L_141)));
goto IL_03e2;
}
IL_03db:
{
((t1011928986 *)__this)->fs5(0);
}
IL_03e2:
{
float L_142 = ((t1011928986 *)__this)->fg1();
float L_143 = ((t1011928986 *)__this)->fg0();
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
float L_144 = m3923796455(NULL, L_142, L_143, NULL);
((t1011928986 *)__this)->fs1(L_144);
t1006925219 * L_145 = m3507897988(__this, NULL);
float L_146 = m3249098964(L_145, NULL);
if ((((float)L_146) == ((float)(0.0f))))
{
goto IL_0431;
}
}
{
t1006925219 * L_147 = m3507897988(__this, NULL);
float L_148 = m3249098964(L_147, NULL);
float L_149 = L_148;
V_13 = L_149;
((t1011928986 *)__this)->fs0(L_149);
float L_150 = V_13;
((t1011928986 *)__this)->fs1(L_150);
((t1011928986 *)__this)->fs5(0);
}
IL_0431:
{
return;
}
}
extern TypeInfo* t1006925219_TI_var;
extern TypeInfo* t1597001355_TI_var;
extern TypeInfo* t4189638243_TI_var;
extern TypeInfo* t1628921374_TI_var;
extern TypeInfo* t1596329428_TI_var;
extern const MethodInfo* m2550530949_MI_var;
extern const MethodInfo* m2219564735_MI_var;
extern const MethodInfo* m2002561277_MI_var;
extern const uint32_t m985132857_MetadataUsageId;
extern "C" void m985132857 (t1013890471 * __this, float p0, float p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m985132857_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t3394170884 * V_0 = NULL;
t1011928986 * V_1 = NULL;
t4189638243 V_2;
memset(&V_2, 0, sizeof(V_2));
float V_3 = 0.0f;
float V_4 = 0.0f;
float V_5 = 0.0f;
float V_6 = 0.0f;
float V_7 = 0.0f;
t1011928986 * V_8 = NULL;
t4189638243 V_9;
memset(&V_9, 0, sizeof(V_9));
float V_10 = 0.0f;
float V_11 = 0.0f;
float V_12 = 0.0f;
float V_13 = 0.0f;
float V_14 = 0.0f;
int32_t V_15 = 0;
bool V_16 = false;
t1011928986 * V_17 = NULL;
t4189638243 V_18;
memset(&V_18, 0, sizeof(V_18));
float V_19 = 0.0f;
int32_t V_20 = 0;
int32_t V_21 = 0;
t1967233988 * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
t1967233988 * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
int32_t G_B39_0 = 0;
{
float L_0 = p0;
float L_1 = p1;
m3810336940(__this, L_0, L_1, NULL);
bool L_2 = __this->fg12();
if (!L_2)
{
goto IL_001a;
}
}
{
p0 = (0.0f);
}
IL_001a:
{
t1006925219 * L_3 = m3507897988(__this, NULL);
t3394170884 * L_4 = m3072941276(L_3, NULL);
V_0 = L_4;
bool L_5 = __this->fg11();
if (!L_5)
{
goto IL_01bb;
}
}
{
t1006925219 * L_6 = m3507897988(__this, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
t1006925219 * L_7 = m2767659632(NULL, NULL);
if ((((Il2CppObject*)(t1006925219 *)L_6) == ((Il2CppObject*)(t1006925219 *)L_7)))
{
goto IL_00eb;
}
}
{
t1808887955 * L_8 = __this->fg10();
t4189638243 L_9 = m2550530949(L_8, m2550530949_MI_var);
V_2 = L_9;
}
IL_004d:
try
{ // begin try (depth: 1)
{
goto IL_00c9;
}
IL_0052:
{
t1011928986 * L_10 = m2219564735((&V_2), m2219564735_MI_var);
V_1 = L_10;
t1011928986 * L_11 = V_1;
t3394170884 * L_12 = VirtFuncInvoker0< t3394170884 * >::Invoke(4 /* UnityEngine.RectOffset UnityEngine.GUILayoutEntry::get_margin() */, L_11);
int32_t L_13 = m4104523390(L_12, NULL);
t3394170884 * L_14 = V_0;
int32_t L_15 = m4104523390(L_14, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
int32_t L_16 = m2911193737(NULL, L_13, L_15, NULL);
V_3 = (((float)((float)L_16)));
float L_17 = p0;
float L_18 = V_3;
V_4 = ((float)((float)L_17+(float)L_18));
float L_19 = p1;
t1011928986 * L_20 = V_1;
t3394170884 * L_21 = VirtFuncInvoker0< t3394170884 * >::Invoke(4 /* UnityEngine.RectOffset UnityEngine.GUILayoutEntry::get_margin() */, L_20);
int32_t L_22 = m3831383975(L_21, NULL);
t3394170884 * L_23 = V_0;
int32_t L_24 = m3831383975(L_23, NULL);
int32_t L_25 = m2911193737(NULL, L_22, L_24, NULL);
float L_26 = V_3;
V_5 = ((float)((float)((float)((float)L_19-(float)(((float)((float)L_25)))))-(float)L_26));
t1011928986 * L_27 = V_1;
int32_t L_28 = L_27->fg5();
if (!L_28)
{
goto IL_00ae;
}
}
IL_009f:
{
t1011928986 * L_29 = V_1;
float L_30 = V_4;
float L_31 = V_5;
VirtActionInvoker2< float, float >::Invoke(7 /* System.Void UnityEngine.GUILayoutEntry::SetHorizontal(System.Single,System.Single) */, L_29, L_30, L_31);
goto IL_00c9;
}
IL_00ae:
{
t1011928986 * L_32 = V_1;
float L_33 = V_4;
float L_34 = V_5;
t1011928986 * L_35 = V_1;
float L_36 = L_35->fg0();
t1011928986 * L_37 = V_1;
float L_38 = L_37->fg1();
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
float L_39 = m3872743893(NULL, L_34, L_36, L_38, NULL);
VirtActionInvoker2< float, float >::Invoke(7 /* System.Void UnityEngine.GUILayoutEntry::SetHorizontal(System.Single,System.Single) */, L_32, L_33, L_39);
}
IL_00c9:
{
bool L_40 = m2002561277((&V_2), m2002561277_MI_var);
if (L_40)
{
goto IL_0052;
}
}
IL_00d5:
{
IL2CPP_LEAVE(0xE6, FINALLY_00da);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t1967233988 *)e.ex;
goto FINALLY_00da;
}
FINALLY_00da:
{ // begin finally (depth: 1)
t4189638243 L_41 = V_2;
t4189638243 L_42 = L_41;
Il2CppObject * L_43 = Box(t4189638243_TI_var, &L_42);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, t1628921374_TI_var, (Il2CppObject *)L_43);
IL2CPP_END_FINALLY(218)
} // end finally (depth: 1)
IL2CPP_CLEANUP(218)
{
IL2CPP_JUMP_TBL(0xE6, IL_00e6)
IL2CPP_RETHROW_IF_UNHANDLED(t1967233988 *)
}
IL_00e6:
{
goto IL_01b6;
}
IL_00eb:
{
float L_44 = p0;
t3394170884 * L_45 = VirtFuncInvoker0< t3394170884 * >::Invoke(4 /* UnityEngine.RectOffset UnityEngine.GUILayoutGroup::get_margin() */, __this);
int32_t L_46 = m4104523390(L_45, NULL);
V_6 = ((float)((float)L_44-(float)(((float)((float)L_46)))));
float L_47 = p1;
t3394170884 * L_48 = VirtFuncInvoker0< t3394170884 * >::Invoke(4 /* UnityEngine.RectOffset UnityEngine.GUILayoutGroup::get_margin() */, __this);
int32_t L_49 = m1186440923(L_48, NULL);
V_7 = ((float)((float)L_47+(float)(((float)((float)L_49)))));
t1808887955 * L_50 = __this->fg10();
t4189638243 L_51 = m2550530949(L_50, m2550530949_MI_var);
V_9 = L_51;
}
IL_0118:
try
{ // begin try (depth: 1)
{
goto IL_0198;
}
IL_011d:
{
t1011928986 * L_52 = m2219564735((&V_9), m2219564735_MI_var);
V_8 = L_52;
t1011928986 * L_53 = V_8;
int32_t L_54 = L_53->fg5();
if (!L_54)
{
goto IL_015e;
}
}
IL_0132:
{
t1011928986 * L_55 = V_8;
float L_56 = V_6;
t1011928986 * L_57 = V_8;
t3394170884 * L_58 = VirtFuncInvoker0< t3394170884 * >::Invoke(4 /* UnityEngine.RectOffset UnityEngine.GUILayoutEntry::get_margin() */, L_57);
int32_t L_59 = m4104523390(L_58, NULL);
float L_60 = V_7;
t1011928986 * L_61 = V_8;
t3394170884 * L_62 = VirtFuncInvoker0< t3394170884 * >::Invoke(4 /* UnityEngine.RectOffset UnityEngine.GUILayoutEntry::get_margin() */, L_61);
int32_t L_63 = m1186440923(L_62, NULL);
VirtActionInvoker2< float, float >::Invoke(7 /* System.Void UnityEngine.GUILayoutEntry::SetHorizontal(System.Single,System.Single) */, L_55, ((float)((float)L_56+(float)(((float)((float)L_59))))), ((float)((float)L_60-(float)(((float)((float)L_63))))));
goto IL_0198;
}
IL_015e:
{
t1011928986 * L_64 = V_8;
float L_65 = V_6;
t1011928986 * L_66 = V_8;
t3394170884 * L_67 = VirtFuncInvoker0< t3394170884 * >::Invoke(4 /* UnityEngine.RectOffset UnityEngine.GUILayoutEntry::get_margin() */, L_66);
int32_t L_68 = m4104523390(L_67, NULL);
float L_69 = V_7;
t1011928986 * L_70 = V_8;
t3394170884 * L_71 = VirtFuncInvoker0< t3394170884 * >::Invoke(4 /* UnityEngine.RectOffset UnityEngine.GUILayoutEntry::get_margin() */, L_70);
int32_t L_72 = m1186440923(L_71, NULL);
t1011928986 * L_73 = V_8;
float L_74 = L_73->fg0();
t1011928986 * L_75 = V_8;
float L_76 = L_75->fg1();
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
float L_77 = m3872743893(NULL, ((float)((float)L_69-(float)(((float)((float)L_72))))), L_74, L_76, NULL);
VirtActionInvoker2< float, float >::Invoke(7 /* System.Void UnityEngine.GUILayoutEntry::SetHorizontal(System.Single,System.Single) */, L_64, ((float)((float)L_65+(float)(((float)((float)L_68))))), L_77);
}
IL_0198:
{
bool L_78 = m2002561277((&V_9), m2002561277_MI_var);
if (L_78)
{
goto IL_011d;
}
}
IL_01a4:
{
IL2CPP_LEAVE(0x1B6, FINALLY_01a9);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t1967233988 *)e.ex;
goto FINALLY_01a9;
}
FINALLY_01a9:
{ // begin finally (depth: 1)
t4189638243 L_79 = V_9;
t4189638243 L_80 = L_79;
Il2CppObject * L_81 = Box(t4189638243_TI_var, &L_80);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, t1628921374_TI_var, (Il2CppObject *)L_81);
IL2CPP_END_FINALLY(425)
} // end finally (depth: 1)
IL2CPP_CLEANUP(425)
{
IL2CPP_JUMP_TBL(0x1B6, IL_01b6)
IL2CPP_RETHROW_IF_UNHANDLED(t1967233988 *)
}
IL_01b6:
{
goto IL_03b0;
}
IL_01bb:
{
t1006925219 * L_82 = m3507897988(__this, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
t1006925219 * L_83 = m2767659632(NULL, NULL);
if ((((Il2CppObject*)(t1006925219 *)L_82) == ((Il2CppObject*)(t1006925219 *)L_83)))
{
goto IL_0248;
}
}
{
t3394170884 * L_84 = V_0;
int32_t L_85 = m4104523390(L_84, NULL);
V_10 = (((float)((float)L_85)));
t3394170884 * L_86 = V_0;
int32_t L_87 = m3831383975(L_86, NULL);
V_11 = (((float)((float)L_87)));
t1808887955 * L_88 = __this->fg10();
int32_t L_89 = VirtFuncInvoker0< int32_t >::Invoke(17 /* System.Int32 System.Collections.Generic.List`1<UnityEngine.GUILayoutEntry>::get_Count() */, L_88);
if (!L_89)
{
goto IL_0239;
}
}
{
float L_90 = V_10;
t1808887955 * L_91 = __this->fg10();
t1011928986 * L_92 = VirtFuncInvoker1< t1011928986 *, int32_t >::Invoke(28 /* !0 System.Collections.Generic.List`1<UnityEngine.GUILayoutEntry>::get_Item(System.Int32) */, L_91, 0);
t3394170884 * L_93 = VirtFuncInvoker0< t3394170884 * >::Invoke(4 /* UnityEngine.RectOffset UnityEngine.GUILayoutEntry::get_margin() */, L_92);
int32_t L_94 = m4104523390(L_93, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
float L_95 = m3923796455(NULL, L_90, (((float)((float)L_94))), NULL);
V_10 = L_95;
float L_96 = V_11;
t1808887955 * L_97 = __this->fg10();
t1808887955 * L_98 = __this->fg10();
int32_t L_99 = VirtFuncInvoker0< int32_t >::Invoke(17 /* System.Int32 System.Collections.Generic.List`1<UnityEngine.GUILayoutEntry>::get_Count() */, L_98);
t1011928986 * L_100 = VirtFuncInvoker1< t1011928986 *, int32_t >::Invoke(28 /* !0 System.Collections.Generic.List`1<UnityEngine.GUILayoutEntry>::get_Item(System.Int32) */, L_97, ((int32_t)((int32_t)L_99-(int32_t)1)));
t3394170884 * L_101 = VirtFuncInvoker0< t3394170884 * >::Invoke(4 /* UnityEngine.RectOffset UnityEngine.GUILayoutEntry::get_margin() */, L_100);
int32_t L_102 = m3831383975(L_101, NULL);
float L_103 = m3923796455(NULL, L_96, (((float)((float)L_102))), NULL);
V_11 = L_103;
}
IL_0239:
{
float L_104 = p0;
float L_105 = V_10;
p0 = ((float)((float)L_104+(float)L_105));
float L_106 = p1;
float L_107 = V_11;
float L_108 = V_10;
p1 = ((float)((float)L_106-(float)((float)((float)L_107+(float)L_108))));
}
IL_0248:
{
float L_109 = p1;
float L_110 = __this->fg13();
t1808887955 * L_111 = __this->fg10();
int32_t L_112 = VirtFuncInvoker0< int32_t >::Invoke(17 /* System.Int32 System.Collections.Generic.List`1<UnityEngine.GUILayoutEntry>::get_Count() */, L_111);
V_12 = ((float)((float)L_109-(float)((float)((float)L_110*(float)(((float)((float)((int32_t)((int32_t)L_112-(int32_t)1)))))))));
V_13 = (0.0f);
float L_113 = __this->fg22();
float L_114 = __this->fg23();
if ((((float)L_113) == ((float)L_114)))
{
goto IL_02a1;
}
}
{
float L_115 = V_12;
float L_116 = __this->fg22();
float L_117 = __this->fg23();
float L_118 = __this->fg22();
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
float L_119 = m3872743893(NULL, ((float)((float)((float)((float)L_115-(float)L_116))/(float)((float)((float)L_117-(float)L_118)))), (0.0f), (1.0f), NULL);
V_13 = L_119;
}
IL_02a1:
{
V_14 = (0.0f);
float L_120 = V_12;
float L_121 = __this->fg23();
if ((!(((float)L_120) > ((float)L_121))))
{
goto IL_02d4;
}
}
{
int32_t L_122 = __this->fg18();
if ((((int32_t)L_122) <= ((int32_t)0)))
{
goto IL_02d4;
}
}
{
float L_123 = V_12;
float L_124 = __this->fg23();
int32_t L_125 = __this->fg18();
V_14 = ((float)((float)((float)((float)L_123-(float)L_124))/(float)(((float)((float)L_125)))));
}
IL_02d4:
{
V_15 = 0;
V_16 = (bool)1;
t1808887955 * L_126 = __this->fg10();
t4189638243 L_127 = m2550530949(L_126, m2550530949_MI_var);
V_18 = L_127;
}
IL_02e7:
try
{ // begin try (depth: 1)
{
goto IL_0392;
}
IL_02ec:
{
t1011928986 * L_128 = m2219564735((&V_18), m2219564735_MI_var);
V_17 = L_128;
t1011928986 * L_129 = V_17;
float L_130 = L_129->fg0();
t1011928986 * L_131 = V_17;
float L_132 = L_131->fg1();
float L_133 = V_13;
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
float L_134 = m3257777633(NULL, L_130, L_132, L_133, NULL);
V_19 = L_134;
float L_135 = V_19;
float L_136 = V_14;
t1011928986 * L_137 = V_17;
int32_t L_138 = L_137->fg5();
V_19 = ((float)((float)L_135+(float)((float)((float)L_136*(float)(((float)((float)L_138)))))));
t1011928986 * L_139 = V_17;
t1006925219 * L_140 = m3507897988(L_139, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
t1006925219 * L_141 = m3628948340(NULL, NULL);
if ((((Il2CppObject*)(t1006925219 *)L_140) == ((Il2CppObject*)(t1006925219 *)L_141)))
{
goto IL_0371;
}
}
IL_032d:
{
t1011928986 * L_142 = V_17;
t3394170884 * L_143 = VirtFuncInvoker0< t3394170884 * >::Invoke(4 /* UnityEngine.RectOffset UnityEngine.GUILayoutEntry::get_margin() */, L_142);
int32_t L_144 = m4104523390(L_143, NULL);
V_20 = L_144;
bool L_145 = V_16;
if (!L_145)
{
goto IL_0348;
}
}
IL_0342:
{
V_20 = 0;
V_16 = (bool)0;
}
IL_0348:
{
int32_t L_146 = V_15;
int32_t L_147 = V_20;
if ((((int32_t)L_146) <= ((int32_t)L_147)))
{
goto IL_0358;
}
}
IL_0351:
{
int32_t L_148 = V_15;
G_B39_0 = L_148;
goto IL_035a;
}
IL_0358:
{
int32_t L_149 = V_20;
G_B39_0 = L_149;
}
IL_035a:
{
V_21 = G_B39_0;
float L_150 = p0;
int32_t L_151 = V_21;
p0 = ((float)((float)L_150+(float)(((float)((float)L_151)))));
t1011928986 * L_152 = V_17;
t3394170884 * L_153 = VirtFuncInvoker0< t3394170884 * >::Invoke(4 /* UnityEngine.RectOffset UnityEngine.GUILayoutEntry::get_margin() */, L_152);
int32_t L_154 = m3831383975(L_153, NULL);
V_15 = L_154;
}
IL_0371:
{
t1011928986 * L_155 = V_17;
float L_156 = p0;
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
float L_157 = bankers_roundf(L_156);
float L_158 = V_19;
float L_159 = bankers_roundf(L_158);
VirtActionInvoker2< float, float >::Invoke(7 /* System.Void UnityEngine.GUILayoutEntry::SetHorizontal(System.Single,System.Single) */, L_155, L_157, L_159);
float L_160 = p0;
float L_161 = V_19;
float L_162 = __this->fg13();
p0 = ((float)((float)L_160+(float)((float)((float)L_161+(float)L_162))));
}
IL_0392:
{
bool L_163 = m2002561277((&V_18), m2002561277_MI_var);
if (L_163)
{
goto IL_02ec;
}
}
IL_039e:
{
IL2CPP_LEAVE(0x3B0, FINALLY_03a3);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t1967233988 *)e.ex;
goto FINALLY_03a3;
}
FINALLY_03a3:
{ // begin finally (depth: 1)
t4189638243 L_164 = V_18;
t4189638243 L_165 = L_164;
Il2CppObject * L_166 = Box(t4189638243_TI_var, &L_165);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, t1628921374_TI_var, (Il2CppObject *)L_166);
IL2CPP_END_FINALLY(931)
} // end finally (depth: 1)
IL2CPP_CLEANUP(931)
{
IL2CPP_JUMP_TBL(0x3B0, IL_03b0)
IL2CPP_RETHROW_IF_UNHANDLED(t1967233988 *)
}
IL_03b0:
{
return;
}
}
extern TypeInfo* t1596329428_TI_var;
extern TypeInfo* t1597001355_TI_var;
extern TypeInfo* t4189638243_TI_var;
extern TypeInfo* t1628921374_TI_var;
extern TypeInfo* t1006925219_TI_var;
extern const MethodInfo* m2550530949_MI_var;
extern const MethodInfo* m2219564735_MI_var;
extern const MethodInfo* m2002561277_MI_var;
extern const uint32_t m126240205_MetadataUsageId;
extern "C" void m126240205 (t1013890471 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m126240205_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
bool V_3 = false;
t1011928986 * V_4 = NULL;
t4189638243 V_5;
memset(&V_5, 0, sizeof(V_5));
t3394170884 * V_6 = NULL;
int32_t V_7 = 0;
bool V_8 = false;
t1011928986 * V_9 = NULL;
t4189638243 V_10;
memset(&V_10, 0, sizeof(V_10));
t3394170884 * V_11 = NULL;
float V_12 = 0.0f;
float V_13 = 0.0f;
float V_14 = 0.0f;
t1967233988 * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
t1967233988 * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
int32_t G_B36_0 = 0;
int32_t G_B36_1 = 0;
t1013890471 * G_B36_2 = NULL;
int32_t G_B35_0 = 0;
int32_t G_B35_1 = 0;
t1013890471 * G_B35_2 = NULL;
int32_t G_B37_0 = 0;
int32_t G_B37_1 = 0;
int32_t G_B37_2 = 0;
t1013890471 * G_B37_3 = NULL;
{
t1808887955 * L_0 = __this->fg10();
int32_t L_1 = VirtFuncInvoker0< int32_t >::Invoke(17 /* System.Int32 System.Collections.Generic.List`1<UnityEngine.GUILayoutEntry>::get_Count() */, L_0);
if (L_1)
{
goto IL_0033;
}
}
{
t1006925219 * L_2 = m3507897988(__this, NULL);
t3394170884 * L_3 = m3072941276(L_2, NULL);
int32_t L_4 = m3650431789(L_3, NULL);
float L_5 = (((float)((float)L_4)));
V_14 = L_5;
((t1011928986 *)__this)->fs2(L_5);
float L_6 = V_14;
((t1011928986 *)__this)->fs3(L_6);
return;
}
IL_0033:
{
V_0 = 0;
V_1 = 0;
__this->fs24((0.0f));
__this->fs25((0.0f));
__this->fs19(0);
bool L_7 = __this->fg11();
if (!L_7)
{
goto IL_01d4;
}
}
{
V_2 = 0;
V_3 = (bool)1;
t1808887955 * L_8 = __this->fg10();
t4189638243 L_9 = m2550530949(L_8, m2550530949_MI_var);
V_5 = L_9;
}
IL_0070:
try
{ // begin try (depth: 1)
{
goto IL_0159;
}
IL_0075:
{
t1011928986 * L_10 = m2219564735((&V_5), m2219564735_MI_var);
V_4 = L_10;
t1011928986 * L_11 = V_4;
VirtActionInvoker0::Invoke(6 /* System.Void UnityEngine.GUILayoutEntry::CalcHeight() */, L_11);
t1011928986 * L_12 = V_4;
t3394170884 * L_13 = VirtFuncInvoker0< t3394170884 * >::Invoke(4 /* UnityEngine.RectOffset UnityEngine.GUILayoutEntry::get_margin() */, L_12);
V_6 = L_13;
t1011928986 * L_14 = V_4;
t1006925219 * L_15 = m3507897988(L_14, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
t1006925219 * L_16 = m3628948340(NULL, NULL);
if ((((Il2CppObject*)(t1006925219 *)L_15) == ((Il2CppObject*)(t1006925219 *)L_16)))
{
goto IL_011d;
}
}
IL_009f:
{
bool L_17 = V_3;
if (L_17)
{
goto IL_00b9;
}
}
IL_00a5:
{
int32_t L_18 = V_2;
t3394170884 * L_19 = V_6;
int32_t L_20 = m140097312(L_19, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
int32_t L_21 = m2911193737(NULL, L_18, L_20, NULL);
V_7 = L_21;
goto IL_00be;
}
IL_00b9:
{
V_7 = 0;
V_3 = (bool)0;
}
IL_00be:
{
float L_22 = __this->fg24();
t1011928986 * L_23 = V_4;
float L_24 = L_23->fg2();
float L_25 = __this->fg13();
int32_t L_26 = V_7;
__this->fs24(((float)((float)L_22+(float)((float)((float)((float)((float)L_24+(float)L_25))+(float)(((float)((float)L_26))))))));
float L_27 = __this->fg25();
t1011928986 * L_28 = V_4;
float L_29 = L_28->fg3();
float L_30 = __this->fg13();
int32_t L_31 = V_7;
__this->fs25(((float)((float)L_27+(float)((float)((float)((float)((float)L_29+(float)L_30))+(float)(((float)((float)L_31))))))));
t3394170884 * L_32 = V_6;
int32_t L_33 = m2106858018(L_32, NULL);
V_2 = L_33;
int32_t L_34 = __this->fg19();
t1011928986 * L_35 = V_4;
int32_t L_36 = L_35->fg6();
__this->fs19(((int32_t)((int32_t)L_34+(int32_t)L_36)));
goto IL_0159;
}
IL_011d:
{
float L_37 = __this->fg24();
t1011928986 * L_38 = V_4;
float L_39 = L_38->fg2();
__this->fs24(((float)((float)L_37+(float)L_39)));
float L_40 = __this->fg25();
t1011928986 * L_41 = V_4;
float L_42 = L_41->fg3();
__this->fs25(((float)((float)L_40+(float)L_42)));
int32_t L_43 = __this->fg19();
t1011928986 * L_44 = V_4;
int32_t L_45 = L_44->fg6();
__this->fs19(((int32_t)((int32_t)L_43+(int32_t)L_45)));
}
IL_0159:
{
bool L_46 = m2002561277((&V_5), m2002561277_MI_var);
if (L_46)
{
goto IL_0075;
}
}
IL_0165:
{
IL2CPP_LEAVE(0x177, FINALLY_016a);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t1967233988 *)e.ex;
goto FINALLY_016a;
}
FINALLY_016a:
{ // begin finally (depth: 1)
t4189638243 L_47 = V_5;
t4189638243 L_48 = L_47;
Il2CppObject * L_49 = Box(t4189638243_TI_var, &L_48);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, t1628921374_TI_var, (Il2CppObject *)L_49);
IL2CPP_END_FINALLY(362)
} // end finally (depth: 1)
IL2CPP_CLEANUP(362)
{
IL2CPP_JUMP_TBL(0x177, IL_0177)
IL2CPP_RETHROW_IF_UNHANDLED(t1967233988 *)
}
IL_0177:
{
float L_50 = __this->fg24();
float L_51 = __this->fg13();
__this->fs24(((float)((float)L_50-(float)L_51)));
float L_52 = __this->fg25();
float L_53 = __this->fg13();
__this->fs25(((float)((float)L_52-(float)L_53)));
t1808887955 * L_54 = __this->fg10();
int32_t L_55 = VirtFuncInvoker0< int32_t >::Invoke(17 /* System.Int32 System.Collections.Generic.List`1<UnityEngine.GUILayoutEntry>::get_Count() */, L_54);
if (!L_55)
{
goto IL_01cb;
}
}
{
t1808887955 * L_56 = __this->fg10();
t1011928986 * L_57 = VirtFuncInvoker1< t1011928986 *, int32_t >::Invoke(28 /* !0 System.Collections.Generic.List`1<UnityEngine.GUILayoutEntry>::get_Item(System.Int32) */, L_56, 0);
t3394170884 * L_58 = VirtFuncInvoker0< t3394170884 * >::Invoke(4 /* UnityEngine.RectOffset UnityEngine.GUILayoutEntry::get_margin() */, L_57);
int32_t L_59 = m140097312(L_58, NULL);
V_0 = L_59;
int32_t L_60 = V_2;
V_1 = L_60;
goto IL_01cf;
}
IL_01cb:
{
int32_t L_61 = 0;
V_0 = L_61;
V_1 = L_61;
}
IL_01cf:
{
goto IL_02b0;
}
IL_01d4:
{
V_8 = (bool)1;
t1808887955 * L_62 = __this->fg10();
t4189638243 L_63 = m2550530949(L_62, m2550530949_MI_var);
V_10 = L_63;
}
IL_01e4:
try
{ // begin try (depth: 1)
{
goto IL_0292;
}
IL_01e9:
{
t1011928986 * L_64 = m2219564735((&V_10), m2219564735_MI_var);
V_9 = L_64;
t1011928986 * L_65 = V_9;
VirtActionInvoker0::Invoke(6 /* System.Void UnityEngine.GUILayoutEntry::CalcHeight() */, L_65);
t1011928986 * L_66 = V_9;
t3394170884 * L_67 = VirtFuncInvoker0< t3394170884 * >::Invoke(4 /* UnityEngine.RectOffset UnityEngine.GUILayoutEntry::get_margin() */, L_66);
V_11 = L_67;
t1011928986 * L_68 = V_9;
t1006925219 * L_69 = m3507897988(L_68, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
t1006925219 * L_70 = m3628948340(NULL, NULL);
if ((((Il2CppObject*)(t1006925219 *)L_69) == ((Il2CppObject*)(t1006925219 *)L_70)))
{
goto IL_027e;
}
}
IL_0213:
{
bool L_71 = V_8;
if (L_71)
{
goto IL_023b;
}
}
IL_021a:
{
t3394170884 * L_72 = V_11;
int32_t L_73 = m140097312(L_72, NULL);
int32_t L_74 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
int32_t L_75 = m2413438171(NULL, L_73, L_74, NULL);
V_0 = L_75;
t3394170884 * L_76 = V_11;
int32_t L_77 = m2106858018(L_76, NULL);
int32_t L_78 = V_1;
int32_t L_79 = m2413438171(NULL, L_77, L_78, NULL);
V_1 = L_79;
goto IL_024e;
}
IL_023b:
{
t3394170884 * L_80 = V_11;
int32_t L_81 = m140097312(L_80, NULL);
V_0 = L_81;
t3394170884 * L_82 = V_11;
int32_t L_83 = m2106858018(L_82, NULL);
V_1 = L_83;
V_8 = (bool)0;
}
IL_024e:
{
t1011928986 * L_84 = V_9;
float L_85 = L_84->fg2();
float L_86 = __this->fg24();
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
float L_87 = m3923796455(NULL, L_85, L_86, NULL);
__this->fs24(L_87);
t1011928986 * L_88 = V_9;
float L_89 = L_88->fg3();
float L_90 = __this->fg25();
float L_91 = m3923796455(NULL, L_89, L_90, NULL);
__this->fs25(L_91);
}
IL_027e:
{
int32_t L_92 = __this->fg19();
t1011928986 * L_93 = V_9;
int32_t L_94 = L_93->fg6();
__this->fs19(((int32_t)((int32_t)L_92+(int32_t)L_94)));
}
IL_0292:
{
bool L_95 = m2002561277((&V_10), m2002561277_MI_var);
if (L_95)
{
goto IL_01e9;
}
}
IL_029e:
{
IL2CPP_LEAVE(0x2B0, FINALLY_02a3);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t1967233988 *)e.ex;
goto FINALLY_02a3;
}
FINALLY_02a3:
{ // begin finally (depth: 1)
t4189638243 L_96 = V_10;
t4189638243 L_97 = L_96;
Il2CppObject * L_98 = Box(t4189638243_TI_var, &L_97);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, t1628921374_TI_var, (Il2CppObject *)L_98);
IL2CPP_END_FINALLY(675)
} // end finally (depth: 1)
IL2CPP_CLEANUP(675)
{
IL2CPP_JUMP_TBL(0x2B0, IL_02b0)
IL2CPP_RETHROW_IF_UNHANDLED(t1967233988 *)
}
IL_02b0:
{
V_12 = (0.0f);
V_13 = (0.0f);
t1006925219 * L_99 = m3507897988(__this, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
t1006925219 * L_100 = m2767659632(NULL, NULL);
if ((!(((Il2CppObject*)(t1006925219 *)L_99) == ((Il2CppObject*)(t1006925219 *)L_100))))
{
goto IL_02d9;
}
}
{
bool L_101 = __this->fg21();
if (!L_101)
{
goto IL_0310;
}
}
IL_02d9:
{
t1006925219 * L_102 = m3507897988(__this, NULL);
t3394170884 * L_103 = m3072941276(L_102, NULL);
int32_t L_104 = m140097312(L_103, NULL);
int32_t L_105 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
int32_t L_106 = m2911193737(NULL, L_104, L_105, NULL);
V_12 = (((float)((float)L_106)));
t1006925219 * L_107 = m3507897988(__this, NULL);
t3394170884 * L_108 = m3072941276(L_107, NULL);
int32_t L_109 = m2106858018(L_108, NULL);
int32_t L_110 = V_1;
int32_t L_111 = m2911193737(NULL, L_109, L_110, NULL);
V_13 = (((float)((float)L_111)));
goto IL_0332;
}
IL_0310:
{
t3394170884 * L_112 = __this->fg26();
int32_t L_113 = V_0;
m3043172093(L_112, L_113, NULL);
t3394170884 * L_114 = __this->fg26();
int32_t L_115 = V_1;
m3840454247(L_114, L_115, NULL);
float L_116 = (0.0f);
V_13 = L_116;
V_12 = L_116;
}
IL_0332:
{
float L_117 = ((t1011928986 *)__this)->fg2();
float L_118 = __this->fg24();
float L_119 = V_12;
float L_120 = V_13;
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
float L_121 = m3923796455(NULL, L_117, ((float)((float)((float)((float)L_118+(float)L_119))+(float)L_120)), NULL);
((t1011928986 *)__this)->fs2(L_121);
float L_122 = ((t1011928986 *)__this)->fg3();
if ((!(((float)L_122) == ((float)(0.0f)))))
{
goto IL_03a1;
}
}
{
int32_t L_123 = ((t1011928986 *)__this)->fg6();
int32_t L_124 = __this->fg19();
t1006925219 * L_125 = m3507897988(__this, NULL);
bool L_126 = m1700703922(L_125, NULL);
G_B35_0 = L_124;
G_B35_1 = L_123;
G_B35_2 = __this;
if (!L_126)
{
G_B36_0 = L_124;
G_B36_1 = L_123;
G_B36_2 = __this;
goto IL_0382;
}
}
{
G_B37_0 = 1;
G_B37_1 = G_B35_0;
G_B37_2 = G_B35_1;
G_B37_3 = G_B35_2;
goto IL_0383;
}
IL_0382:
{
G_B37_0 = 0;
G_B37_1 = G_B36_0;
G_B37_2 = G_B36_1;
G_B37_3 = G_B36_2;
}
IL_0383:
{
((t1011928986 *)G_B37_3)->fs6(((int32_t)((int32_t)G_B37_2+(int32_t)((int32_t)((int32_t)G_B37_1+(int32_t)G_B37_0)))));
float L_127 = __this->fg25();
float L_128 = V_12;
float L_129 = V_13;
((t1011928986 *)__this)->fs3(((float)((float)((float)((float)L_127+(float)L_128))+(float)L_129)));
goto IL_03a8;
}
IL_03a1:
{
((t1011928986 *)__this)->fs6(0);
}
IL_03a8:
{
float L_130 = ((t1011928986 *)__this)->fg3();
float L_131 = ((t1011928986 *)__this)->fg2();
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
float L_132 = m3923796455(NULL, L_130, L_131, NULL);
((t1011928986 *)__this)->fs3(L_132);
t1006925219 * L_133 = m3507897988(__this, NULL);
float L_134 = m2441634427(L_133, NULL);
if ((((float)L_134) == ((float)(0.0f))))
{
goto IL_03f7;
}
}
{
t1006925219 * L_135 = m3507897988(__this, NULL);
float L_136 = m2441634427(L_135, NULL);
float L_137 = L_136;
V_14 = L_137;
((t1011928986 *)__this)->fs2(L_137);
float L_138 = V_14;
((t1011928986 *)__this)->fs3(L_138);
((t1011928986 *)__this)->fs6(0);
}
IL_03f7:
{
return;
}
}
extern TypeInfo* t1006925219_TI_var;
extern TypeInfo* t1597001355_TI_var;
extern TypeInfo* t1596329428_TI_var;
extern TypeInfo* t4189638243_TI_var;
extern TypeInfo* t1628921374_TI_var;
extern const MethodInfo* m2550530949_MI_var;
extern const MethodInfo* m2219564735_MI_var;
extern const MethodInfo* m2002561277_MI_var;
extern const uint32_t m967336103_MetadataUsageId;
extern "C" void m967336103 (t1013890471 * __this, float p0, float p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m967336103_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t3394170884 * V_0 = NULL;
float V_1 = 0.0f;
float V_2 = 0.0f;
float V_3 = 0.0f;
float V_4 = 0.0f;
float V_5 = 0.0f;
int32_t V_6 = 0;
bool V_7 = false;
t1011928986 * V_8 = NULL;
t4189638243 V_9;
memset(&V_9, 0, sizeof(V_9));
float V_10 = 0.0f;
int32_t V_11 = 0;
int32_t V_12 = 0;
t1011928986 * V_13 = NULL;
t4189638243 V_14;
memset(&V_14, 0, sizeof(V_14));
float V_15 = 0.0f;
float V_16 = 0.0f;
float V_17 = 0.0f;
float V_18 = 0.0f;
float V_19 = 0.0f;
t1011928986 * V_20 = NULL;
t4189638243 V_21;
memset(&V_21, 0, sizeof(V_21));
t1967233988 * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
t1967233988 * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
int32_t G_B22_0 = 0;
{
float L_0 = p0;
float L_1 = p1;
m880890586(__this, L_0, L_1, NULL);
t1808887955 * L_2 = __this->fg10();
int32_t L_3 = VirtFuncInvoker0< int32_t >::Invoke(17 /* System.Int32 System.Collections.Generic.List`1<UnityEngine.GUILayoutEntry>::get_Count() */, L_2);
if (L_3)
{
goto IL_0019;
}
}
{
return;
}
IL_0019:
{
t1006925219 * L_4 = m3507897988(__this, NULL);
t3394170884 * L_5 = m3072941276(L_4, NULL);
V_0 = L_5;
bool L_6 = __this->fg12();
if (!L_6)
{
goto IL_0037;
}
}
{
p0 = (0.0f);
}
IL_0037:
{
bool L_7 = __this->fg11();
if (!L_7)
{
goto IL_022f;
}
}
{
t1006925219 * L_8 = m3507897988(__this, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
t1006925219 * L_9 = m2767659632(NULL, NULL);
if ((((Il2CppObject*)(t1006925219 *)L_8) == ((Il2CppObject*)(t1006925219 *)L_9)))
{
goto IL_00c6;
}
}
{
t3394170884 * L_10 = V_0;
int32_t L_11 = m140097312(L_10, NULL);
V_1 = (((float)((float)L_11)));
t3394170884 * L_12 = V_0;
int32_t L_13 = m2106858018(L_12, NULL);
V_2 = (((float)((float)L_13)));
t1808887955 * L_14 = __this->fg10();
int32_t L_15 = VirtFuncInvoker0< int32_t >::Invoke(17 /* System.Int32 System.Collections.Generic.List`1<UnityEngine.GUILayoutEntry>::get_Count() */, L_14);
if (!L_15)
{
goto IL_00ba;
}
}
{
float L_16 = V_1;
t1808887955 * L_17 = __this->fg10();
t1011928986 * L_18 = VirtFuncInvoker1< t1011928986 *, int32_t >::Invoke(28 /* !0 System.Collections.Generic.List`1<UnityEngine.GUILayoutEntry>::get_Item(System.Int32) */, L_17, 0);
t3394170884 * L_19 = VirtFuncInvoker0< t3394170884 * >::Invoke(4 /* UnityEngine.RectOffset UnityEngine.GUILayoutEntry::get_margin() */, L_18);
int32_t L_20 = m140097312(L_19, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
float L_21 = m3923796455(NULL, L_16, (((float)((float)L_20))), NULL);
V_1 = L_21;
float L_22 = V_2;
t1808887955 * L_23 = __this->fg10();
t1808887955 * L_24 = __this->fg10();
int32_t L_25 = VirtFuncInvoker0< int32_t >::Invoke(17 /* System.Int32 System.Collections.Generic.List`1<UnityEngine.GUILayoutEntry>::get_Count() */, L_24);
t1011928986 * L_26 = VirtFuncInvoker1< t1011928986 *, int32_t >::Invoke(28 /* !0 System.Collections.Generic.List`1<UnityEngine.GUILayoutEntry>::get_Item(System.Int32) */, L_23, ((int32_t)((int32_t)L_25-(int32_t)1)));
t3394170884 * L_27 = VirtFuncInvoker0< t3394170884 * >::Invoke(4 /* UnityEngine.RectOffset UnityEngine.GUILayoutEntry::get_margin() */, L_26);
int32_t L_28 = m2106858018(L_27, NULL);
float L_29 = m3923796455(NULL, L_22, (((float)((float)L_28))), NULL);
V_2 = L_29;
}
IL_00ba:
{
float L_30 = p0;
float L_31 = V_1;
p0 = ((float)((float)L_30+(float)L_31));
float L_32 = p1;
float L_33 = V_2;
float L_34 = V_1;
p1 = ((float)((float)L_32-(float)((float)((float)L_33+(float)L_34))));
}
IL_00c6:
{
float L_35 = p1;
float L_36 = __this->fg13();
t1808887955 * L_37 = __this->fg10();
int32_t L_38 = VirtFuncInvoker0< int32_t >::Invoke(17 /* System.Int32 System.Collections.Generic.List`1<UnityEngine.GUILayoutEntry>::get_Count() */, L_37);
V_3 = ((float)((float)L_35-(float)((float)((float)L_36*(float)(((float)((float)((int32_t)((int32_t)L_38-(int32_t)1)))))))));
V_4 = (0.0f);
float L_39 = __this->fg24();
float L_40 = __this->fg25();
if ((((float)L_39) == ((float)L_40)))
{
goto IL_011d;
}
}
{
float L_41 = V_3;
float L_42 = __this->fg24();
float L_43 = __this->fg25();
float L_44 = __this->fg24();
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
float L_45 = m3872743893(NULL, ((float)((float)((float)((float)L_41-(float)L_42))/(float)((float)((float)L_43-(float)L_44)))), (0.0f), (1.0f), NULL);
V_4 = L_45;
}
IL_011d:
{
V_5 = (0.0f);
float L_46 = V_3;
float L_47 = __this->fg25();
if ((!(((float)L_46) > ((float)L_47))))
{
goto IL_014e;
}
}
{
int32_t L_48 = __this->fg19();
if ((((int32_t)L_48) <= ((int32_t)0)))
{
goto IL_014e;
}
}
{
float L_49 = V_3;
float L_50 = __this->fg25();
int32_t L_51 = __this->fg19();
V_5 = ((float)((float)((float)((float)L_49-(float)L_50))/(float)(((float)((float)L_51)))));
}
IL_014e:
{
V_6 = 0;
V_7 = (bool)1;
t1808887955 * L_52 = __this->fg10();
t4189638243 L_53 = m2550530949(L_52, m2550530949_MI_var);
V_9 = L_53;
}
IL_0161:
try
{ // begin try (depth: 1)
{
goto IL_020c;
}
IL_0166:
{
t1011928986 * L_54 = m2219564735((&V_9), m2219564735_MI_var);
V_8 = L_54;
t1011928986 * L_55 = V_8;
float L_56 = L_55->fg2();
t1011928986 * L_57 = V_8;
float L_58 = L_57->fg3();
float L_59 = V_4;
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
float L_60 = m3257777633(NULL, L_56, L_58, L_59, NULL);
V_10 = L_60;
float L_61 = V_10;
float L_62 = V_5;
t1011928986 * L_63 = V_8;
int32_t L_64 = L_63->fg6();
V_10 = ((float)((float)L_61+(float)((float)((float)L_62*(float)(((float)((float)L_64)))))));
t1011928986 * L_65 = V_8;
t1006925219 * L_66 = m3507897988(L_65, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
t1006925219 * L_67 = m3628948340(NULL, NULL);
if ((((Il2CppObject*)(t1006925219 *)L_66) == ((Il2CppObject*)(t1006925219 *)L_67)))
{
goto IL_01eb;
}
}
IL_01a7:
{
t1011928986 * L_68 = V_8;
t3394170884 * L_69 = VirtFuncInvoker0< t3394170884 * >::Invoke(4 /* UnityEngine.RectOffset UnityEngine.GUILayoutEntry::get_margin() */, L_68);
int32_t L_70 = m140097312(L_69, NULL);
V_11 = L_70;
bool L_71 = V_7;
if (!L_71)
{
goto IL_01c2;
}
}
IL_01bc:
{
V_11 = 0;
V_7 = (bool)0;
}
IL_01c2:
{
int32_t L_72 = V_6;
int32_t L_73 = V_11;
if ((((int32_t)L_72) <= ((int32_t)L_73)))
{
goto IL_01d2;
}
}
IL_01cb:
{
int32_t L_74 = V_6;
G_B22_0 = L_74;
goto IL_01d4;
}
IL_01d2:
{
int32_t L_75 = V_11;
G_B22_0 = L_75;
}
IL_01d4:
{
V_12 = G_B22_0;
float L_76 = p0;
int32_t L_77 = V_12;
p0 = ((float)((float)L_76+(float)(((float)((float)L_77)))));
t1011928986 * L_78 = V_8;
t3394170884 * L_79 = VirtFuncInvoker0< t3394170884 * >::Invoke(4 /* UnityEngine.RectOffset UnityEngine.GUILayoutEntry::get_margin() */, L_78);
int32_t L_80 = m2106858018(L_79, NULL);
V_6 = L_80;
}
IL_01eb:
{
t1011928986 * L_81 = V_8;
float L_82 = p0;
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
float L_83 = bankers_roundf(L_82);
float L_84 = V_10;
float L_85 = bankers_roundf(L_84);
VirtActionInvoker2< float, float >::Invoke(8 /* System.Void UnityEngine.GUILayoutEntry::SetVertical(System.Single,System.Single) */, L_81, L_83, L_85);
float L_86 = p0;
float L_87 = V_10;
float L_88 = __this->fg13();
p0 = ((float)((float)L_86+(float)((float)((float)L_87+(float)L_88))));
}
IL_020c:
{
bool L_89 = m2002561277((&V_9), m2002561277_MI_var);
if (L_89)
{
goto IL_0166;
}
}
IL_0218:
{
IL2CPP_LEAVE(0x22A, FINALLY_021d);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t1967233988 *)e.ex;
goto FINALLY_021d;
}
FINALLY_021d:
{ // begin finally (depth: 1)
t4189638243 L_90 = V_9;
t4189638243 L_91 = L_90;
Il2CppObject * L_92 = Box(t4189638243_TI_var, &L_91);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, t1628921374_TI_var, (Il2CppObject *)L_92);
IL2CPP_END_FINALLY(541)
} // end finally (depth: 1)
IL2CPP_CLEANUP(541)
{
IL2CPP_JUMP_TBL(0x22A, IL_022a)
IL2CPP_RETHROW_IF_UNHANDLED(t1967233988 *)
}
IL_022a:
{
goto IL_03c1;
}
IL_022f:
{
t1006925219 * L_93 = m3507897988(__this, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
t1006925219 * L_94 = m2767659632(NULL, NULL);
if ((((Il2CppObject*)(t1006925219 *)L_93) == ((Il2CppObject*)(t1006925219 *)L_94)))
{
goto IL_02f6;
}
}
{
t1808887955 * L_95 = __this->fg10();
t4189638243 L_96 = m2550530949(L_95, m2550530949_MI_var);
V_14 = L_96;
}
IL_024c:
try
{ // begin try (depth: 1)
{
goto IL_02d3;
}
IL_0251:
{
t1011928986 * L_97 = m2219564735((&V_14), m2219564735_MI_var);
V_13 = L_97;
t1011928986 * L_98 = V_13;
t3394170884 * L_99 = VirtFuncInvoker0< t3394170884 * >::Invoke(4 /* UnityEngine.RectOffset UnityEngine.GUILayoutEntry::get_margin() */, L_98);
int32_t L_100 = m140097312(L_99, NULL);
t3394170884 * L_101 = V_0;
int32_t L_102 = m140097312(L_101, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
int32_t L_103 = m2911193737(NULL, L_100, L_102, NULL);
V_15 = (((float)((float)L_103)));
float L_104 = p0;
float L_105 = V_15;
V_16 = ((float)((float)L_104+(float)L_105));
float L_106 = p1;
t1011928986 * L_107 = V_13;
t3394170884 * L_108 = VirtFuncInvoker0< t3394170884 * >::Invoke(4 /* UnityEngine.RectOffset UnityEngine.GUILayoutEntry::get_margin() */, L_107);
int32_t L_109 = m2106858018(L_108, NULL);
t3394170884 * L_110 = V_0;
int32_t L_111 = m2106858018(L_110, NULL);
int32_t L_112 = m2911193737(NULL, L_109, L_111, NULL);
float L_113 = V_15;
V_17 = ((float)((float)((float)((float)L_106-(float)(((float)((float)L_112)))))-(float)L_113));
t1011928986 * L_114 = V_13;
int32_t L_115 = L_114->fg6();
if (!L_115)
{
goto IL_02b5;
}
}
IL_02a5:
{
t1011928986 * L_116 = V_13;
float L_117 = V_16;
float L_118 = V_17;
VirtActionInvoker2< float, float >::Invoke(8 /* System.Void UnityEngine.GUILayoutEntry::SetVertical(System.Single,System.Single) */, L_116, L_117, L_118);
goto IL_02d3;
}
IL_02b5:
{
t1011928986 * L_119 = V_13;
float L_120 = V_16;
float L_121 = V_17;
t1011928986 * L_122 = V_13;
float L_123 = L_122->fg2();
t1011928986 * L_124 = V_13;
float L_125 = L_124->fg3();
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
float L_126 = m3872743893(NULL, L_121, L_123, L_125, NULL);
VirtActionInvoker2< float, float >::Invoke(8 /* System.Void UnityEngine.GUILayoutEntry::SetVertical(System.Single,System.Single) */, L_119, L_120, L_126);
}
IL_02d3:
{
bool L_127 = m2002561277((&V_14), m2002561277_MI_var);
if (L_127)
{
goto IL_0251;
}
}
IL_02df:
{
IL2CPP_LEAVE(0x2F1, FINALLY_02e4);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t1967233988 *)e.ex;
goto FINALLY_02e4;
}
FINALLY_02e4:
{ // begin finally (depth: 1)
t4189638243 L_128 = V_14;
t4189638243 L_129 = L_128;
Il2CppObject * L_130 = Box(t4189638243_TI_var, &L_129);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, t1628921374_TI_var, (Il2CppObject *)L_130);
IL2CPP_END_FINALLY(740)
} // end finally (depth: 1)
IL2CPP_CLEANUP(740)
{
IL2CPP_JUMP_TBL(0x2F1, IL_02f1)
IL2CPP_RETHROW_IF_UNHANDLED(t1967233988 *)
}
IL_02f1:
{
goto IL_03c1;
}
IL_02f6:
{
float L_131 = p0;
t3394170884 * L_132 = VirtFuncInvoker0< t3394170884 * >::Invoke(4 /* UnityEngine.RectOffset UnityEngine.GUILayoutGroup::get_margin() */, __this);
int32_t L_133 = m140097312(L_132, NULL);
V_18 = ((float)((float)L_131-(float)(((float)((float)L_133)))));
float L_134 = p1;
t3394170884 * L_135 = VirtFuncInvoker0< t3394170884 * >::Invoke(4 /* UnityEngine.RectOffset UnityEngine.GUILayoutGroup::get_margin() */, __this);
int32_t L_136 = m3650431789(L_135, NULL);
V_19 = ((float)((float)L_134+(float)(((float)((float)L_136)))));
t1808887955 * L_137 = __this->fg10();
t4189638243 L_138 = m2550530949(L_137, m2550530949_MI_var);
V_21 = L_138;
}
IL_0323:
try
{ // begin try (depth: 1)
{
goto IL_03a3;
}
IL_0328:
{
t1011928986 * L_139 = m2219564735((&V_21), m2219564735_MI_var);
V_20 = L_139;
t1011928986 * L_140 = V_20;
int32_t L_141 = L_140->fg6();
if (!L_141)
{
goto IL_0369;
}
}
IL_033d:
{
t1011928986 * L_142 = V_20;
float L_143 = V_18;
t1011928986 * L_144 = V_20;
t3394170884 * L_145 = VirtFuncInvoker0< t3394170884 * >::Invoke(4 /* UnityEngine.RectOffset UnityEngine.GUILayoutEntry::get_margin() */, L_144);
int32_t L_146 = m140097312(L_145, NULL);
float L_147 = V_19;
t1011928986 * L_148 = V_20;
t3394170884 * L_149 = VirtFuncInvoker0< t3394170884 * >::Invoke(4 /* UnityEngine.RectOffset UnityEngine.GUILayoutEntry::get_margin() */, L_148);
int32_t L_150 = m3650431789(L_149, NULL);
VirtActionInvoker2< float, float >::Invoke(8 /* System.Void UnityEngine.GUILayoutEntry::SetVertical(System.Single,System.Single) */, L_142, ((float)((float)L_143+(float)(((float)((float)L_146))))), ((float)((float)L_147-(float)(((float)((float)L_150))))));
goto IL_03a3;
}
IL_0369:
{
t1011928986 * L_151 = V_20;
float L_152 = V_18;
t1011928986 * L_153 = V_20;
t3394170884 * L_154 = VirtFuncInvoker0< t3394170884 * >::Invoke(4 /* UnityEngine.RectOffset UnityEngine.GUILayoutEntry::get_margin() */, L_153);
int32_t L_155 = m140097312(L_154, NULL);
float L_156 = V_19;
t1011928986 * L_157 = V_20;
t3394170884 * L_158 = VirtFuncInvoker0< t3394170884 * >::Invoke(4 /* UnityEngine.RectOffset UnityEngine.GUILayoutEntry::get_margin() */, L_157);
int32_t L_159 = m3650431789(L_158, NULL);
t1011928986 * L_160 = V_20;
float L_161 = L_160->fg2();
t1011928986 * L_162 = V_20;
float L_163 = L_162->fg3();
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
float L_164 = m3872743893(NULL, ((float)((float)L_156-(float)(((float)((float)L_159))))), L_161, L_163, NULL);
VirtActionInvoker2< float, float >::Invoke(8 /* System.Void UnityEngine.GUILayoutEntry::SetVertical(System.Single,System.Single) */, L_151, ((float)((float)L_152+(float)(((float)((float)L_155))))), L_164);
}
IL_03a3:
{
bool L_165 = m2002561277((&V_21), m2002561277_MI_var);
if (L_165)
{
goto IL_0328;
}
}
IL_03af:
{
IL2CPP_LEAVE(0x3C1, FINALLY_03b4);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t1967233988 *)e.ex;
goto FINALLY_03b4;
}
FINALLY_03b4:
{ // begin finally (depth: 1)
t4189638243 L_166 = V_21;
t4189638243 L_167 = L_166;
Il2CppObject * L_168 = Box(t4189638243_TI_var, &L_167);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, t1628921374_TI_var, (Il2CppObject *)L_168);
IL2CPP_END_FINALLY(948)
} // end finally (depth: 1)
IL2CPP_CLEANUP(948)
{
IL2CPP_JUMP_TBL(0x3C1, IL_03c1)
IL2CPP_RETHROW_IF_UNHANDLED(t1967233988 *)
}
IL_03c1:
{
return;
}
}
extern TypeInfo* String_t_TI_var;
extern TypeInfo* t1011928986_TI_var;
extern TypeInfo* t11523773_TI_var;
extern TypeInfo* t958209021_TI_var;
extern TypeInfo* t4189638243_TI_var;
extern TypeInfo* t1628921374_TI_var;
extern const MethodInfo* m2550530949_MI_var;
extern const MethodInfo* m2219564735_MI_var;
extern const MethodInfo* m2002561277_MI_var;
extern Il2CppCodeGenString* _stringLiteral32;
extern Il2CppCodeGenString* _stringLiteral3260706347;
extern Il2CppCodeGenString* _stringLiteral34575;
extern Il2CppCodeGenString* _stringLiteral10;
extern Il2CppCodeGenString* _stringLiteral125;
extern const uint32_t m2567598720_MetadataUsageId;
extern "C" String_t* m2567598720 (t1013890471 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2567598720_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
String_t* V_0 = NULL;
String_t* V_1 = NULL;
int32_t V_2 = 0;
t1011928986 * V_3 = NULL;
t4189638243 V_4;
memset(&V_4, 0, sizeof(V_4));
String_t* V_5 = NULL;
t1967233988 * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
t1967233988 * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
{
IL2CPP_RUNTIME_CLASS_INIT(String_t_TI_var);
String_t* L_0 = ((String_t_SFs*)String_t_TI_var->static_fields)->fg2();
V_0 = L_0;
String_t* L_1 = ((String_t_SFs*)String_t_TI_var->static_fields)->fg2();
V_1 = L_1;
V_2 = 0;
goto IL_0023;
}
IL_0013:
{
String_t* L_2 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(String_t_TI_var);
String_t* L_3 = m138640077(NULL, L_2, _stringLiteral32, NULL);
V_1 = L_3;
int32_t L_4 = V_2;
V_2 = ((int32_t)((int32_t)L_4+(int32_t)1));
}
IL_0023:
{
int32_t L_5 = V_2;
IL2CPP_RUNTIME_CLASS_INIT(t1011928986_TI_var);
int32_t L_6 = ((t1011928986_SFs*)t1011928986_TI_var->static_fields)->fg9();
if ((((int32_t)L_5) < ((int32_t)L_6)))
{
goto IL_0013;
}
}
{
String_t* L_7 = V_0;
V_5 = L_7;
t11523773* L_8 = ((t11523773*)SZArrayNew(t11523773_TI_var, (uint32_t)5));
String_t* L_9 = V_5;
ArrayElementTypeCheck (L_8, L_9);
(L_8)->SetAt(static_cast<il2cpp_array_size_t>(0), (Il2CppObject *)L_9);
t11523773* L_10 = L_8;
String_t* L_11 = m4021956595(__this, NULL);
ArrayElementTypeCheck (L_10, L_11);
(L_10)->SetAt(static_cast<il2cpp_array_size_t>(1), (Il2CppObject *)L_11);
t11523773* L_12 = L_10;
ArrayElementTypeCheck (L_12, _stringLiteral3260706347);
(L_12)->SetAt(static_cast<il2cpp_array_size_t>(2), (Il2CppObject *)_stringLiteral3260706347);
t11523773* L_13 = L_12;
float L_14 = __this->fg24();
float L_15 = L_14;
Il2CppObject * L_16 = Box(t958209021_TI_var, &L_15);
ArrayElementTypeCheck (L_13, L_16);
(L_13)->SetAt(static_cast<il2cpp_array_size_t>(3), (Il2CppObject *)L_16);
t11523773* L_17 = L_13;
ArrayElementTypeCheck (L_17, _stringLiteral34575);
(L_17)->SetAt(static_cast<il2cpp_array_size_t>(4), (Il2CppObject *)_stringLiteral34575);
IL2CPP_RUNTIME_CLASS_INIT(String_t_TI_var);
String_t* L_18 = m3016520001(NULL, L_17, NULL);
V_0 = L_18;
IL2CPP_RUNTIME_CLASS_INIT(t1011928986_TI_var);
int32_t L_19 = ((t1011928986_SFs*)t1011928986_TI_var->static_fields)->fg9();
((t1011928986_SFs*)t1011928986_TI_var->static_fields)->fs9(((int32_t)((int32_t)L_19+(int32_t)4)));
t1808887955 * L_20 = __this->fg10();
t4189638243 L_21 = m2550530949(L_20, m2550530949_MI_var);
V_4 = L_21;
}
IL_0082:
try
{ // begin try (depth: 1)
{
goto IL_00a1;
}
IL_0087:
{
t1011928986 * L_22 = m2219564735((&V_4), m2219564735_MI_var);
V_3 = L_22;
String_t* L_23 = V_0;
t1011928986 * L_24 = V_3;
String_t* L_25 = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String UnityEngine.GUILayoutEntry::ToString() */, L_24);
IL2CPP_RUNTIME_CLASS_INIT(String_t_TI_var);
String_t* L_26 = m1825781833(NULL, L_23, L_25, _stringLiteral10, NULL);
V_0 = L_26;
}
IL_00a1:
{
bool L_27 = m2002561277((&V_4), m2002561277_MI_var);
if (L_27)
{
goto IL_0087;
}
}
IL_00ad:
{
IL2CPP_LEAVE(0xBF, FINALLY_00b2);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t1967233988 *)e.ex;
goto FINALLY_00b2;
}
FINALLY_00b2:
{ // begin finally (depth: 1)
t4189638243 L_28 = V_4;
t4189638243 L_29 = L_28;
Il2CppObject * L_30 = Box(t4189638243_TI_var, &L_29);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, t1628921374_TI_var, (Il2CppObject *)L_30);
IL2CPP_END_FINALLY(178)
} // end finally (depth: 1)
IL2CPP_CLEANUP(178)
{
IL2CPP_JUMP_TBL(0xBF, IL_00bf)
IL2CPP_RETHROW_IF_UNHANDLED(t1967233988 *)
}
IL_00bf:
{
String_t* L_31 = V_0;
String_t* L_32 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(String_t_TI_var);
String_t* L_33 = m1825781833(NULL, L_31, L_32, _stringLiteral125, NULL);
V_0 = L_33;
IL2CPP_RUNTIME_CLASS_INIT(t1011928986_TI_var);
int32_t L_34 = ((t1011928986_SFs*)t1011928986_TI_var->static_fields)->fg9();
((t1011928986_SFs*)t1011928986_TI_var->static_fields)->fs9(((int32_t)((int32_t)L_34-(int32_t)4)));
String_t* L_35 = V_0;
return L_35;
}
}
extern "C" void m573459815 (t3151226183 * __this, int32_t p0, Il2CppObject * p1, const MethodInfo* method)
{
{
m1772956182(__this, NULL);
int32_t L_0 = p0;
__this->fs0(L_0);
Il2CppObject * L_1 = p1;
__this->fs1(L_1);
return;
}
}
extern TypeInfo* t4143842295_TI_var;
extern TypeInfo* t1596329428_TI_var;
extern TypeInfo* t3653031512_TI_var;
extern const MethodInfo* m2847756069_MI_var;
extern const uint32_t m1548085895_MetadataUsageId;
extern "C" void m1548085895 (Il2CppObject * __this , const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m1548085895_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t4143842295 * L_0 = (t4143842295 *)il2cpp_codegen_object_new(t4143842295_TI_var);
m2847756069(L_0, m2847756069_MI_var);
((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fs0(L_0);
t4143842295 * L_1 = (t4143842295 *)il2cpp_codegen_object_new(t4143842295_TI_var);
m2847756069(L_1, m2847756069_MI_var);
((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fs1(L_1);
t3653031512 * L_2 = (t3653031512 *)il2cpp_codegen_object_new(t3653031512_TI_var);
m3196944573(L_2, NULL);
((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fs2(L_2);
t1525428817 L_3;
memset(&L_3, 0, sizeof(L_3));
m3291325233(&L_3, (0.0f), (0.0f), (1.0f), (1.0f), NULL);
((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fs3(L_3);
return;
}
}
extern TypeInfo* t1596329428_TI_var;
extern TypeInfo* t3653031512_TI_var;
extern const uint32_t m801008209_MetadataUsageId;
extern "C" t3653031512 * m801008209 (Il2CppObject * __this , int32_t p0, bool p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m801008209_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t4143842295 * V_0 = NULL;
t3653031512 * V_1 = NULL;
t4143842295 * G_B3_0 = NULL;
{
bool L_0 = p1;
if (!L_0)
{
goto IL_0010;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
t4143842295 * L_1 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg1();
G_B3_0 = L_1;
goto IL_0015;
}
IL_0010:
{
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
t4143842295 * L_2 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg0();
G_B3_0 = L_2;
}
IL_0015:
{
V_0 = G_B3_0;
t4143842295 * L_3 = V_0;
int32_t L_4 = p0;
bool L_5 = VirtFuncInvoker2< bool, int32_t, t3653031512 ** >::Invoke(31 /* System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.GUILayoutUtility/LayoutCache>::TryGetValue(!0,!1&) */, L_3, L_4, (&V_1));
if (L_5)
{
goto IL_0037;
}
}
{
t3653031512 * L_6 = (t3653031512 *)il2cpp_codegen_object_new(t3653031512_TI_var);
m3196944573(L_6, NULL);
V_1 = L_6;
t4143842295 * L_7 = V_0;
int32_t L_8 = p0;
t3653031512 * L_9 = V_1;
VirtActionInvoker2< int32_t, t3653031512 * >::Invoke(25 /* System.Void System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.GUILayoutUtility/LayoutCache>::set_Item(!0,!1) */, L_7, L_8, L_9);
goto IL_0037;
}
IL_0037:
{
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
t3653031512 * L_10 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t3653031512 * L_11 = V_1;
t1013890471 * L_12 = L_11->fg0();
L_10->fs0(L_12);
t3653031512 * L_13 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t3653031512 * L_14 = V_1;
t2344941421 * L_15 = L_14->fg1();
L_13->fs1(L_15);
t3653031512 * L_16 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t3653031512 * L_17 = V_1;
t1013890471 * L_18 = L_17->fg2();
L_16->fs2(L_18);
t3653031512 * L_19 = V_1;
return L_19;
}
}
extern TypeInfo* t1596329428_TI_var;
extern TypeInfo* t1013890471_TI_var;
extern const uint32_t m2012081982_MetadataUsageId;
extern "C" void m2012081982 (Il2CppObject * __this , int32_t p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2012081982_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t3653031512 * V_0 = NULL;
t1013890471 * V_1 = NULL;
{
int32_t L_0 = p0;
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
t3653031512 * L_1 = m801008209(NULL, L_0, (bool)0, NULL);
V_0 = L_1;
t1590224583 * L_2 = m238587645(NULL, NULL);
int32_t L_3 = m2209939250(L_2, NULL);
if ((!(((uint32_t)L_3) == ((uint32_t)8))))
{
goto IL_0075;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
t3653031512 * L_4 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t3653031512 * L_5 = V_0;
t1013890471 * L_6 = (t1013890471 *)il2cpp_codegen_object_new(t1013890471_TI_var);
m3393996275(L_6, NULL);
t1013890471 * L_7 = L_6;
V_1 = L_7;
L_5->fs0(L_7);
t1013890471 * L_8 = V_1;
L_4->fs0(L_8);
t3653031512 * L_9 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t2344941421 * L_10 = L_9->fg1();
VirtActionInvoker0::Invoke(11 /* System.Void System.Collections.Stack::Clear() */, L_10);
t3653031512 * L_11 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t2344941421 * L_12 = L_11->fg1();
t3653031512 * L_13 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t1013890471 * L_14 = L_13->fg0();
VirtActionInvoker1< Il2CppObject * >::Invoke(17 /* System.Void System.Collections.Stack::Push(System.Object) */, L_12, L_14);
t3653031512 * L_15 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t3653031512 * L_16 = V_0;
t1013890471 * L_17 = (t1013890471 *)il2cpp_codegen_object_new(t1013890471_TI_var);
m3393996275(L_17, NULL);
t1013890471 * L_18 = L_17;
V_1 = L_18;
L_16->fs2(L_18);
t1013890471 * L_19 = V_1;
L_15->fs2(L_19);
goto IL_00a5;
}
IL_0075:
{
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
t3653031512 * L_20 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t3653031512 * L_21 = V_0;
t1013890471 * L_22 = L_21->fg0();
L_20->fs0(L_22);
t3653031512 * L_23 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t3653031512 * L_24 = V_0;
t2344941421 * L_25 = L_24->fg1();
L_23->fs1(L_25);
t3653031512 * L_26 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t3653031512 * L_27 = V_0;
t1013890471 * L_28 = L_27->fg2();
L_26->fs2(L_28);
}
IL_00a5:
{
return;
}
}
extern TypeInfo* t1596329428_TI_var;
extern TypeInfo* t1013890471_TI_var;
extern const uint32_t m4017651538_MetadataUsageId;
extern "C" void m4017651538 (Il2CppObject * __this , int32_t p0, t1006925219 * p1, t1890718142* p2, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m4017651538_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t3653031512 * V_0 = NULL;
t1013890471 * V_1 = NULL;
{
int32_t L_0 = p0;
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
t3653031512 * L_1 = m801008209(NULL, L_0, (bool)1, NULL);
V_0 = L_1;
t1590224583 * L_2 = m238587645(NULL, NULL);
int32_t L_3 = m2209939250(L_2, NULL);
if ((!(((uint32_t)L_3) == ((uint32_t)8))))
{
goto IL_00ab;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
t3653031512 * L_4 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t3653031512 * L_5 = V_0;
t1013890471 * L_6 = (t1013890471 *)il2cpp_codegen_object_new(t1013890471_TI_var);
m3393996275(L_6, NULL);
t1013890471 * L_7 = L_6;
V_1 = L_7;
L_5->fs0(L_7);
t1013890471 * L_8 = V_1;
L_4->fs0(L_8);
t3653031512 * L_9 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t1013890471 * L_10 = L_9->fg0();
t1006925219 * L_11 = p1;
m706118245(L_10, L_11, NULL);
t3653031512 * L_12 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t1013890471 * L_13 = L_12->fg0();
int32_t L_14 = p0;
L_13->fs16(L_14);
t1890718142* L_15 = p2;
if (!L_15)
{
goto IL_0066;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
t3653031512 * L_16 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t1013890471 * L_17 = L_16->fg0();
t1890718142* L_18 = p2;
VirtActionInvoker1< t1890718142* >::Invoke(10 /* System.Void UnityEngine.GUILayoutGroup::ApplyOptions(UnityEngine.GUILayoutOption[]) */, L_17, L_18);
}
IL_0066:
{
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
t3653031512 * L_19 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t2344941421 * L_20 = L_19->fg1();
VirtActionInvoker0::Invoke(11 /* System.Void System.Collections.Stack::Clear() */, L_20);
t3653031512 * L_21 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t2344941421 * L_22 = L_21->fg1();
t3653031512 * L_23 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t1013890471 * L_24 = L_23->fg0();
VirtActionInvoker1< Il2CppObject * >::Invoke(17 /* System.Void System.Collections.Stack::Push(System.Object) */, L_22, L_24);
t3653031512 * L_25 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t3653031512 * L_26 = V_0;
t1013890471 * L_27 = (t1013890471 *)il2cpp_codegen_object_new(t1013890471_TI_var);
m3393996275(L_27, NULL);
t1013890471 * L_28 = L_27;
V_1 = L_28;
L_26->fs2(L_28);
t1013890471 * L_29 = V_1;
L_25->fs2(L_29);
goto IL_00db;
}
IL_00ab:
{
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
t3653031512 * L_30 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t3653031512 * L_31 = V_0;
t1013890471 * L_32 = L_31->fg0();
L_30->fs0(L_32);
t3653031512 * L_33 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t3653031512 * L_34 = V_0;
t2344941421 * L_35 = L_34->fg1();
L_33->fs1(L_35);
t3653031512 * L_36 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t3653031512 * L_37 = V_0;
t1013890471 * L_38 = L_37->fg2();
L_36->fs2(L_38);
}
IL_00db:
{
return;
}
}
extern TypeInfo* t1596329428_TI_var;
extern TypeInfo* t1366332446_TI_var;
extern TypeInfo* t1597001355_TI_var;
extern const uint32_t m1143185416_MetadataUsageId;
extern "C" void m1143185416 (Il2CppObject * __this , const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m1143185416_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
t3653031512 * L_0 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t1013890471 * L_1 = L_0->fg0();
int32_t L_2 = L_1->fg16();
if ((!(((uint32_t)L_2) == ((uint32_t)(-1)))))
{
goto IL_00af;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
t3653031512 * L_3 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t1013890471 * L_4 = L_3->fg0();
VirtActionInvoker0::Invoke(5 /* System.Void UnityEngine.GUILayoutGroup::CalcWidth() */, L_4);
t3653031512 * L_5 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t1013890471 * L_6 = L_5->fg0();
int32_t L_7 = m3080333084(NULL, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1366332446_TI_var);
float L_8 = m2351352349(NULL, NULL);
t3653031512 * L_9 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t1013890471 * L_10 = L_9->fg0();
float L_11 = ((t1011928986 *)L_10)->fg1();
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
float L_12 = m2322067385(NULL, ((float)((float)(((float)((float)L_7)))/(float)L_8)), L_11, NULL);
VirtActionInvoker2< float, float >::Invoke(7 /* System.Void UnityEngine.GUILayoutGroup::SetHorizontal(System.Single,System.Single) */, L_6, (0.0f), L_12);
t3653031512 * L_13 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t1013890471 * L_14 = L_13->fg0();
VirtActionInvoker0::Invoke(6 /* System.Void UnityEngine.GUILayoutGroup::CalcHeight() */, L_14);
t3653031512 * L_15 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t1013890471 * L_16 = L_15->fg0();
int32_t L_17 = m1504859443(NULL, NULL);
float L_18 = m2351352349(NULL, NULL);
t3653031512 * L_19 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t1013890471 * L_20 = L_19->fg0();
float L_21 = ((t1011928986 *)L_20)->fg3();
float L_22 = m2322067385(NULL, ((float)((float)(((float)((float)L_17)))/(float)L_18)), L_21, NULL);
VirtActionInvoker2< float, float >::Invoke(8 /* System.Void UnityEngine.GUILayoutGroup::SetVertical(System.Single,System.Single) */, L_16, (0.0f), L_22);
t3653031512 * L_23 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t1013890471 * L_24 = L_23->fg2();
m2250873692(NULL, L_24, NULL);
goto IL_00cd;
}
IL_00af:
{
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
t3653031512 * L_25 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t1013890471 * L_26 = L_25->fg0();
m1841651392(NULL, L_26, NULL);
t3653031512 * L_27 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t1013890471 * L_28 = L_27->fg2();
m2250873692(NULL, L_28, NULL);
}
IL_00cd:
{
return;
}
}
extern TypeInfo* t1596329428_TI_var;
extern TypeInfo* t1366332446_TI_var;
extern const uint32_t m3347777775_MetadataUsageId;
extern "C" void m3347777775 (Il2CppObject * __this , const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3347777775_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
t3653031512 * L_0 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t1013890471 * L_1 = L_0->fg0();
VirtActionInvoker0::Invoke(5 /* System.Void UnityEngine.GUILayoutGroup::CalcWidth() */, L_1);
t3653031512 * L_2 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t1013890471 * L_3 = L_2->fg0();
int32_t L_4 = m3080333084(NULL, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1366332446_TI_var);
float L_5 = m2351352349(NULL, NULL);
VirtActionInvoker2< float, float >::Invoke(7 /* System.Void UnityEngine.GUILayoutGroup::SetHorizontal(System.Single,System.Single) */, L_3, (0.0f), ((float)((float)(((float)((float)L_4)))/(float)L_5)));
t3653031512 * L_6 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t1013890471 * L_7 = L_6->fg0();
VirtActionInvoker0::Invoke(6 /* System.Void UnityEngine.GUILayoutGroup::CalcHeight() */, L_7);
t3653031512 * L_8 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t1013890471 * L_9 = L_8->fg0();
int32_t L_10 = m1504859443(NULL, NULL);
float L_11 = m2351352349(NULL, NULL);
VirtActionInvoker2< float, float >::Invoke(8 /* System.Void UnityEngine.GUILayoutGroup::SetVertical(System.Single,System.Single) */, L_9, (0.0f), ((float)((float)(((float)((float)L_10)))/(float)L_11)));
t3653031512 * L_12 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg2();
t1013890471 * L_13 = L_12->fg2();
m2250873692(NULL, L_13, NULL);
return;
}
}
extern TypeInfo* t1013890471_TI_var;
extern TypeInfo* t1596329428_TI_var;
extern TypeInfo* t4189638243_TI_var;
extern TypeInfo* t1628921374_TI_var;
extern const MethodInfo* m2550530949_MI_var;
extern const MethodInfo* m2219564735_MI_var;
extern const MethodInfo* m2002561277_MI_var;
extern const uint32_t m2250873692_MetadataUsageId;
extern "C" void m2250873692 (Il2CppObject * __this , t1013890471 * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2250873692_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t1013890471 * V_0 = NULL;
t4189638243 V_1;
memset(&V_1, 0, sizeof(V_1));
t1967233988 * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
t1967233988 * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
{
t1013890471 * L_0 = p0;
t1808887955 * L_1 = L_0->fg10();
t4189638243 L_2 = m2550530949(L_1, m2550530949_MI_var);
V_1 = L_2;
}
IL_000c:
try
{ // begin try (depth: 1)
{
goto IL_0024;
}
IL_0011:
{
t1011928986 * L_3 = m2219564735((&V_1), m2219564735_MI_var);
V_0 = ((t1013890471 *)CastclassClass(L_3, t1013890471_TI_var));
t1013890471 * L_4 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
m1841651392(NULL, L_4, NULL);
}
IL_0024:
{
bool L_5 = m2002561277((&V_1), m2002561277_MI_var);
if (L_5)
{
goto IL_0011;
}
}
IL_0030:
{
IL2CPP_LEAVE(0x41, FINALLY_0035);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t1967233988 *)e.ex;
goto FINALLY_0035;
}
FINALLY_0035:
{ // begin finally (depth: 1)
t4189638243 L_6 = V_1;
t4189638243 L_7 = L_6;
Il2CppObject * L_8 = Box(t4189638243_TI_var, &L_7);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, t1628921374_TI_var, (Il2CppObject *)L_8);
IL2CPP_END_FINALLY(53)
} // end finally (depth: 1)
IL2CPP_CLEANUP(53)
{
IL2CPP_JUMP_TBL(0x41, IL_0041)
IL2CPP_RETHROW_IF_UNHANDLED(t1967233988 *)
}
IL_0041:
{
t1013890471 * L_9 = p0;
m982464342(L_9, NULL);
return;
}
}
extern TypeInfo* t1597001355_TI_var;
extern TypeInfo* t1596329428_TI_var;
extern const uint32_t m1841651392_MetadataUsageId;
extern "C" void m1841651392 (Il2CppObject * __this , t1013890471 * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m1841651392_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
float V_0 = 0.0f;
float V_1 = 0.0f;
float V_2 = 0.0f;
float V_3 = 0.0f;
t1525428817 V_4;
memset(&V_4, 0, sizeof(V_4));
{
t1013890471 * L_0 = p0;
bool L_1 = L_0->fg15();
if (L_1)
{
goto IL_0074;
}
}
{
t1013890471 * L_2 = p0;
float L_3 = ((t1011928986 *)L_2)->fg0();
V_0 = L_3;
t1013890471 * L_4 = p0;
float L_5 = ((t1011928986 *)L_4)->fg1();
V_1 = L_5;
t1013890471 * L_6 = p0;
VirtActionInvoker0::Invoke(5 /* System.Void UnityEngine.GUILayoutGroup::CalcWidth() */, L_6);
t1013890471 * L_7 = p0;
t1013890471 * L_8 = p0;
t1525428817 * L_9 = ((t1011928986 *)L_8)->fag4();
float L_10 = m982385354(L_9, NULL);
t1013890471 * L_11 = p0;
float L_12 = ((t1011928986 *)L_11)->fg1();
float L_13 = V_0;
float L_14 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
float L_15 = m3872743893(NULL, L_12, L_13, L_14, NULL);
VirtActionInvoker2< float, float >::Invoke(7 /* System.Void UnityEngine.GUILayoutGroup::SetHorizontal(System.Single,System.Single) */, L_7, L_10, L_15);
t1013890471 * L_16 = p0;
float L_17 = ((t1011928986 *)L_16)->fg2();
V_2 = L_17;
t1013890471 * L_18 = p0;
float L_19 = ((t1011928986 *)L_18)->fg3();
V_3 = L_19;
t1013890471 * L_20 = p0;
VirtActionInvoker0::Invoke(6 /* System.Void UnityEngine.GUILayoutGroup::CalcHeight() */, L_20);
t1013890471 * L_21 = p0;
t1013890471 * L_22 = p0;
t1525428817 * L_23 = ((t1011928986 *)L_22)->fag4();
float L_24 = m982386315(L_23, NULL);
t1013890471 * L_25 = p0;
float L_26 = ((t1011928986 *)L_25)->fg3();
float L_27 = V_2;
float L_28 = V_3;
float L_29 = m3872743893(NULL, L_26, L_27, L_28, NULL);
VirtActionInvoker2< float, float >::Invoke(8 /* System.Void UnityEngine.GUILayoutGroup::SetVertical(System.Single,System.Single) */, L_21, L_24, L_29);
goto IL_00e8;
}
IL_0074:
{
t1013890471 * L_30 = p0;
VirtActionInvoker0::Invoke(5 /* System.Void UnityEngine.GUILayoutGroup::CalcWidth() */, L_30);
t1013890471 * L_31 = p0;
int32_t L_32 = L_31->fg16();
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
t1525428817 L_33 = m1168223211(NULL, L_32, NULL);
V_4 = L_33;
t1013890471 * L_34 = p0;
float L_35 = m982385354((&V_4), NULL);
float L_36 = m2824209432((&V_4), NULL);
t1013890471 * L_37 = p0;
float L_38 = ((t1011928986 *)L_37)->fg0();
t1013890471 * L_39 = p0;
float L_40 = ((t1011928986 *)L_39)->fg1();
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
float L_41 = m3872743893(NULL, L_36, L_38, L_40, NULL);
VirtActionInvoker2< float, float >::Invoke(7 /* System.Void UnityEngine.GUILayoutGroup::SetHorizontal(System.Single,System.Single) */, L_34, L_35, L_41);
t1013890471 * L_42 = p0;
VirtActionInvoker0::Invoke(6 /* System.Void UnityEngine.GUILayoutGroup::CalcHeight() */, L_42);
t1013890471 * L_43 = p0;
float L_44 = m982386315((&V_4), NULL);
float L_45 = m2154960823((&V_4), NULL);
t1013890471 * L_46 = p0;
float L_47 = ((t1011928986 *)L_46)->fg2();
t1013890471 * L_48 = p0;
float L_49 = ((t1011928986 *)L_48)->fg3();
float L_50 = m3872743893(NULL, L_45, L_47, L_49, NULL);
VirtActionInvoker2< float, float >::Invoke(8 /* System.Void UnityEngine.GUILayoutGroup::SetVertical(System.Single,System.Single) */, L_43, L_44, L_50);
t1013890471 * L_51 = p0;
int32_t L_52 = L_51->fg16();
t1013890471 * L_53 = p0;
t1525428817 L_54 = ((t1011928986 *)L_53)->fg4();
m2191818611(NULL, L_52, L_54, NULL);
}
IL_00e8:
{
return;
}
}
extern TypeInfo* t1596329428_TI_var;
extern TypeInfo* t1006925219_TI_var;
extern const uint32_t m3628948340_MetadataUsageId;
extern "C" t1006925219 * m3628948340 (Il2CppObject * __this , const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3628948340_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
t1006925219 * L_0 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg4();
if (L_0)
{
goto IL_0014;
}
}
{
t1006925219 * L_1 = (t1006925219 *)il2cpp_codegen_object_new(t1006925219_TI_var);
m478034167(L_1, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fs4(L_1);
}
IL_0014:
{
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
t1006925219 * L_2 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg4();
m829487234(L_2, (bool)0, NULL);
t1006925219 * L_3 = ((t1596329428_SFs*)t1596329428_TI_var->static_fields)->fg4();
return L_3;
}
}
extern TypeInfo* t1596329428_TI_var;
extern const uint32_t m1168223211_MetadataUsageId;
extern "C" t1525428817 m1168223211 (Il2CppObject * __this , int32_t p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m1168223211_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t1525428817 V_0;
memset(&V_0, 0, sizeof(V_0));
{
int32_t L_0 = p0;
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
m1468033111(NULL, L_0, (&V_0), NULL);
t1525428817 L_1 = V_0;
return L_1;
}
}
extern "C" void m1468033111 (Il2CppObject * __this , int32_t p0, t1525428817 * p1, const MethodInfo* method)
{
typedef void (*m1468033111_ftn) (int32_t, t1525428817 *);
static m1468033111_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1468033111_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUILayoutUtility::INTERNAL_CALL_Internal_GetWindowRect(System.Int32,UnityEngine.Rect&)");
_il2cpp_icall_func(p0, p1);
}
extern TypeInfo* t1596329428_TI_var;
extern const uint32_t m2191818611_MetadataUsageId;
extern "C" void m2191818611 (Il2CppObject * __this , int32_t p0, t1525428817 p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2191818611_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
int32_t L_0 = p0;
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
m115257690(NULL, L_0, (&p1), NULL);
return;
}
}
extern "C" void m115257690 (Il2CppObject * __this , int32_t p0, t1525428817 * p1, const MethodInfo* method)
{
typedef void (*m115257690_ftn) (int32_t, t1525428817 *);
static m115257690_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m115257690_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUILayoutUtility::INTERNAL_CALL_Internal_MoveWindow(System.Int32,UnityEngine.Rect&)");
_il2cpp_icall_func(p0, p1);
}
extern TypeInfo* t1013890471_TI_var;
extern TypeInfo* t2344941421_TI_var;
extern const uint32_t m3196944573_MetadataUsageId;
extern "C" void m3196944573 (t3653031512 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3196944573_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t1013890471 * L_0 = (t1013890471 *)il2cpp_codegen_object_new(t1013890471_TI_var);
m3393996275(L_0, NULL);
__this->fs0(L_0);
t2344941421 * L_1 = (t2344941421 *)il2cpp_codegen_object_new(t2344941421_TI_var);
m2328546233(L_1, NULL);
__this->fs1(L_1);
t1013890471 * L_2 = (t1013890471 *)il2cpp_codegen_object_new(t1013890471_TI_var);
m3393996275(L_2, NULL);
__this->fs2(L_2);
m1772956182(__this, NULL);
t2344941421 * L_3 = __this->fg1();
t1013890471 * L_4 = __this->fg0();
VirtActionInvoker1< Il2CppObject * >::Invoke(17 /* System.Void System.Collections.Stack::Push(System.Object) */, L_3, L_4);
return;
}
}
extern "C" void m2652149846 (t1067753444 * __this, const MethodInfo* method)
{
{
__this->fs33((bool)1);
__this->fs34((bool)1);
m3393996275(__this, NULL);
return;
}
}
extern "C" void m2187011109 (t1067753444 * __this, const MethodInfo* method)
{
float V_0 = 0.0f;
float V_1 = 0.0f;
{
float L_0 = ((t1011928986 *)__this)->fg0();
V_0 = L_0;
float L_1 = ((t1011928986 *)__this)->fg1();
V_1 = L_1;
bool L_2 = __this->fg33();
if (!L_2)
{
goto IL_002f;
}
}
{
((t1011928986 *)__this)->fs0((0.0f));
((t1011928986 *)__this)->fs1((0.0f));
}
IL_002f:
{
m1234746178(__this, NULL);
float L_3 = ((t1011928986 *)__this)->fg0();
__this->fs27(L_3);
float L_4 = ((t1011928986 *)__this)->fg1();
__this->fs28(L_4);
bool L_5 = __this->fg33();
if (!L_5)
{
goto IL_009e;
}
}
{
float L_6 = ((t1011928986 *)__this)->fg0();
if ((!(((float)L_6) > ((float)(32.0f)))))
{
goto IL_0073;
}
}
{
((t1011928986 *)__this)->fs0((32.0f));
}
IL_0073:
{
float L_7 = V_0;
if ((((float)L_7) == ((float)(0.0f))))
{
goto IL_0085;
}
}
{
float L_8 = V_0;
((t1011928986 *)__this)->fs0(L_8);
}
IL_0085:
{
float L_9 = V_1;
if ((((float)L_9) == ((float)(0.0f))))
{
goto IL_009e;
}
}
{
float L_10 = V_1;
((t1011928986 *)__this)->fs1(L_10);
((t1011928986 *)__this)->fs5(0);
}
IL_009e:
{
return;
}
}
extern "C" void m3329305078 (t1067753444 * __this, float p0, float p1, const MethodInfo* method)
{
float V_0 = 0.0f;
float G_B3_0 = 0.0f;
{
bool L_0 = __this->fg36();
if (!L_0)
{
goto IL_002f;
}
}
{
float L_1 = p1;
t1006925219 * L_2 = __this->fg38();
float L_3 = m3249098964(L_2, NULL);
t1006925219 * L_4 = __this->fg38();
t3394170884 * L_5 = m4279849445(L_4, NULL);
int32_t L_6 = m4104523390(L_5, NULL);
G_B3_0 = ((float)((float)((float)((float)L_1-(float)L_3))-(float)(((float)((float)L_6)))));
goto IL_0030;
}
IL_002f:
{
float L_7 = p1;
G_B3_0 = L_7;
}
IL_0030:
{
V_0 = G_B3_0;
bool L_8 = __this->fg33();
if (!L_8)
{
goto IL_0091;
}
}
{
float L_9 = V_0;
float L_10 = __this->fg27();
if ((!(((float)L_9) < ((float)L_10))))
{
goto IL_0091;
}
}
{
__this->fs35((bool)1);
float L_11 = __this->fg27();
((t1011928986 *)__this)->fs0(L_11);
float L_12 = __this->fg28();
((t1011928986 *)__this)->fs1(L_12);
float L_13 = p0;
float L_14 = __this->fg27();
m985132857(__this, L_13, L_14, NULL);
t1525428817 * L_15 = ((t1011928986 *)__this)->fag4();
float L_16 = p1;
m3771513595(L_15, L_16, NULL);
float L_17 = __this->fg27();
__this->fs31(L_17);
goto IL_00d6;
}
IL_0091:
{
__this->fs35((bool)0);
bool L_18 = __this->fg33();
if (!L_18)
{
goto IL_00bb;
}
}
{
float L_19 = __this->fg27();
((t1011928986 *)__this)->fs0(L_19);
float L_20 = __this->fg28();
((t1011928986 *)__this)->fs1(L_20);
}
IL_00bb:
{
float L_21 = p0;
float L_22 = V_0;
m985132857(__this, L_21, L_22, NULL);
t1525428817 * L_23 = ((t1011928986 *)__this)->fag4();
float L_24 = p1;
m3771513595(L_23, L_24, NULL);
float L_25 = V_0;
__this->fs31(L_25);
}
IL_00d6:
{
return;
}
}
extern "C" void m3876649290 (t1067753444 * __this, const MethodInfo* method)
{
float V_0 = 0.0f;
float V_1 = 0.0f;
float V_2 = 0.0f;
{
float L_0 = ((t1011928986 *)__this)->fg2();
V_0 = L_0;
float L_1 = ((t1011928986 *)__this)->fg3();
V_1 = L_1;
bool L_2 = __this->fg34();
if (!L_2)
{
goto IL_002f;
}
}
{
((t1011928986 *)__this)->fs2((0.0f));
((t1011928986 *)__this)->fs3((0.0f));
}
IL_002f:
{
m126240205(__this, NULL);
float L_3 = ((t1011928986 *)__this)->fg2();
__this->fs29(L_3);
float L_4 = ((t1011928986 *)__this)->fg3();
__this->fs30(L_4);
bool L_5 = __this->fg35();
if (!L_5)
{
goto IL_0092;
}
}
{
t1006925219 * L_6 = __this->fg37();
float L_7 = m2441634427(L_6, NULL);
t1006925219 * L_8 = __this->fg37();
t3394170884 * L_9 = m4279849445(L_8, NULL);
int32_t L_10 = m140097312(L_9, NULL);
V_2 = ((float)((float)L_7+(float)(((float)((float)L_10)))));
float L_11 = ((t1011928986 *)__this)->fg2();
float L_12 = V_2;
((t1011928986 *)__this)->fs2(((float)((float)L_11+(float)L_12)));
float L_13 = ((t1011928986 *)__this)->fg3();
float L_14 = V_2;
((t1011928986 *)__this)->fs3(((float)((float)L_13+(float)L_14)));
}
IL_0092:
{
bool L_15 = __this->fg34();
if (!L_15)
{
goto IL_00e3;
}
}
{
float L_16 = ((t1011928986 *)__this)->fg2();
if ((!(((float)L_16) > ((float)(32.0f)))))
{
goto IL_00b8;
}
}
{
((t1011928986 *)__this)->fs2((32.0f));
}
IL_00b8:
{
float L_17 = V_0;
if ((((float)L_17) == ((float)(0.0f))))
{
goto IL_00ca;
}
}
{
float L_18 = V_0;
((t1011928986 *)__this)->fs2(L_18);
}
IL_00ca:
{
float L_19 = V_1;
if ((((float)L_19) == ((float)(0.0f))))
{
goto IL_00e3;
}
}
{
float L_20 = V_1;
((t1011928986 *)__this)->fs3(L_20);
((t1011928986 *)__this)->fs6(0);
}
IL_00e3:
{
return;
}
}
extern "C" void m3472565924 (t1067753444 * __this, float p0, float p1, const MethodInfo* method)
{
float V_0 = 0.0f;
float V_1 = 0.0f;
float V_2 = 0.0f;
float V_3 = 0.0f;
{
float L_0 = p1;
V_0 = L_0;
bool L_1 = __this->fg35();
if (!L_1)
{
goto IL_002d;
}
}
{
float L_2 = V_0;
t1006925219 * L_3 = __this->fg37();
float L_4 = m2441634427(L_3, NULL);
t1006925219 * L_5 = __this->fg37();
t3394170884 * L_6 = m4279849445(L_5, NULL);
int32_t L_7 = m140097312(L_6, NULL);
V_0 = ((float)((float)L_2-(float)((float)((float)L_4+(float)(((float)((float)L_7)))))));
}
IL_002d:
{
bool L_8 = __this->fg34();
if (!L_8)
{
goto IL_0139;
}
}
{
float L_9 = V_0;
float L_10 = __this->fg29();
if ((!(((float)L_9) < ((float)L_10))))
{
goto IL_0139;
}
}
{
bool L_11 = __this->fg35();
if (L_11)
{
goto IL_00db;
}
}
{
bool L_12 = __this->fg36();
if (L_12)
{
goto IL_00db;
}
}
{
t1525428817 * L_13 = ((t1011928986 *)__this)->fag4();
float L_14 = m2824209432(L_13, NULL);
t1006925219 * L_15 = __this->fg38();
float L_16 = m3249098964(L_15, NULL);
t1006925219 * L_17 = __this->fg38();
t3394170884 * L_18 = m4279849445(L_17, NULL);
int32_t L_19 = m4104523390(L_18, NULL);
__this->fs31(((float)((float)((float)((float)L_14-(float)L_16))-(float)(((float)((float)L_19))))));
float L_20 = __this->fg31();
float L_21 = __this->fg27();
if ((!(((float)L_20) < ((float)L_21))))
{
goto IL_00a6;
}
}
{
float L_22 = __this->fg27();
__this->fs31(L_22);
}
IL_00a6:
{
t1525428817 * L_23 = ((t1011928986 *)__this)->fag4();
float L_24 = m2824209432(L_23, NULL);
V_1 = L_24;
t1525428817 * L_25 = ((t1011928986 *)__this)->fag4();
float L_26 = m982385354(L_25, NULL);
float L_27 = __this->fg31();
m3329305078(__this, L_26, L_27, NULL);
m3876649290(__this, NULL);
t1525428817 * L_28 = ((t1011928986 *)__this)->fag4();
float L_29 = V_1;
m3771513595(L_28, L_29, NULL);
}
IL_00db:
{
float L_30 = ((t1011928986 *)__this)->fg2();
V_2 = L_30;
float L_31 = ((t1011928986 *)__this)->fg3();
V_3 = L_31;
float L_32 = __this->fg29();
((t1011928986 *)__this)->fs2(L_32);
float L_33 = __this->fg30();
((t1011928986 *)__this)->fs3(L_33);
float L_34 = p0;
float L_35 = __this->fg29();
m967336103(__this, L_34, L_35, NULL);
float L_36 = V_2;
((t1011928986 *)__this)->fs2(L_36);
float L_37 = V_3;
((t1011928986 *)__this)->fs3(L_37);
t1525428817 * L_38 = ((t1011928986 *)__this)->fag4();
float L_39 = p1;
m3398820332(L_38, L_39, NULL);
float L_40 = __this->fg29();
__this->fs32(L_40);
goto IL_0177;
}
IL_0139:
{
bool L_41 = __this->fg34();
if (!L_41)
{
goto IL_015c;
}
}
{
float L_42 = __this->fg29();
((t1011928986 *)__this)->fs2(L_42);
float L_43 = __this->fg30();
((t1011928986 *)__this)->fs3(L_43);
}
IL_015c:
{
float L_44 = p0;
float L_45 = V_0;
m967336103(__this, L_44, L_45, NULL);
t1525428817 * L_46 = ((t1011928986 *)__this)->fag4();
float L_47 = p1;
m3398820332(L_46, L_47, NULL);
float L_48 = V_0;
__this->fs32(L_48);
}
IL_0177:
{
return;
}
}
extern "C" void m1563013787 (t1668697771 * __this, const MethodInfo* method)
{
{
__this->fs0((bool)1);
__this->fs1((bool)1);
t1588175760 L_0 = m3038282331(NULL, NULL);
__this->fs2(L_0);
__this->fs3((-1.0f));
t1588175760 L_1;
memset(&L_1, 0, sizeof(L_1));
m103496991(&L_1, (0.5f), (0.5f), (1.0f), NULL);
__this->fs4(L_1);
m1772956182(__this, NULL);
return;
}
}
extern "C" t1588175760 m3617656164 (t1668697771 * __this, const MethodInfo* method)
{
{
t1588175760 L_0 = __this->fg2();
return L_0;
}
}
extern "C" float m3510903059 (t1668697771 * __this, const MethodInfo* method)
{
{
float L_0 = __this->fg3();
if ((!(((float)L_0) >= ((float)(0.0f)))))
{
goto IL_0017;
}
}
{
float L_1 = __this->fg3();
return L_1;
}
IL_0017:
{
float L_2 = m2094683006(NULL, NULL);
return L_2;
}
}
extern "C" t1588175760 m3945610946 (t1668697771 * __this, const MethodInfo* method)
{
{
t1588175760 L_0 = __this->fg4();
return L_0;
}
}
extern "C" float m2094683006 (Il2CppObject * __this , const MethodInfo* method)
{
typedef float (*m2094683006_ftn) ();
static m2094683006_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2094683006_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUISettings::Internal_GetCursorFlashSpeed()");
return _il2cpp_icall_func();
}
extern TypeInfo* t1668697771_TI_var;
extern TypeInfo* t3748644978_TI_var;
extern const uint32_t m3819836417_MetadataUsageId;
extern "C" void m3819836417 (t2614611333 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3819836417_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t1668697771 * L_0 = (t1668697771 *)il2cpp_codegen_object_new(t1668697771_TI_var);
m1563013787(L_0, NULL);
__this->fs24(L_0);
m1827087273(__this, NULL);
__this->fs23(((t3748644978*)SZArrayNew(t3748644978_TI_var, (uint32_t)1)));
return;
}
}
extern "C" void m3659769829 (t2614611333 * __this, const MethodInfo* method)
{
{
m3870939405(__this, NULL);
return;
}
}
extern "C" t1525081276 * m4064925714 (t2614611333 * __this, const MethodInfo* method)
{
{
t1525081276 * L_0 = __this->fg2();
return L_0;
}
}
extern TypeInfo* t2614611333_TI_var;
extern TypeInfo* t1006925219_TI_var;
extern const uint32_t m2298219977_MetadataUsageId;
extern "C" void m2298219977 (t2614611333 * __this, t1525081276 * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2298219977_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t1525081276 * L_0 = p0;
__this->fs2(L_0);
t2614611333 * L_1 = ((t2614611333_SFs*)t2614611333_TI_var->static_fields)->fg28();
bool L_2 = m3964590952(NULL, L_1, __this, NULL);
if (!L_2)
{
goto IL_0022;
}
}
{
t1525081276 * L_3 = __this->fg2();
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
m1041826325(NULL, L_3, NULL);
}
IL_0022:
{
m3870939405(__this, NULL);
return;
}
}
extern "C" t1006925219 * m3284280323 (t2614611333 * __this, const MethodInfo* method)
{
{
t1006925219 * L_0 = __this->fg3();
return L_0;
}
}
extern "C" void m35439328 (t2614611333 * __this, t1006925219 * p0, const MethodInfo* method)
{
{
t1006925219 * L_0 = p0;
__this->fs3(L_0);
m3870939405(__this, NULL);
return;
}
}
extern "C" t1006925219 * m3553254700 (t2614611333 * __this, const MethodInfo* method)
{
{
t1006925219 * L_0 = __this->fg6();
return L_0;
}
}
extern "C" void m4062710537 (t2614611333 * __this, t1006925219 * p0, const MethodInfo* method)
{
{
t1006925219 * L_0 = p0;
__this->fs6(L_0);
m3870939405(__this, NULL);
return;
}
}
extern "C" t1006925219 * m3831281733 (t2614611333 * __this, const MethodInfo* method)
{
{
t1006925219 * L_0 = __this->fg7();
return L_0;
}
}
extern "C" void m2041526946 (t2614611333 * __this, t1006925219 * p0, const MethodInfo* method)
{
{
t1006925219 * L_0 = p0;
__this->fs7(L_0);
m3870939405(__this, NULL);
return;
}
}
extern "C" t1006925219 * m4283710532 (t2614611333 * __this, const MethodInfo* method)
{
{
t1006925219 * L_0 = __this->fg8();
return L_0;
}
}
extern "C" void m1255688077 (t2614611333 * __this, t1006925219 * p0, const MethodInfo* method)
{
{
t1006925219 * L_0 = p0;
__this->fs8(L_0);
m3870939405(__this, NULL);
return;
}
}
extern "C" t1006925219 * m3628017756 (t2614611333 * __this, const MethodInfo* method)
{
{
t1006925219 * L_0 = __this->fg4();
return L_0;
}
}
extern "C" void m2794546469 (t2614611333 * __this, t1006925219 * p0, const MethodInfo* method)
{
{
t1006925219 * L_0 = p0;
__this->fs4(L_0);
m3870939405(__this, NULL);
return;
}
}
extern "C" t1006925219 * m3519495166 (t2614611333 * __this, const MethodInfo* method)
{
{
t1006925219 * L_0 = __this->fg5();
return L_0;
}
}
extern "C" void m3743241159 (t2614611333 * __this, t1006925219 * p0, const MethodInfo* method)
{
{
t1006925219 * L_0 = p0;
__this->fs5(L_0);
m3870939405(__this, NULL);
return;
}
}
extern "C" t1006925219 * m3620644250 (t2614611333 * __this, const MethodInfo* method)
{
{
t1006925219 * L_0 = __this->fg9();
return L_0;
}
}
extern "C" void m93050723 (t2614611333 * __this, t1006925219 * p0, const MethodInfo* method)
{
{
t1006925219 * L_0 = p0;
__this->fs9(L_0);
m3870939405(__this, NULL);
return;
}
}
extern "C" t1006925219 * m1556961103 (t2614611333 * __this, const MethodInfo* method)
{
{
t1006925219 * L_0 = __this->fg10();
return L_0;
}
}
extern "C" void m2400811288 (t2614611333 * __this, t1006925219 * p0, const MethodInfo* method)
{
{
t1006925219 * L_0 = p0;
__this->fs10(L_0);
m3870939405(__this, NULL);
return;
}
}
extern "C" t1006925219 * m561455017 (t2614611333 * __this, const MethodInfo* method)
{
{
t1006925219 * L_0 = __this->fg11();
return L_0;
}
}
extern "C" void m3534756102 (t2614611333 * __this, t1006925219 * p0, const MethodInfo* method)
{
{
t1006925219 * L_0 = p0;
__this->fs11(L_0);
m3870939405(__this, NULL);
return;
}
}
extern "C" t1006925219 * m3077048033 (t2614611333 * __this, const MethodInfo* method)
{
{
t1006925219 * L_0 = __this->fg12();
return L_0;
}
}
extern "C" void m2007128362 (t2614611333 * __this, t1006925219 * p0, const MethodInfo* method)
{
{
t1006925219 * L_0 = p0;
__this->fs12(L_0);
m3870939405(__this, NULL);
return;
}
}
extern "C" t1006925219 * m4032125783 (t2614611333 * __this, const MethodInfo* method)
{
{
t1006925219 * L_0 = __this->fg13();
return L_0;
}
}
extern "C" void m1533703220 (t2614611333 * __this, t1006925219 * p0, const MethodInfo* method)
{
{
t1006925219 * L_0 = p0;
__this->fs13(L_0);
m3870939405(__this, NULL);
return;
}
}
extern "C" t1006925219 * m4254994650 (t2614611333 * __this, const MethodInfo* method)
{
{
t1006925219 * L_0 = __this->fg14();
return L_0;
}
}
extern "C" void m2358004279 (t2614611333 * __this, t1006925219 * p0, const MethodInfo* method)
{
{
t1006925219 * L_0 = p0;
__this->fs14(L_0);
m3870939405(__this, NULL);
return;
}
}
extern "C" t1006925219 * m543401214 (t2614611333 * __this, const MethodInfo* method)
{
{
t1006925219 * L_0 = __this->fg15();
return L_0;
}
}
extern "C" void m1178477383 (t2614611333 * __this, t1006925219 * p0, const MethodInfo* method)
{
{
t1006925219 * L_0 = p0;
__this->fs15(L_0);
m3870939405(__this, NULL);
return;
}
}
extern "C" t1006925219 * m1723095443 (t2614611333 * __this, const MethodInfo* method)
{
{
t1006925219 * L_0 = __this->fg16();
return L_0;
}
}
extern "C" void m1050046448 (t2614611333 * __this, t1006925219 * p0, const MethodInfo* method)
{
{
t1006925219 * L_0 = p0;
__this->fs16(L_0);
m3870939405(__this, NULL);
return;
}
}
extern "C" t1006925219 * m3218269270 (t2614611333 * __this, const MethodInfo* method)
{
{
t1006925219 * L_0 = __this->fg17();
return L_0;
}
}
extern "C" void m75365919 (t2614611333 * __this, t1006925219 * p0, const MethodInfo* method)
{
{
t1006925219 * L_0 = p0;
__this->fs17(L_0);
m3870939405(__this, NULL);
return;
}
}
extern "C" t1006925219 * m3029557256 (t2614611333 * __this, const MethodInfo* method)
{
{
t1006925219 * L_0 = __this->fg18();
return L_0;
}
}
extern "C" void m3705641189 (t2614611333 * __this, t1006925219 * p0, const MethodInfo* method)
{
{
t1006925219 * L_0 = p0;
__this->fs18(L_0);
m3870939405(__this, NULL);
return;
}
}
extern "C" t1006925219 * m2548474512 (t2614611333 * __this, const MethodInfo* method)
{
{
t1006925219 * L_0 = __this->fg19();
return L_0;
}
}
extern "C" void m1958138201 (t2614611333 * __this, t1006925219 * p0, const MethodInfo* method)
{
{
t1006925219 * L_0 = p0;
__this->fs19(L_0);
m3870939405(__this, NULL);
return;
}
}
extern "C" t1006925219 * m2399801237 (t2614611333 * __this, const MethodInfo* method)
{
{
t1006925219 * L_0 = __this->fg20();
return L_0;
}
}
extern "C" void m3911333362 (t2614611333 * __this, t1006925219 * p0, const MethodInfo* method)
{
{
t1006925219 * L_0 = p0;
__this->fs20(L_0);
m3870939405(__this, NULL);
return;
}
}
extern "C" t1006925219 * m1448263900 (t2614611333 * __this, const MethodInfo* method)
{
{
t1006925219 * L_0 = __this->fg21();
return L_0;
}
}
extern "C" void m138386233 (t2614611333 * __this, t1006925219 * p0, const MethodInfo* method)
{
{
t1006925219 * L_0 = p0;
__this->fs21(L_0);
m3870939405(__this, NULL);
return;
}
}
extern "C" t1006925219 * m3339613116 (t2614611333 * __this, const MethodInfo* method)
{
{
t1006925219 * L_0 = __this->fg22();
return L_0;
}
}
extern "C" void m4285810053 (t2614611333 * __this, t1006925219 * p0, const MethodInfo* method)
{
{
t1006925219 * L_0 = p0;
__this->fs22(L_0);
m3870939405(__this, NULL);
return;
}
}
extern "C" t3748644978* m816658303 (t2614611333 * __this, const MethodInfo* method)
{
{
t3748644978* L_0 = __this->fg23();
return L_0;
}
}
extern "C" void m1092778308 (t2614611333 * __this, t3748644978* p0, const MethodInfo* method)
{
{
t3748644978* L_0 = p0;
__this->fs23(L_0);
m3870939405(__this, NULL);
return;
}
}
extern "C" t1668697771 * m3861471971 (t2614611333 * __this, const MethodInfo* method)
{
{
t1668697771 * L_0 = __this->fg24();
return L_0;
}
}
extern TypeInfo* t2614611333_TI_var;
extern TypeInfo* t1006925219_TI_var;
extern const uint32_t m2137471808_MetadataUsageId;
extern "C" t1006925219 * m2137471808 (Il2CppObject * __this , const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2137471808_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t1006925219 * L_0 = ((t2614611333_SFs*)t2614611333_TI_var->static_fields)->fg25();
if (L_0)
{
goto IL_0014;
}
}
{
t1006925219 * L_1 = (t1006925219 *)il2cpp_codegen_object_new(t1006925219_TI_var);
m478034167(L_1, NULL);
((t2614611333_SFs*)t2614611333_TI_var->static_fields)->fs25(L_1);
}
IL_0014:
{
t1006925219 * L_2 = ((t2614611333_SFs*)t2614611333_TI_var->static_fields)->fg25();
return L_2;
}
}
extern TypeInfo* t1588791936_TI_var;
extern Il2CppCodeGenString* _stringLiteral3756315150;
extern const uint32_t m3870939405_MetadataUsageId;
extern "C" void m3870939405 (t2614611333 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3870939405_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t3748644978* L_0 = __this->fg23();
if (L_0)
{
goto IL_0015;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t1588791936_TI_var);
m1731103628(NULL, _stringLiteral3756315150, NULL);
}
IL_0015:
{
m504236350(__this, NULL);
return;
}
}
extern TypeInfo* t1006925219_TI_var;
extern TypeInfo* t4058118931_TI_var;
extern TypeInfo* t2644623123_TI_var;
extern const MethodInfo* m1090937453_MI_var;
extern Il2CppCodeGenString* _stringLiteral97739;
extern Il2CppCodeGenString* _stringLiteral2917279538;
extern Il2CppCodeGenString* _stringLiteral3426663252;
extern Il2CppCodeGenString* _stringLiteral102727412;
extern Il2CppCodeGenString* _stringLiteral3507215344;
extern Il2CppCodeGenString* _stringLiteral3263533037;
extern Il2CppCodeGenString* _stringLiteral3291723578;
extern Il2CppCodeGenString* _stringLiteral3659356677;
extern Il2CppCodeGenString* _stringLiteral2470892273;
extern Il2CppCodeGenString* _stringLiteral454225879;
extern Il2CppCodeGenString* _stringLiteral1272975455;
extern Il2CppCodeGenString* _stringLiteral2248336002;
extern Il2CppCodeGenString* _stringLiteral1994657940;
extern Il2CppCodeGenString* _stringLiteral2237369851;
extern Il2CppCodeGenString* _stringLiteral3256925324;
extern Il2CppCodeGenString* _stringLiteral3909657456;
extern Il2CppCodeGenString* _stringLiteral1737995366;
extern Il2CppCodeGenString* _stringLiteral506185981;
extern Il2CppCodeGenString* _stringLiteral1774117316;
extern Il2CppCodeGenString* _stringLiteral67302130;
extern const uint32_t m504236350_MetadataUsageId;
extern "C" void m504236350 (t2614611333 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m504236350_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
{
t1006925219 * L_0 = __this->fg3();
if (L_0)
{
goto IL_0016;
}
}
{
t1006925219 * L_1 = (t1006925219 *)il2cpp_codegen_object_new(t1006925219_TI_var);
m478034167(L_1, NULL);
__this->fs3(L_1);
}
IL_0016:
{
t1006925219 * L_2 = __this->fg4();
if (L_2)
{
goto IL_002c;
}
}
{
t1006925219 * L_3 = (t1006925219 *)il2cpp_codegen_object_new(t1006925219_TI_var);
m478034167(L_3, NULL);
__this->fs4(L_3);
}
IL_002c:
{
t1006925219 * L_4 = __this->fg5();
if (L_4)
{
goto IL_0042;
}
}
{
t1006925219 * L_5 = (t1006925219 *)il2cpp_codegen_object_new(t1006925219_TI_var);
m478034167(L_5, NULL);
__this->fs5(L_5);
}
IL_0042:
{
t1006925219 * L_6 = __this->fg6();
if (L_6)
{
goto IL_0058;
}
}
{
t1006925219 * L_7 = (t1006925219 *)il2cpp_codegen_object_new(t1006925219_TI_var);
m478034167(L_7, NULL);
__this->fs6(L_7);
}
IL_0058:
{
t1006925219 * L_8 = __this->fg9();
if (L_8)
{
goto IL_006e;
}
}
{
t1006925219 * L_9 = (t1006925219 *)il2cpp_codegen_object_new(t1006925219_TI_var);
m478034167(L_9, NULL);
__this->fs9(L_9);
}
IL_006e:
{
t1006925219 * L_10 = __this->fg7();
if (L_10)
{
goto IL_0084;
}
}
{
t1006925219 * L_11 = (t1006925219 *)il2cpp_codegen_object_new(t1006925219_TI_var);
m478034167(L_11, NULL);
__this->fs7(L_11);
}
IL_0084:
{
t1006925219 * L_12 = __this->fg8();
if (L_12)
{
goto IL_009a;
}
}
{
t1006925219 * L_13 = (t1006925219 *)il2cpp_codegen_object_new(t1006925219_TI_var);
m478034167(L_13, NULL);
__this->fs8(L_13);
}
IL_009a:
{
t1006925219 * L_14 = __this->fg10();
if (L_14)
{
goto IL_00b0;
}
}
{
t1006925219 * L_15 = (t1006925219 *)il2cpp_codegen_object_new(t1006925219_TI_var);
m478034167(L_15, NULL);
__this->fs10(L_15);
}
IL_00b0:
{
t1006925219 * L_16 = __this->fg11();
if (L_16)
{
goto IL_00c6;
}
}
{
t1006925219 * L_17 = (t1006925219 *)il2cpp_codegen_object_new(t1006925219_TI_var);
m478034167(L_17, NULL);
__this->fs11(L_17);
}
IL_00c6:
{
t1006925219 * L_18 = __this->fg12();
if (L_18)
{
goto IL_00dc;
}
}
{
t1006925219 * L_19 = (t1006925219 *)il2cpp_codegen_object_new(t1006925219_TI_var);
m478034167(L_19, NULL);
__this->fs12(L_19);
}
IL_00dc:
{
t1006925219 * L_20 = __this->fg13();
if (L_20)
{
goto IL_00f2;
}
}
{
t1006925219 * L_21 = (t1006925219 *)il2cpp_codegen_object_new(t1006925219_TI_var);
m478034167(L_21, NULL);
__this->fs13(L_21);
}
IL_00f2:
{
t1006925219 * L_22 = __this->fg14();
if (L_22)
{
goto IL_0108;
}
}
{
t1006925219 * L_23 = (t1006925219 *)il2cpp_codegen_object_new(t1006925219_TI_var);
m478034167(L_23, NULL);
__this->fs14(L_23);
}
IL_0108:
{
t1006925219 * L_24 = __this->fg15();
if (L_24)
{
goto IL_011e;
}
}
{
t1006925219 * L_25 = (t1006925219 *)il2cpp_codegen_object_new(t1006925219_TI_var);
m478034167(L_25, NULL);
__this->fs15(L_25);
}
IL_011e:
{
t1006925219 * L_26 = __this->fg16();
if (L_26)
{
goto IL_0134;
}
}
{
t1006925219 * L_27 = (t1006925219 *)il2cpp_codegen_object_new(t1006925219_TI_var);
m478034167(L_27, NULL);
__this->fs16(L_27);
}
IL_0134:
{
t1006925219 * L_28 = __this->fg17();
if (L_28)
{
goto IL_014a;
}
}
{
t1006925219 * L_29 = (t1006925219 *)il2cpp_codegen_object_new(t1006925219_TI_var);
m478034167(L_29, NULL);
__this->fs17(L_29);
}
IL_014a:
{
t1006925219 * L_30 = __this->fg18();
if (L_30)
{
goto IL_0160;
}
}
{
t1006925219 * L_31 = (t1006925219 *)il2cpp_codegen_object_new(t1006925219_TI_var);
m478034167(L_31, NULL);
__this->fs18(L_31);
}
IL_0160:
{
t1006925219 * L_32 = __this->fg19();
if (L_32)
{
goto IL_0176;
}
}
{
t1006925219 * L_33 = (t1006925219 *)il2cpp_codegen_object_new(t1006925219_TI_var);
m478034167(L_33, NULL);
__this->fs19(L_33);
}
IL_0176:
{
t1006925219 * L_34 = __this->fg20();
if (L_34)
{
goto IL_018c;
}
}
{
t1006925219 * L_35 = (t1006925219 *)il2cpp_codegen_object_new(t1006925219_TI_var);
m478034167(L_35, NULL);
__this->fs20(L_35);
}
IL_018c:
{
t1006925219 * L_36 = __this->fg21();
if (L_36)
{
goto IL_01a2;
}
}
{
t1006925219 * L_37 = (t1006925219 *)il2cpp_codegen_object_new(t1006925219_TI_var);
m478034167(L_37, NULL);
__this->fs21(L_37);
}
IL_01a2:
{
t1006925219 * L_38 = __this->fg22();
if (L_38)
{
goto IL_01b8;
}
}
{
t1006925219 * L_39 = (t1006925219 *)il2cpp_codegen_object_new(t1006925219_TI_var);
m478034167(L_39, NULL);
__this->fs22(L_39);
}
IL_01b8:
{
IL2CPP_RUNTIME_CLASS_INIT(t4058118931_TI_var);
t4058118931 * L_40 = m2513153269(NULL, NULL);
t2644623123 * L_41 = (t2644623123 *)il2cpp_codegen_object_new(t2644623123_TI_var);
m1090937453(L_41, L_40, m1090937453_MI_var);
__this->fs26(L_41);
t2644623123 * L_42 = __this->fg26();
t1006925219 * L_43 = __this->fg3();
VirtActionInvoker2< String_t*, t1006925219 * >::Invoke(25 /* System.Void System.Collections.Generic.Dictionary`2<System.String,UnityEngine.GUIStyle>::set_Item(!0,!1) */, L_42, _stringLiteral97739, L_43);
t1006925219 * L_44 = __this->fg3();
m4125925261(L_44, _stringLiteral97739, NULL);
t2644623123 * L_45 = __this->fg26();
t1006925219 * L_46 = __this->fg4();
VirtActionInvoker2< String_t*, t1006925219 * >::Invoke(25 /* System.Void System.Collections.Generic.Dictionary`2<System.String,UnityEngine.GUIStyle>::set_Item(!0,!1) */, L_45, _stringLiteral2917279538, L_46);
t1006925219 * L_47 = __this->fg4();
m4125925261(L_47, _stringLiteral2917279538, NULL);
t2644623123 * L_48 = __this->fg26();
t1006925219 * L_49 = __this->fg5();
VirtActionInvoker2< String_t*, t1006925219 * >::Invoke(25 /* System.Void System.Collections.Generic.Dictionary`2<System.String,UnityEngine.GUIStyle>::set_Item(!0,!1) */, L_48, _stringLiteral3426663252, L_49);
t1006925219 * L_50 = __this->fg5();
m4125925261(L_50, _stringLiteral3426663252, NULL);
t2644623123 * L_51 = __this->fg26();
t1006925219 * L_52 = __this->fg6();
VirtActionInvoker2< String_t*, t1006925219 * >::Invoke(25 /* System.Void System.Collections.Generic.Dictionary`2<System.String,UnityEngine.GUIStyle>::set_Item(!0,!1) */, L_51, _stringLiteral102727412, L_52);
t1006925219 * L_53 = __this->fg6();
m4125925261(L_53, _stringLiteral102727412, NULL);
t2644623123 * L_54 = __this->fg26();
t1006925219 * L_55 = __this->fg9();
VirtActionInvoker2< String_t*, t1006925219 * >::Invoke(25 /* System.Void System.Collections.Generic.Dictionary`2<System.String,UnityEngine.GUIStyle>::set_Item(!0,!1) */, L_54, _stringLiteral3507215344, L_55);
t1006925219 * L_56 = __this->fg9();
m4125925261(L_56, _stringLiteral3507215344, NULL);
t2644623123 * L_57 = __this->fg26();
t1006925219 * L_58 = __this->fg7();
VirtActionInvoker2< String_t*, t1006925219 * >::Invoke(25 /* System.Void System.Collections.Generic.Dictionary`2<System.String,UnityEngine.GUIStyle>::set_Item(!0,!1) */, L_57, _stringLiteral3263533037, L_58);
t1006925219 * L_59 = __this->fg7();
m4125925261(L_59, _stringLiteral3263533037, NULL);
t2644623123 * L_60 = __this->fg26();
t1006925219 * L_61 = __this->fg8();
VirtActionInvoker2< String_t*, t1006925219 * >::Invoke(25 /* System.Void System.Collections.Generic.Dictionary`2<System.String,UnityEngine.GUIStyle>::set_Item(!0,!1) */, L_60, _stringLiteral3291723578, L_61);
t1006925219 * L_62 = __this->fg8();
m4125925261(L_62, _stringLiteral3291723578, NULL);
t2644623123 * L_63 = __this->fg26();
t1006925219 * L_64 = __this->fg10();
VirtActionInvoker2< String_t*, t1006925219 * >::Invoke(25 /* System.Void System.Collections.Generic.Dictionary`2<System.String,UnityEngine.GUIStyle>::set_Item(!0,!1) */, L_63, _stringLiteral3659356677, L_64);
t1006925219 * L_65 = __this->fg10();
m4125925261(L_65, _stringLiteral3659356677, NULL);
t2644623123 * L_66 = __this->fg26();
t1006925219 * L_67 = __this->fg11();
VirtActionInvoker2< String_t*, t1006925219 * >::Invoke(25 /* System.Void System.Collections.Generic.Dictionary`2<System.String,UnityEngine.GUIStyle>::set_Item(!0,!1) */, L_66, _stringLiteral2470892273, L_67);
t1006925219 * L_68 = __this->fg11();
m4125925261(L_68, _stringLiteral2470892273, NULL);
t2644623123 * L_69 = __this->fg26();
t1006925219 * L_70 = __this->fg12();
VirtActionInvoker2< String_t*, t1006925219 * >::Invoke(25 /* System.Void System.Collections.Generic.Dictionary`2<System.String,UnityEngine.GUIStyle>::set_Item(!0,!1) */, L_69, _stringLiteral454225879, L_70);
t1006925219 * L_71 = __this->fg12();
m4125925261(L_71, _stringLiteral454225879, NULL);
t2644623123 * L_72 = __this->fg26();
t1006925219 * L_73 = __this->fg13();
VirtActionInvoker2< String_t*, t1006925219 * >::Invoke(25 /* System.Void System.Collections.Generic.Dictionary`2<System.String,UnityEngine.GUIStyle>::set_Item(!0,!1) */, L_72, _stringLiteral1272975455, L_73);
t1006925219 * L_74 = __this->fg13();
m4125925261(L_74, _stringLiteral1272975455, NULL);
t2644623123 * L_75 = __this->fg26();
t1006925219 * L_76 = __this->fg14();
VirtActionInvoker2< String_t*, t1006925219 * >::Invoke(25 /* System.Void System.Collections.Generic.Dictionary`2<System.String,UnityEngine.GUIStyle>::set_Item(!0,!1) */, L_75, _stringLiteral2248336002, L_76);
t1006925219 * L_77 = __this->fg14();
m4125925261(L_77, _stringLiteral2248336002, NULL);
t2644623123 * L_78 = __this->fg26();
t1006925219 * L_79 = __this->fg15();
VirtActionInvoker2< String_t*, t1006925219 * >::Invoke(25 /* System.Void System.Collections.Generic.Dictionary`2<System.String,UnityEngine.GUIStyle>::set_Item(!0,!1) */, L_78, _stringLiteral1994657940, L_79);
t1006925219 * L_80 = __this->fg15();
m4125925261(L_80, _stringLiteral1994657940, NULL);
t2644623123 * L_81 = __this->fg26();
t1006925219 * L_82 = __this->fg16();
VirtActionInvoker2< String_t*, t1006925219 * >::Invoke(25 /* System.Void System.Collections.Generic.Dictionary`2<System.String,UnityEngine.GUIStyle>::set_Item(!0,!1) */, L_81, _stringLiteral2237369851, L_82);
t1006925219 * L_83 = __this->fg16();
m4125925261(L_83, _stringLiteral2237369851, NULL);
t2644623123 * L_84 = __this->fg26();
t1006925219 * L_85 = __this->fg17();
VirtActionInvoker2< String_t*, t1006925219 * >::Invoke(25 /* System.Void System.Collections.Generic.Dictionary`2<System.String,UnityEngine.GUIStyle>::set_Item(!0,!1) */, L_84, _stringLiteral3256925324, L_85);
t1006925219 * L_86 = __this->fg17();
m4125925261(L_86, _stringLiteral3256925324, NULL);
t2644623123 * L_87 = __this->fg26();
t1006925219 * L_88 = __this->fg18();
VirtActionInvoker2< String_t*, t1006925219 * >::Invoke(25 /* System.Void System.Collections.Generic.Dictionary`2<System.String,UnityEngine.GUIStyle>::set_Item(!0,!1) */, L_87, _stringLiteral3909657456, L_88);
t1006925219 * L_89 = __this->fg18();
m4125925261(L_89, _stringLiteral3909657456, NULL);
t2644623123 * L_90 = __this->fg26();
t1006925219 * L_91 = __this->fg19();
VirtActionInvoker2< String_t*, t1006925219 * >::Invoke(25 /* System.Void System.Collections.Generic.Dictionary`2<System.String,UnityEngine.GUIStyle>::set_Item(!0,!1) */, L_90, _stringLiteral1737995366, L_91);
t1006925219 * L_92 = __this->fg19();
m4125925261(L_92, _stringLiteral1737995366, NULL);
t2644623123 * L_93 = __this->fg26();
t1006925219 * L_94 = __this->fg20();
VirtActionInvoker2< String_t*, t1006925219 * >::Invoke(25 /* System.Void System.Collections.Generic.Dictionary`2<System.String,UnityEngine.GUIStyle>::set_Item(!0,!1) */, L_93, _stringLiteral506185981, L_94);
t1006925219 * L_95 = __this->fg20();
m4125925261(L_95, _stringLiteral506185981, NULL);
t2644623123 * L_96 = __this->fg26();
t1006925219 * L_97 = __this->fg21();
VirtActionInvoker2< String_t*, t1006925219 * >::Invoke(25 /* System.Void System.Collections.Generic.Dictionary`2<System.String,UnityEngine.GUIStyle>::set_Item(!0,!1) */, L_96, _stringLiteral1774117316, L_97);
t1006925219 * L_98 = __this->fg21();
m4125925261(L_98, _stringLiteral1774117316, NULL);
t2644623123 * L_99 = __this->fg26();
t1006925219 * L_100 = __this->fg22();
VirtActionInvoker2< String_t*, t1006925219 * >::Invoke(25 /* System.Void System.Collections.Generic.Dictionary`2<System.String,UnityEngine.GUIStyle>::set_Item(!0,!1) */, L_99, _stringLiteral67302130, L_100);
t1006925219 * L_101 = __this->fg22();
m4125925261(L_101, _stringLiteral67302130, NULL);
t3748644978* L_102 = __this->fg23();
if (!L_102)
{
goto IL_0516;
}
}
{
V_0 = 0;
goto IL_0508;
}
IL_04d2:
{
t3748644978* L_103 = __this->fg23();
int32_t L_104 = V_0;
int32_t L_105 = L_104;
if (((L_103)->GetAt(static_cast<il2cpp_array_size_t>(L_105))))
{
goto IL_04e4;
}
}
{
goto IL_0504;
}
IL_04e4:
{
t2644623123 * L_106 = __this->fg26();
t3748644978* L_107 = __this->fg23();
int32_t L_108 = V_0;
int32_t L_109 = L_108;
String_t* L_110 = m4046186628(((L_107)->GetAt(static_cast<il2cpp_array_size_t>(L_109))), NULL);
t3748644978* L_111 = __this->fg23();
int32_t L_112 = V_0;
int32_t L_113 = L_112;
VirtActionInvoker2< String_t*, t1006925219 * >::Invoke(25 /* System.Void System.Collections.Generic.Dictionary`2<System.String,UnityEngine.GUIStyle>::set_Item(!0,!1) */, L_106, L_110, ((L_111)->GetAt(static_cast<il2cpp_array_size_t>(L_113))));
}
IL_0504:
{
int32_t L_114 = V_0;
V_0 = ((int32_t)((int32_t)L_114+(int32_t)1));
}
IL_0508:
{
int32_t L_115 = V_0;
t3748644978* L_116 = __this->fg23();
if ((((int32_t)L_115) < ((int32_t)(((int32_t)((int32_t)(((Il2CppArray *)L_116)->max_length)))))))
{
goto IL_04d2;
}
}
IL_0516:
{
t1006925219 * L_117 = m2137471808(NULL, NULL);
m703419995(L_117, (bool)1, NULL);
t1006925219 * L_118 = m2137471808(NULL, NULL);
t47287592 * L_119 = m42729964(L_118, NULL);
t1588175760 L_120 = m4288945411(NULL, NULL);
m3058467057(L_119, L_120, NULL);
return;
}
}
extern TypeInfo* t11523773_TI_var;
extern TypeInfo* t3558284577_TI_var;
extern TypeInfo* String_t_TI_var;
extern TypeInfo* t1588791936_TI_var;
extern Il2CppCodeGenString* _stringLiteral2393797897;
extern Il2CppCodeGenString* _stringLiteral301077734;
extern Il2CppCodeGenString* _stringLiteral1241;
extern const uint32_t m2474694726_MetadataUsageId;
extern "C" t1006925219 * m2474694726 (t2614611333 * __this, String_t* p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2474694726_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t1006925219 * V_0 = NULL;
{
String_t* L_0 = p0;
t1006925219 * L_1 = m2067600169(__this, L_0, NULL);
V_0 = L_1;
t1006925219 * L_2 = V_0;
if (!L_2)
{
goto IL_0010;
}
}
{
t1006925219 * L_3 = V_0;
return L_3;
}
IL_0010:
{
t11523773* L_4 = ((t11523773*)SZArrayNew(t11523773_TI_var, (uint32_t)6));
ArrayElementTypeCheck (L_4, _stringLiteral2393797897);
(L_4)->SetAt(static_cast<il2cpp_array_size_t>(0), (Il2CppObject *)_stringLiteral2393797897);
t11523773* L_5 = L_4;
String_t* L_6 = p0;
ArrayElementTypeCheck (L_5, L_6);
(L_5)->SetAt(static_cast<il2cpp_array_size_t>(1), (Il2CppObject *)L_6);
t11523773* L_7 = L_5;
ArrayElementTypeCheck (L_7, _stringLiteral301077734);
(L_7)->SetAt(static_cast<il2cpp_array_size_t>(2), (Il2CppObject *)_stringLiteral301077734);
t11523773* L_8 = L_7;
String_t* L_9 = m3709440845(__this, NULL);
ArrayElementTypeCheck (L_8, L_9);
(L_8)->SetAt(static_cast<il2cpp_array_size_t>(3), (Il2CppObject *)L_9);
t11523773* L_10 = L_8;
ArrayElementTypeCheck (L_10, _stringLiteral1241);
(L_10)->SetAt(static_cast<il2cpp_array_size_t>(4), (Il2CppObject *)_stringLiteral1241);
t11523773* L_11 = L_10;
t1590224583 * L_12 = m238587645(NULL, NULL);
int32_t L_13 = m2209939250(L_12, NULL);
int32_t L_14 = L_13;
Il2CppObject * L_15 = Box(t3558284577_TI_var, &L_14);
ArrayElementTypeCheck (L_11, L_15);
(L_11)->SetAt(static_cast<il2cpp_array_size_t>(5), (Il2CppObject *)L_15);
IL2CPP_RUNTIME_CLASS_INIT(String_t_TI_var);
String_t* L_16 = m3016520001(NULL, L_11, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1588791936_TI_var);
m3123317694(NULL, L_16, NULL);
t1006925219 * L_17 = m2137471808(NULL, NULL);
return L_17;
}
}
extern TypeInfo* t1588791936_TI_var;
extern Il2CppCodeGenString* _stringLiteral71997397;
extern const uint32_t m2067600169_MetadataUsageId;
extern "C" t1006925219 * m2067600169 (t2614611333 * __this, String_t* p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2067600169_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t1006925219 * V_0 = NULL;
{
bool L_0 = m3964590952(NULL, __this, (t3878351788 *)NULL, NULL);
if (!L_0)
{
goto IL_0018;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t1588791936_TI_var);
m4127342994(NULL, _stringLiteral71997397, NULL);
return (t1006925219 *)NULL;
}
IL_0018:
{
t2644623123 * L_1 = __this->fg26();
if (L_1)
{
goto IL_0029;
}
}
{
m504236350(__this, NULL);
}
IL_0029:
{
t2644623123 * L_2 = __this->fg26();
String_t* L_3 = p0;
bool L_4 = VirtFuncInvoker2< bool, String_t*, t1006925219 ** >::Invoke(31 /* System.Boolean System.Collections.Generic.Dictionary`2<System.String,UnityEngine.GUIStyle>::TryGetValue(!0,!1&) */, L_2, L_3, (&V_0));
if (!L_4)
{
goto IL_003e;
}
}
{
t1006925219 * L_5 = V_0;
return L_5;
}
IL_003e:
{
return (t1006925219 *)NULL;
}
}
extern TypeInfo* t2614611333_TI_var;
extern TypeInfo* t1006925219_TI_var;
extern const uint32_t m174297994_MetadataUsageId;
extern "C" void m174297994 (t2614611333 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m174297994_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
((t2614611333_SFs*)t2614611333_TI_var->static_fields)->fs28(__this);
t1525081276 * L_0 = m4064925714(__this, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
m1041826325(NULL, L_0, NULL);
t914030844 * L_1 = ((t2614611333_SFs*)t2614611333_TI_var->static_fields)->fg27();
if (!L_1)
{
goto IL_0025;
}
}
{
t914030844 * L_2 = ((t2614611333_SFs*)t2614611333_TI_var->static_fields)->fg27();
m3141787208(L_2, NULL);
}
IL_0025:
{
return;
}
}
extern TypeInfo* t2411651064_TI_var;
extern const MethodInfo* m1146491556_MI_var;
extern const MethodInfo* m3020019500_MI_var;
extern const uint32_t m1290986451_MetadataUsageId;
extern "C" Il2CppObject * m1290986451 (t2614611333 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m1290986451_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t2644623123 * L_0 = __this->fg26();
if (L_0)
{
goto IL_0011;
}
}
{
m504236350(__this, NULL);
}
IL_0011:
{
t2644623123 * L_1 = __this->fg26();
t271792921 * L_2 = m1146491556(L_1, m1146491556_MI_var);
t2411651064 L_3 = m3020019500(L_2, m3020019500_MI_var);
t2411651064 L_4 = L_3;
Il2CppObject * L_5 = Box(t2411651064_TI_var, &L_4);
return (Il2CppObject *)L_5;
}
}
extern "C" void m1472037998 (t914030844 * __this, Il2CppObject * p0, IntPtr_t p1, const MethodInfo* method)
{
__this->fs0((methodPointerType)((MethodInfo*)p1.fg0())->method);
__this->fs3(p1);
__this->fs2(p0);
}
extern "C" void m3141787208 (t914030844 * __this, const MethodInfo* method)
{
if(__this->fg9() != NULL)
{
m3141787208((t914030844 *)__this->fg9(), method);
}
il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found((MethodInfo*)(__this->fg3().fg0()));
bool ___methodIsStatic = MethodIsStatic((MethodInfo*)(__this->fg3().fg0()));
if ((__this->fg2() != NULL || MethodHasParameters((MethodInfo*)(__this->fg3().fg0()))) && ___methodIsStatic)
{
typedef void (*FunctionPointerType) (Il2CppObject *, void* __this, const MethodInfo* method);
((FunctionPointerType)__this->fg0())(NULL,il2cpp_codegen_get_delegate_this(__this),(MethodInfo*)(__this->fg3().fg0()));
}
else
{
typedef void (*FunctionPointerType) (void* __this, const MethodInfo* method);
((FunctionPointerType)__this->fg0())(il2cpp_codegen_get_delegate_this(__this),(MethodInfo*)(__this->fg3().fg0()));
}
}
extern "C" void pinvoke_delegate_wrapper_t914030844(Il2CppObject* delegate)
{
typedef void (STDCALL *native_function_ptr_type)();
native_function_ptr_type _il2cpp_pinvoke_func = ((native_function_ptr_type)((Il2CppDelegate*)delegate)->method->method);
// Native function invocation
_il2cpp_pinvoke_func();
}
extern "C" Il2CppObject * m1122457923 (t914030844 * __this, t1363551830 * p0, Il2CppObject * p1, const MethodInfo* method)
{
void *__d_args[1] = {0};
return (Il2CppObject *)il2cpp_delegate_begin_invoke((Il2CppDelegate*)__this, __d_args, (Il2CppDelegate*)p0, (Il2CppObject*)p1);
}
extern "C" void m3094371710 (t914030844 * __this, Il2CppObject * p0, const MethodInfo* method)
{
il2cpp_delegate_end_invoke((Il2CppAsyncResult*) p0, 0);
}
extern "C" void m478034167 (t1006925219 * __this, const MethodInfo* method)
{
{
m1772956182(__this, NULL);
m3292093053(__this, NULL);
return;
}
}
extern "C" void m584655914 (t1006925219 * __this, t1006925219 * p0, const MethodInfo* method)
{
{
m1772956182(__this, NULL);
t1006925219 * L_0 = p0;
m3063430789(__this, L_0, NULL);
return;
}
}
extern TypeInfo* t1006925219_TI_var;
extern const uint32_t m1452061078_MetadataUsageId;
extern "C" void m1452061078 (Il2CppObject * __this , const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m1452061078_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
((t1006925219_SFs*)t1006925219_TI_var->static_fields)->fs14((bool)1);
return;
}
}
extern "C" void m3401789451 (t1006925219 * __this, const MethodInfo* method)
{
t1967233988 * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
t1967233988 * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
IL_0000:
try
{ // begin try (depth: 1)
m2498094777(__this, NULL);
IL2CPP_LEAVE(0x12, FINALLY_000b);
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t1967233988 *)e.ex;
goto FINALLY_000b;
}
FINALLY_000b:
{ // begin finally (depth: 1)
m3027285644(__this, NULL);
IL2CPP_END_FINALLY(11)
} // end finally (depth: 1)
IL2CPP_CLEANUP(11)
{
IL2CPP_JUMP_TBL(0x12, IL_0012)
IL2CPP_RETHROW_IF_UNHANDLED(t1967233988 *)
}
IL_0012:
{
return;
}
}
extern "C" void m1012732492 (t1006925219 * __this, const MethodInfo* method)
{
{
t1525081276 * L_0 = m1458608761(__this, NULL);
__this->fs13(L_0);
IntPtr_t L_1 = m2550872619(__this, 0, NULL);
t47287592 * L_2 = m243465942(NULL, __this, L_1, NULL);
__this->fs1(L_2);
IntPtr_t L_3 = m2550872619(__this, 1, NULL);
t47287592 * L_4 = m243465942(NULL, __this, L_3, NULL);
__this->fs2(L_4);
IntPtr_t L_5 = m2550872619(__this, 2, NULL);
t47287592 * L_6 = m243465942(NULL, __this, L_5, NULL);
__this->fs3(L_6);
IntPtr_t L_7 = m2550872619(__this, 3, NULL);
t47287592 * L_8 = m243465942(NULL, __this, L_7, NULL);
__this->fs4(L_8);
IntPtr_t L_9 = m2550872619(__this, 4, NULL);
t47287592 * L_10 = m243465942(NULL, __this, L_9, NULL);
__this->fs5(L_10);
IntPtr_t L_11 = m2550872619(__this, 5, NULL);
t47287592 * L_12 = m243465942(NULL, __this, L_11, NULL);
__this->fs6(L_12);
IntPtr_t L_13 = m2550872619(__this, 6, NULL);
t47287592 * L_14 = m243465942(NULL, __this, L_13, NULL);
__this->fs7(L_14);
IntPtr_t L_15 = m2550872619(__this, 7, NULL);
t47287592 * L_16 = m243465942(NULL, __this, L_15, NULL);
__this->fs8(L_16);
return;
}
}
extern "C" t47287592 * m42729964 (t1006925219 * __this, const MethodInfo* method)
{
{
t47287592 * L_0 = __this->fg1();
if (L_0)
{
goto IL_001e;
}
}
{
IntPtr_t L_1 = m2550872619(__this, 0, NULL);
t47287592 * L_2 = m511242685(NULL, __this, L_1, NULL);
__this->fs1(L_2);
}
IL_001e:
{
t47287592 * L_3 = __this->fg1();
return L_3;
}
}
extern "C" void m3590268413 (t1006925219 * __this, t47287592 * p0, const MethodInfo* method)
{
{
t47287592 * L_0 = p0;
IntPtr_t L_1 = L_0->fg0();
m4030196091(__this, 0, L_1, NULL);
return;
}
}
extern "C" t47287592 * m3685402873 (t1006925219 * __this, const MethodInfo* method)
{
{
t47287592 * L_0 = __this->fg2();
if (L_0)
{
goto IL_001e;
}
}
{
IntPtr_t L_1 = m2550872619(__this, 1, NULL);
t47287592 * L_2 = m511242685(NULL, __this, L_1, NULL);
__this->fs2(L_2);
}
IL_001e:
{
t47287592 * L_3 = __this->fg2();
return L_3;
}
}
extern "C" void m660294266 (t1006925219 * __this, t47287592 * p0, const MethodInfo* method)
{
{
t47287592 * L_0 = p0;
IntPtr_t L_1 = L_0->fg0();
m4030196091(__this, 1, L_1, NULL);
return;
}
}
extern "C" t47287592 * m1150072907 (t1006925219 * __this, const MethodInfo* method)
{
{
t47287592 * L_0 = __this->fg3();
if (L_0)
{
goto IL_001e;
}
}
{
IntPtr_t L_1 = m2550872619(__this, 2, NULL);
t47287592 * L_2 = m511242685(NULL, __this, L_1, NULL);
__this->fs3(L_2);
}
IL_001e:
{
t47287592 * L_3 = __this->fg3();
return L_3;
}
}
extern "C" void m79497342 (t1006925219 * __this, t47287592 * p0, const MethodInfo* method)
{
{
t47287592 * L_0 = p0;
IntPtr_t L_1 = L_0->fg0();
m4030196091(__this, 2, L_1, NULL);
return;
}
}
extern "C" t47287592 * m3672490987 (t1006925219 * __this, const MethodInfo* method)
{
{
t47287592 * L_0 = __this->fg5();
if (L_0)
{
goto IL_001e;
}
}
{
IntPtr_t L_1 = m2550872619(__this, 4, NULL);
t47287592 * L_2 = m511242685(NULL, __this, L_1, NULL);
__this->fs5(L_2);
}
IL_001e:
{
t47287592 * L_3 = __this->fg5();
return L_3;
}
}
extern "C" void m3860399646 (t1006925219 * __this, t47287592 * p0, const MethodInfo* method)
{
{
t47287592 * L_0 = p0;
IntPtr_t L_1 = L_0->fg0();
m4030196091(__this, 4, L_1, NULL);
return;
}
}
extern "C" t47287592 * m3525397274 (t1006925219 * __this, const MethodInfo* method)
{
{
t47287592 * L_0 = __this->fg6();
if (L_0)
{
goto IL_001e;
}
}
{
IntPtr_t L_1 = m2550872619(__this, 5, NULL);
t47287592 * L_2 = m511242685(NULL, __this, L_1, NULL);
__this->fs6(L_2);
}
IL_001e:
{
t47287592 * L_3 = __this->fg6();
return L_3;
}
}
extern "C" void m946102841 (t1006925219 * __this, t47287592 * p0, const MethodInfo* method)
{
{
t47287592 * L_0 = p0;
IntPtr_t L_1 = L_0->fg0();
m4030196091(__this, 5, L_1, NULL);
return;
}
}
extern "C" t47287592 * m484866634 (t1006925219 * __this, const MethodInfo* method)
{
{
t47287592 * L_0 = __this->fg7();
if (L_0)
{
goto IL_001e;
}
}
{
IntPtr_t L_1 = m2550872619(__this, 6, NULL);
t47287592 * L_2 = m511242685(NULL, __this, L_1, NULL);
__this->fs7(L_2);
}
IL_001e:
{
t47287592 * L_3 = __this->fg7();
return L_3;
}
}
extern "C" void m349628575 (t1006925219 * __this, t47287592 * p0, const MethodInfo* method)
{
{
t47287592 * L_0 = p0;
IntPtr_t L_1 = L_0->fg0();
m4030196091(__this, 6, L_1, NULL);
return;
}
}
extern "C" t47287592 * m2717215092 (t1006925219 * __this, const MethodInfo* method)
{
{
t47287592 * L_0 = __this->fg4();
if (L_0)
{
goto IL_001e;
}
}
{
IntPtr_t L_1 = m2550872619(__this, 3, NULL);
t47287592 * L_2 = m511242685(NULL, __this, L_1, NULL);
__this->fs4(L_2);
}
IL_001e:
{
t47287592 * L_3 = __this->fg4();
return L_3;
}
}
extern "C" void m1026899231 (t1006925219 * __this, t47287592 * p0, const MethodInfo* method)
{
{
t47287592 * L_0 = p0;
IntPtr_t L_1 = L_0->fg0();
m4030196091(__this, 3, L_1, NULL);
return;
}
}
extern "C" t47287592 * m3570657109 (t1006925219 * __this, const MethodInfo* method)
{
{
t47287592 * L_0 = __this->fg8();
if (L_0)
{
goto IL_001e;
}
}
{
IntPtr_t L_1 = m2550872619(__this, 7, NULL);
t47287592 * L_2 = m511242685(NULL, __this, L_1, NULL);
__this->fs8(L_2);
}
IL_001e:
{
t47287592 * L_3 = __this->fg8();
return L_3;
}
}
extern "C" void m811032862 (t1006925219 * __this, t47287592 * p0, const MethodInfo* method)
{
{
t47287592 * L_0 = p0;
IntPtr_t L_1 = L_0->fg0();
m4030196091(__this, 7, L_1, NULL);
return;
}
}
extern TypeInfo* t3394170884_TI_var;
extern const uint32_t m1826068707_MetadataUsageId;
extern "C" t3394170884 * m1826068707 (t1006925219 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m1826068707_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t3394170884 * L_0 = __this->fg9();
if (L_0)
{
goto IL_001e;
}
}
{
IntPtr_t L_1 = m1931607252(__this, 0, NULL);
t3394170884 * L_2 = (t3394170884 *)il2cpp_codegen_object_new(t3394170884_TI_var);
m358348983(L_2, __this, L_1, NULL);
__this->fs9(L_2);
}
IL_001e:
{
t3394170884 * L_3 = __this->fg9();
return L_3;
}
}
extern "C" void m3254356648 (t1006925219 * __this, t3394170884 * p0, const MethodInfo* method)
{
{
t3394170884 * L_0 = p0;
IntPtr_t L_1 = L_0->fg0();
m519705394(__this, 0, L_1, NULL);
return;
}
}
extern TypeInfo* t3394170884_TI_var;
extern const uint32_t m4279849445_MetadataUsageId;
extern "C" t3394170884 * m4279849445 (t1006925219 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m4279849445_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t3394170884 * L_0 = __this->fg11();
if (L_0)
{
goto IL_001e;
}
}
{
IntPtr_t L_1 = m1931607252(__this, 1, NULL);
t3394170884 * L_2 = (t3394170884 *)il2cpp_codegen_object_new(t3394170884_TI_var);
m358348983(L_2, __this, L_1, NULL);
__this->fs11(L_2);
}
IL_001e:
{
t3394170884 * L_3 = __this->fg11();
return L_3;
}
}
extern "C" void m698201642 (t1006925219 * __this, t3394170884 * p0, const MethodInfo* method)
{
{
t3394170884 * L_0 = p0;
IntPtr_t L_1 = L_0->fg0();
m519705394(__this, 1, L_1, NULL);
return;
}
}
extern TypeInfo* t3394170884_TI_var;
extern const uint32_t m3072941276_MetadataUsageId;
extern "C" t3394170884 * m3072941276 (t1006925219 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3072941276_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t3394170884 * L_0 = __this->fg10();
if (L_0)
{
goto IL_001e;
}
}
{
IntPtr_t L_1 = m1931607252(__this, 2, NULL);
t3394170884 * L_2 = (t3394170884 *)il2cpp_codegen_object_new(t3394170884_TI_var);
m358348983(L_2, __this, L_1, NULL);
__this->fs10(L_2);
}
IL_001e:
{
t3394170884 * L_3 = __this->fg10();
return L_3;
}
}
extern "C" void m458170651 (t1006925219 * __this, t3394170884 * p0, const MethodInfo* method)
{
{
t3394170884 * L_0 = p0;
IntPtr_t L_1 = L_0->fg0();
m519705394(__this, 2, L_1, NULL);
return;
}
}
extern TypeInfo* t3394170884_TI_var;
extern const uint32_t m2862114233_MetadataUsageId;
extern "C" t3394170884 * m2862114233 (t1006925219 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2862114233_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t3394170884 * L_0 = __this->fg12();
if (L_0)
{
goto IL_001e;
}
}
{
IntPtr_t L_1 = m1931607252(__this, 3, NULL);
t3394170884 * L_2 = (t3394170884 *)il2cpp_codegen_object_new(t3394170884_TI_var);
m358348983(L_2, __this, L_1, NULL);
__this->fs12(L_2);
}
IL_001e:
{
t3394170884 * L_3 = __this->fg12();
return L_3;
}
}
extern "C" void m3029326398 (t1006925219 * __this, t3394170884 * p0, const MethodInfo* method)
{
{
t3394170884 * L_0 = p0;
IntPtr_t L_1 = L_0->fg0();
m519705394(__this, 3, L_1, NULL);
return;
}
}
extern "C" t3525329788 m3134687732 (t1006925219 * __this, const MethodInfo* method)
{
{
t3525329788 L_0 = m4123163318(__this, NULL);
return L_0;
}
}
extern "C" void m2780638285 (t1006925219 * __this, t3525329788 p0, const MethodInfo* method)
{
{
t3525329788 L_0 = p0;
m411599389(__this, L_0, NULL);
return;
}
}
extern "C" t1525081276 * m1061814606 (t1006925219 * __this, const MethodInfo* method)
{
{
t1525081276 * L_0 = m2928804526(__this, NULL);
return L_0;
}
}
extern "C" void m3587533075 (t1006925219 * __this, t1525081276 * p0, const MethodInfo* method)
{
{
t1525081276 * L_0 = p0;
m2859258365(__this, L_0, NULL);
t1525081276 * L_1 = p0;
__this->fs13(L_1);
return;
}
}
extern TypeInfo* t1006925219_TI_var;
extern TypeInfo* t1597001355_TI_var;
extern const uint32_t m3977255453_MetadataUsageId;
extern "C" float m3977255453 (t1006925219 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3977255453_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IntPtr_t L_0 = __this->fg0();
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
float L_1 = m4224806028(NULL, L_0, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
float L_2 = bankers_roundf(L_1);
return L_2;
}
}
extern TypeInfo* t1561977533_TI_var;
extern TypeInfo* t1006925219_TI_var;
extern const uint32_t m3671619263_MetadataUsageId;
extern "C" void m3671619263 (Il2CppObject * __this , IntPtr_t p0, t1525428817 p1, t2432841515 * p2, bool p3, bool p4, bool p5, bool p6, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3671619263_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t1561977533 V_0;
memset(&V_0, 0, sizeof(V_0));
t1561977533 * G_B2_0 = NULL;
t1561977533 * G_B1_0 = NULL;
int32_t G_B3_0 = 0;
t1561977533 * G_B3_1 = NULL;
t1561977533 * G_B5_0 = NULL;
t1561977533 * G_B4_0 = NULL;
int32_t G_B6_0 = 0;
t1561977533 * G_B6_1 = NULL;
t1561977533 * G_B8_0 = NULL;
t1561977533 * G_B7_0 = NULL;
int32_t G_B9_0 = 0;
t1561977533 * G_B9_1 = NULL;
t1561977533 * G_B11_0 = NULL;
t1561977533 * G_B10_0 = NULL;
int32_t G_B12_0 = 0;
t1561977533 * G_B12_1 = NULL;
{
Initobj (t1561977533_TI_var, (&V_0));
IntPtr_t L_0 = p0;
(&V_0)->fs0(L_0);
t1525428817 L_1 = p1;
(&V_0)->fs1(L_1);
bool L_2 = p3;
G_B1_0 = (&V_0);
if (!L_2)
{
G_B2_0 = (&V_0);
goto IL_0026;
}
}
{
G_B3_0 = 1;
G_B3_1 = G_B1_0;
goto IL_0027;
}
IL_0026:
{
G_B3_0 = 0;
G_B3_1 = G_B2_0;
}
IL_0027:
{
G_B3_1->fs2(G_B3_0);
bool L_3 = p4;
G_B4_0 = (&V_0);
if (!L_3)
{
G_B5_0 = (&V_0);
goto IL_003b;
}
}
{
G_B6_0 = 1;
G_B6_1 = G_B4_0;
goto IL_003c;
}
IL_003b:
{
G_B6_0 = 0;
G_B6_1 = G_B5_0;
}
IL_003c:
{
G_B6_1->fs3(G_B6_0);
bool L_4 = p5;
G_B7_0 = (&V_0);
if (!L_4)
{
G_B8_0 = (&V_0);
goto IL_0050;
}
}
{
G_B9_0 = 1;
G_B9_1 = G_B7_0;
goto IL_0051;
}
IL_0050:
{
G_B9_0 = 0;
G_B9_1 = G_B8_0;
}
IL_0051:
{
G_B9_1->fs4(G_B9_0);
bool L_5 = p6;
G_B10_0 = (&V_0);
if (!L_5)
{
G_B11_0 = (&V_0);
goto IL_0065;
}
}
{
G_B12_0 = 1;
G_B12_1 = G_B10_0;
goto IL_0066;
}
IL_0065:
{
G_B12_0 = 0;
G_B12_1 = G_B11_0;
}
IL_0066:
{
G_B12_1->fs5(G_B12_0);
t2432841515 * L_6 = p2;
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
m3365779187(NULL, L_6, (&V_0), NULL);
return;
}
}
extern TypeInfo* t2432841515_TI_var;
extern TypeInfo* t1006925219_TI_var;
extern const uint32_t m2853558582_MetadataUsageId;
extern "C" void m2853558582 (t1006925219 * __this, t1525428817 p0, bool p1, bool p2, bool p3, bool p4, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2853558582_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IntPtr_t L_0 = __this->fg0();
t1525428817 L_1 = p0;
IL2CPP_RUNTIME_CLASS_INIT(t2432841515_TI_var);
t2432841515 * L_2 = ((t2432841515_SFs*)t2432841515_TI_var->static_fields)->fg6();
bool L_3 = p1;
bool L_4 = p2;
bool L_5 = p3;
bool L_6 = p4;
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
m3671619263(NULL, L_0, L_1, L_2, L_3, L_4, L_5, L_6, NULL);
return;
}
}
extern TypeInfo* t2432841515_TI_var;
extern TypeInfo* t1006925219_TI_var;
extern const uint32_t m645175538_MetadataUsageId;
extern "C" void m645175538 (t1006925219 * __this, t1525428817 p0, String_t* p1, bool p2, bool p3, bool p4, bool p5, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m645175538_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IntPtr_t L_0 = __this->fg0();
t1525428817 L_1 = p0;
String_t* L_2 = p1;
IL2CPP_RUNTIME_CLASS_INIT(t2432841515_TI_var);
t2432841515 * L_3 = m2857440895(NULL, L_2, NULL);
bool L_4 = p2;
bool L_5 = p3;
bool L_6 = p4;
bool L_7 = p5;
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
m3671619263(NULL, L_0, L_1, L_3, L_4, L_5, L_6, L_7, NULL);
return;
}
}
extern TypeInfo* t2432841515_TI_var;
extern TypeInfo* t1006925219_TI_var;
extern const uint32_t m1301423966_MetadataUsageId;
extern "C" void m1301423966 (t1006925219 * __this, t1525428817 p0, t1769722184 * p1, bool p2, bool p3, bool p4, bool p5, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m1301423966_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IntPtr_t L_0 = __this->fg0();
t1525428817 L_1 = p0;
t1769722184 * L_2 = p1;
IL2CPP_RUNTIME_CLASS_INIT(t2432841515_TI_var);
t2432841515 * L_3 = m3826417963(NULL, L_2, NULL);
bool L_4 = p2;
bool L_5 = p3;
bool L_6 = p4;
bool L_7 = p5;
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
m3671619263(NULL, L_0, L_1, L_3, L_4, L_5, L_6, L_7, NULL);
return;
}
}
extern TypeInfo* t1006925219_TI_var;
extern const uint32_t m860139579_MetadataUsageId;
extern "C" void m860139579 (t1006925219 * __this, t1525428817 p0, t2432841515 * p1, bool p2, bool p3, bool p4, bool p5, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m860139579_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IntPtr_t L_0 = __this->fg0();
t1525428817 L_1 = p0;
t2432841515 * L_2 = p1;
bool L_3 = p2;
bool L_4 = p3;
bool L_5 = p4;
bool L_6 = p5;
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
m3671619263(NULL, L_0, L_1, L_2, L_3, L_4, L_5, L_6, NULL);
return;
}
}
extern "C" void m2994577084 (t1006925219 * __this, t1525428817 p0, t2432841515 * p1, int32_t p2, const MethodInfo* method)
{
{
t1525428817 L_0 = p0;
t2432841515 * L_1 = p1;
int32_t L_2 = p2;
m489809217(__this, L_0, L_1, L_2, (bool)0, NULL);
return;
}
}
extern TypeInfo* t1006925219_TI_var;
extern TypeInfo* t1588791936_TI_var;
extern Il2CppCodeGenString* _stringLiteral1397622549;
extern const uint32_t m489809217_MetadataUsageId;
extern "C" void m489809217 (t1006925219 * __this, t1525428817 p0, t2432841515 * p1, int32_t p2, bool p3, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m489809217_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t2432841515 * L_0 = p1;
if (!L_0)
{
goto IL_001b;
}
}
{
IntPtr_t L_1 = __this->fg0();
t1525428817 L_2 = p0;
t2432841515 * L_3 = p1;
int32_t L_4 = p2;
bool L_5 = p3;
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
m2706374407(NULL, L_1, L_2, L_3, L_4, L_5, NULL);
goto IL_0025;
}
IL_001b:
{
IL2CPP_RUNTIME_CLASS_INIT(t1588791936_TI_var);
m4127342994(NULL, _stringLiteral1397622549, NULL);
}
IL_0025:
{
return;
}
}
extern TypeInfo* t1522956648_TI_var;
extern TypeInfo* t1006925219_TI_var;
extern const uint32_t m4169664613_MetadataUsageId;
extern "C" void m4169664613 (t1006925219 * __this, t1525428817 p0, t2432841515 * p1, int32_t p2, int32_t p3, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m4169664613_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t1590224583 * V_0 = NULL;
t1588175760 V_1;
memset(&V_1, 0, sizeof(V_1));
float V_2 = 0.0f;
float V_3 = 0.0f;
{
t1590224583 * L_0 = m238587645(NULL, NULL);
V_0 = L_0;
t1590224583 * L_1 = V_0;
int32_t L_2 = m2209939250(L_1, NULL);
if ((!(((uint32_t)L_2) == ((uint32_t)7))))
{
goto IL_0083;
}
}
{
m2252924356((&V_1), (0.0f), (0.0f), (0.0f), (0.0f), NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1522956648_TI_var);
t2614611333 * L_3 = m4001454842(NULL, NULL);
t1668697771 * L_4 = m3861471971(L_3, NULL);
float L_5 = m3510903059(L_4, NULL);
V_2 = L_5;
float L_6 = m2972554983(NULL, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
float L_7 = m3106442082(NULL, NULL);
float L_8 = V_2;
float L_9 = V_2;
V_3 = ((float)((float)(fmodf(((float)((float)L_6-(float)L_7)), L_8))/(float)L_9));
float L_10 = V_2;
if ((((float)L_10) == ((float)(0.0f))))
{
goto IL_0063;
}
}
{
float L_11 = V_3;
if ((!(((float)L_11) < ((float)(0.5f)))))
{
goto IL_0073;
}
}
IL_0063:
{
IL2CPP_RUNTIME_CLASS_INIT(t1522956648_TI_var);
t2614611333 * L_12 = m4001454842(NULL, NULL);
t1668697771 * L_13 = m3861471971(L_12, NULL);
t1588175760 L_14 = m3617656164(L_13, NULL);
V_1 = L_14;
}
IL_0073:
{
IntPtr_t L_15 = __this->fg0();
t1525428817 L_16 = p0;
t2432841515 * L_17 = p1;
int32_t L_18 = p3;
t1588175760 L_19 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
m496261262(NULL, L_15, L_16, L_17, L_18, L_19, NULL);
}
IL_0083:
{
return;
}
}
extern TypeInfo* t1522956648_TI_var;
extern TypeInfo* t1006925219_TI_var;
extern TypeInfo* t43446288_TI_var;
extern TypeInfo* t1366332446_TI_var;
extern const uint32_t m469195656_MetadataUsageId;
extern "C" void m469195656 (t1006925219 * __this, t1525428817 p0, t2432841515 * p1, int32_t p2, int32_t p3, int32_t p4, bool p5, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m469195656_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t1590224583 * V_0 = NULL;
t1588175760 V_1;
memset(&V_1, 0, sizeof(V_1));
float V_2 = 0.0f;
float V_3 = 0.0f;
t43446288 V_4;
memset(&V_4, 0, sizeof(V_4));
t43446288 * G_B5_0 = NULL;
t43446288 * G_B4_0 = NULL;
int32_t G_B6_0 = 0;
t43446288 * G_B6_1 = NULL;
t43446288 * G_B8_0 = NULL;
t43446288 * G_B7_0 = NULL;
int32_t G_B9_0 = 0;
t43446288 * G_B9_1 = NULL;
t43446288 * G_B12_0 = NULL;
t43446288 * G_B10_0 = NULL;
t43446288 * G_B11_0 = NULL;
int32_t G_B13_0 = 0;
t43446288 * G_B13_1 = NULL;
t43446288 * G_B15_0 = NULL;
t43446288 * G_B14_0 = NULL;
int32_t G_B16_0 = 0;
t43446288 * G_B16_1 = NULL;
{
t1590224583 * L_0 = m238587645(NULL, NULL);
V_0 = L_0;
m2252924356((&V_1), (0.0f), (0.0f), (0.0f), (0.0f), NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1522956648_TI_var);
t2614611333 * L_1 = m4001454842(NULL, NULL);
t1668697771 * L_2 = m3861471971(L_1, NULL);
float L_3 = m3510903059(L_2, NULL);
V_2 = L_3;
float L_4 = m2972554983(NULL, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
float L_5 = m3106442082(NULL, NULL);
float L_6 = V_2;
float L_7 = V_2;
V_3 = ((float)((float)(fmodf(((float)((float)L_4-(float)L_5)), L_6))/(float)L_7));
float L_8 = V_2;
if ((((float)L_8) == ((float)(0.0f))))
{
goto IL_0057;
}
}
{
float L_9 = V_3;
if ((!(((float)L_9) < ((float)(0.5f)))))
{
goto IL_0067;
}
}
IL_0057:
{
IL2CPP_RUNTIME_CLASS_INIT(t1522956648_TI_var);
t2614611333 * L_10 = m4001454842(NULL, NULL);
t1668697771 * L_11 = m3861471971(L_10, NULL);
t1588175760 L_12 = m3617656164(L_11, NULL);
V_1 = L_12;
}
IL_0067:
{
Initobj (t43446288_TI_var, (&V_4));
IntPtr_t L_13 = __this->fg0();
(&V_4)->fs0(L_13);
t1525428817 L_14 = p0;
(&V_4)->fs1(L_14);
int32_t L_15 = p3;
(&V_4)->fs2(L_15);
int32_t L_16 = p4;
(&V_4)->fs3(L_16);
t1588175760 L_17 = V_1;
(&V_4)->fs4(L_17);
IL2CPP_RUNTIME_CLASS_INIT(t1522956648_TI_var);
t2614611333 * L_18 = m4001454842(NULL, NULL);
t1668697771 * L_19 = m3861471971(L_18, NULL);
t1588175760 L_20 = m3945610946(L_19, NULL);
(&V_4)->fs5(L_20);
t1590224583 * L_21 = V_0;
t3525329788 L_22 = m3610425949(L_21, NULL);
bool L_23 = m3556594010((&p0), L_22, NULL);
G_B4_0 = (&V_4);
if (!L_23)
{
G_B5_0 = (&V_4);
goto IL_00ce;
}
}
{
G_B6_0 = 1;
G_B6_1 = G_B4_0;
goto IL_00cf;
}
IL_00ce:
{
G_B6_0 = 0;
G_B6_1 = G_B5_0;
}
IL_00cf:
{
G_B6_1->fs6(G_B6_0);
int32_t L_24 = p2;
IL2CPP_RUNTIME_CLASS_INIT(t1366332446_TI_var);
int32_t L_25 = m4135893409(NULL, NULL);
G_B7_0 = (&V_4);
if ((!(((uint32_t)L_24) == ((uint32_t)L_25))))
{
G_B8_0 = (&V_4);
goto IL_00e7;
}
}
{
G_B9_0 = 1;
G_B9_1 = G_B7_0;
goto IL_00e8;
}
IL_00e7:
{
G_B9_0 = 0;
G_B9_1 = G_B8_0;
}
IL_00e8:
{
G_B9_1->fs7(G_B9_0);
(&V_4)->fs8(0);
int32_t L_26 = p2;
IL2CPP_RUNTIME_CLASS_INIT(t1366332446_TI_var);
int32_t L_27 = m1277835431(NULL, NULL);
G_B10_0 = (&V_4);
if ((!(((uint32_t)L_26) == ((uint32_t)L_27))))
{
G_B12_0 = (&V_4);
goto IL_0112;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
bool L_28 = ((t1006925219_SFs*)t1006925219_TI_var->static_fields)->fg14();
G_B11_0 = G_B10_0;
if (!L_28)
{
G_B12_0 = G_B10_0;
goto IL_0112;
}
}
{
G_B13_0 = 1;
G_B13_1 = G_B11_0;
goto IL_0113;
}
IL_0112:
{
G_B13_0 = 0;
G_B13_1 = G_B12_0;
}
IL_0113:
{
G_B13_1->fs9(G_B13_0);
bool L_29 = p5;
G_B14_0 = (&V_4);
if (!L_29)
{
G_B15_0 = (&V_4);
goto IL_0127;
}
}
{
G_B16_0 = 1;
G_B16_1 = G_B14_0;
goto IL_0128;
}
IL_0127:
{
G_B16_0 = 0;
G_B16_1 = G_B15_0;
}
IL_0128:
{
G_B16_1->fs10(G_B16_0);
t2432841515 * L_30 = p1;
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
m538670273(NULL, L_30, (&V_4), NULL);
return;
}
}
extern "C" void m984171349 (t1006925219 * __this, t1525428817 p0, t2432841515 * p1, int32_t p2, int32_t p3, int32_t p4, const MethodInfo* method)
{
{
t1525428817 L_0 = p0;
t2432841515 * L_1 = p1;
int32_t L_2 = p2;
int32_t L_3 = p3;
int32_t L_4 = p4;
m469195656(__this, L_0, L_1, L_2, L_3, L_4, (bool)0, NULL);
return;
}
}
extern TypeInfo* t1006925219_TI_var;
extern const uint32_t m2767659632_MetadataUsageId;
extern "C" t1006925219 * m2767659632 (Il2CppObject * __this , const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2767659632_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
t1006925219 * L_0 = ((t1006925219_SFs*)t1006925219_TI_var->static_fields)->fg15();
if (L_0)
{
goto IL_0014;
}
}
{
t1006925219 * L_1 = (t1006925219 *)il2cpp_codegen_object_new(t1006925219_TI_var);
m478034167(L_1, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
((t1006925219_SFs*)t1006925219_TI_var->static_fields)->fs15(L_1);
}
IL_0014:
{
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
t1006925219 * L_2 = ((t1006925219_SFs*)t1006925219_TI_var->static_fields)->fg15();
return L_2;
}
}
extern TypeInfo* t1006925219_TI_var;
extern const uint32_t m296157110_MetadataUsageId;
extern "C" t3525329788 m296157110 (t1006925219 * __this, t1525428817 p0, t2432841515 * p1, int32_t p2, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m296157110_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t3525329788 V_0;
memset(&V_0, 0, sizeof(V_0));
{
IntPtr_t L_0 = __this->fg0();
t1525428817 L_1 = p0;
t2432841515 * L_2 = p1;
int32_t L_3 = p2;
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
m336331745(NULL, L_0, L_1, L_2, L_3, (&V_0), NULL);
t3525329788 L_4 = V_0;
return L_4;
}
}
extern TypeInfo* t1006925219_TI_var;
extern const uint32_t m3223359742_MetadataUsageId;
extern "C" int32_t m3223359742 (t1006925219 * __this, t1525428817 p0, t2432841515 * p1, t3525329788 p2, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3223359742_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IntPtr_t L_0 = __this->fg0();
t1525428817 L_1 = p0;
t2432841515 * L_2 = p1;
t3525329788 L_3 = p2;
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
int32_t L_4 = m1275963970(NULL, L_0, L_1, L_2, L_3, NULL);
return L_4;
}
}
extern TypeInfo* t1006925219_TI_var;
extern const uint32_t m3286030319_MetadataUsageId;
extern "C" int32_t m3286030319 (t1006925219 * __this, String_t* p0, float p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3286030319_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IntPtr_t L_0 = __this->fg0();
String_t* L_1 = p0;
float L_2 = p1;
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
int32_t L_3 = m470425907(NULL, L_0, L_1, L_2, NULL);
return L_3;
}
}
extern TypeInfo* t1006925219_TI_var;
extern const uint32_t m2299809257_MetadataUsageId;
extern "C" t3525329788 m2299809257 (t1006925219 * __this, t2432841515 * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2299809257_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t3525329788 V_0;
memset(&V_0, 0, sizeof(V_0));
{
IntPtr_t L_0 = __this->fg0();
t2432841515 * L_1 = p0;
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
m1389308622(NULL, L_0, L_1, (&V_0), NULL);
t3525329788 L_2 = V_0;
return L_2;
}
}
extern TypeInfo* t1006925219_TI_var;
extern const uint32_t m3659418291_MetadataUsageId;
extern "C" t3525329788 m3659418291 (t1006925219 * __this, t2432841515 * p0, t3525329788 p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3659418291_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t3525329788 V_0;
memset(&V_0, 0, sizeof(V_0));
{
IntPtr_t L_0 = __this->fg0();
t2432841515 * L_1 = p0;
t3525329788 L_2 = p1;
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
m484790978(NULL, L_0, L_1, L_2, (&V_0), NULL);
t3525329788 L_3 = V_0;
return L_3;
}
}
extern TypeInfo* t1597001355_TI_var;
extern const uint32_t m1487928496_MetadataUsageId;
extern "C" t3525329788 m1487928496 (t1006925219 * __this, t3525329788 p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m1487928496_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
float G_B3_0 = 0.0f;
float G_B5_0 = 0.0f;
float G_B4_0 = 0.0f;
float G_B6_0 = 0.0f;
float G_B6_1 = 0.0f;
{
float L_0 = m3249098964(__this, NULL);
if ((((float)L_0) == ((float)(0.0f))))
{
goto IL_001b;
}
}
{
float L_1 = m3249098964(__this, NULL);
G_B3_0 = L_1;
goto IL_0041;
}
IL_001b:
{
float L_2 = (&p0)->fg0();
t3394170884 * L_3 = m3072941276(__this, NULL);
int32_t L_4 = m4104523390(L_3, NULL);
t3394170884 * L_5 = m3072941276(__this, NULL);
int32_t L_6 = m3831383975(L_5, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
float L_7 = ceilf(((float)((float)((float)((float)L_2+(float)(((float)((float)L_4)))))+(float)(((float)((float)L_6))))));
G_B3_0 = L_7;
}
IL_0041:
{
float L_8 = m2441634427(__this, NULL);
G_B4_0 = G_B3_0;
if ((((float)L_8) == ((float)(0.0f))))
{
G_B5_0 = G_B3_0;
goto IL_005c;
}
}
{
float L_9 = m2441634427(__this, NULL);
G_B6_0 = L_9;
G_B6_1 = G_B4_0;
goto IL_0082;
}
IL_005c:
{
float L_10 = (&p0)->fg1();
t3394170884 * L_11 = m3072941276(__this, NULL);
int32_t L_12 = m140097312(L_11, NULL);
t3394170884 * L_13 = m3072941276(__this, NULL);
int32_t L_14 = m2106858018(L_13, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t1597001355_TI_var);
float L_15 = ceilf(((float)((float)((float)((float)L_10+(float)(((float)((float)L_12)))))+(float)(((float)((float)L_14))))));
G_B6_0 = L_15;
G_B6_1 = G_B5_0;
}
IL_0082:
{
t3525329788 L_16;
memset(&L_16, 0, sizeof(L_16));
m1517109030(&L_16, G_B6_1, G_B6_0, NULL);
return L_16;
}
}
extern TypeInfo* t1006925219_TI_var;
extern const uint32_t m3565424293_MetadataUsageId;
extern "C" float m3565424293 (t1006925219 * __this, t2432841515 * p0, float p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3565424293_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IntPtr_t L_0 = __this->fg0();
t2432841515 * L_1 = p0;
float L_2 = p1;
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
float L_3 = m3448302985(NULL, L_0, L_1, L_2, NULL);
return L_3;
}
}
extern "C" bool m1959928889 (t1006925219 * __this, const MethodInfo* method)
{
int32_t G_B4_0 = 0;
int32_t G_B6_0 = 0;
{
float L_0 = m2441634427(__this, NULL);
if ((!(((float)L_0) == ((float)(0.0f)))))
{
goto IL_002c;
}
}
{
bool L_1 = m3830782768(__this, NULL);
if (!L_1)
{
goto IL_0029;
}
}
{
int32_t L_2 = m3876152522(__this, NULL);
G_B4_0 = ((((int32_t)((((int32_t)L_2) == ((int32_t)2))? 1 : 0)) == ((int32_t)0))? 1 : 0);
goto IL_002a;
}
IL_0029:
{
G_B4_0 = 0;
}
IL_002a:
{
G_B6_0 = G_B4_0;
goto IL_002d;
}
IL_002c:
{
G_B6_0 = 0;
}
IL_002d:
{
return (bool)G_B6_0;
}
}
extern TypeInfo* t1006925219_TI_var;
extern const uint32_t m421008639_MetadataUsageId;
extern "C" void m421008639 (t1006925219 * __this, t2432841515 * p0, float* p1, float* p2, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m421008639_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IntPtr_t L_0 = __this->fg0();
t2432841515 * L_1 = p0;
float* L_2 = p1;
float* L_3 = p2;
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
m1670371175(NULL, L_0, L_1, L_2, L_3, NULL);
return;
}
}
extern TypeInfo* t11523773_TI_var;
extern Il2CppCodeGenString* _stringLiteral4265578108;
extern const uint32_t m2491778876_MetadataUsageId;
extern "C" String_t* m2491778876 (t1006925219 * __this, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2491778876_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t11523773* L_0 = ((t11523773*)SZArrayNew(t11523773_TI_var, (uint32_t)1));
String_t* L_1 = m4046186628(__this, NULL);
ArrayElementTypeCheck (L_0, L_1);
(L_0)->SetAt(static_cast<il2cpp_array_size_t>(0), (Il2CppObject *)L_1);
String_t* L_2 = m427603113(NULL, _stringLiteral4265578108, L_0, NULL);
return L_2;
}
}
extern "C" void m3292093053 (t1006925219 * __this, const MethodInfo* method)
{
typedef void (*m3292093053_ftn) (t1006925219 *);
static m3292093053_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3292093053_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::Init()");
_il2cpp_icall_func(__this);
}
extern "C" void m3063430789 (t1006925219 * __this, t1006925219 * p0, const MethodInfo* method)
{
typedef void (*m3063430789_ftn) (t1006925219 *, t1006925219 *);
static m3063430789_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3063430789_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::InitCopy(UnityEngine.GUIStyle)");
_il2cpp_icall_func(__this, p0);
}
extern "C" void m2498094777 (t1006925219 * __this, const MethodInfo* method)
{
typedef void (*m2498094777_ftn) (t1006925219 *);
static m2498094777_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2498094777_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::Cleanup()");
_il2cpp_icall_func(__this);
}
extern "C" String_t* m4046186628 (t1006925219 * __this, const MethodInfo* method)
{
typedef String_t* (*m4046186628_ftn) (t1006925219 *);
static m4046186628_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m4046186628_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::get_name()");
return _il2cpp_icall_func(__this);
}
extern "C" void m4125925261 (t1006925219 * __this, String_t* p0, const MethodInfo* method)
{
typedef void (*m4125925261_ftn) (t1006925219 *, String_t*);
static m4125925261_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m4125925261_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::set_name(System.String)");
_il2cpp_icall_func(__this, p0);
}
extern "C" IntPtr_t m2550872619 (t1006925219 * __this, int32_t p0, const MethodInfo* method)
{
typedef IntPtr_t (*m2550872619_ftn) (t1006925219 *, int32_t);
static m2550872619_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2550872619_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::GetStyleStatePtr(System.Int32)");
return _il2cpp_icall_func(__this, p0);
}
extern "C" void m4030196091 (t1006925219 * __this, int32_t p0, IntPtr_t p1, const MethodInfo* method)
{
typedef void (*m4030196091_ftn) (t1006925219 *, int32_t, IntPtr_t);
static m4030196091_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m4030196091_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::AssignStyleState(System.Int32,System.IntPtr)");
_il2cpp_icall_func(__this, p0, p1);
}
extern "C" IntPtr_t m1931607252 (t1006925219 * __this, int32_t p0, const MethodInfo* method)
{
typedef IntPtr_t (*m1931607252_ftn) (t1006925219 *, int32_t);
static m1931607252_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1931607252_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::GetRectOffsetPtr(System.Int32)");
return _il2cpp_icall_func(__this, p0);
}
extern "C" void m519705394 (t1006925219 * __this, int32_t p0, IntPtr_t p1, const MethodInfo* method)
{
typedef void (*m519705394_ftn) (t1006925219 *, int32_t, IntPtr_t);
static m519705394_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m519705394_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::AssignRectOffset(System.Int32,System.IntPtr)");
_il2cpp_icall_func(__this, p0, p1);
}
extern "C" int32_t m3876152522 (t1006925219 * __this, const MethodInfo* method)
{
typedef int32_t (*m3876152522_ftn) (t1006925219 *);
static m3876152522_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3876152522_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::get_imagePosition()");
return _il2cpp_icall_func(__this);
}
extern "C" void m1689669769 (t1006925219 * __this, int32_t p0, const MethodInfo* method)
{
typedef void (*m1689669769_ftn) (t1006925219 *, int32_t);
static m1689669769_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1689669769_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::set_imagePosition(UnityEngine.ImagePosition)");
_il2cpp_icall_func(__this, p0);
}
extern "C" int32_t m1533628953 (t1006925219 * __this, const MethodInfo* method)
{
typedef int32_t (*m1533628953_ftn) (t1006925219 *);
static m1533628953_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1533628953_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::get_alignment()");
return _il2cpp_icall_func(__this);
}
extern "C" void m4252900834 (t1006925219 * __this, int32_t p0, const MethodInfo* method)
{
typedef void (*m4252900834_ftn) (t1006925219 *, int32_t);
static m4252900834_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m4252900834_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::set_alignment(UnityEngine.TextAnchor)");
_il2cpp_icall_func(__this, p0);
}
extern "C" bool m3830782768 (t1006925219 * __this, const MethodInfo* method)
{
typedef bool (*m3830782768_ftn) (t1006925219 *);
static m3830782768_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3830782768_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::get_wordWrap()");
return _il2cpp_icall_func(__this);
}
extern "C" void m3800572853 (t1006925219 * __this, bool p0, const MethodInfo* method)
{
typedef void (*m3800572853_ftn) (t1006925219 *, bool);
static m3800572853_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3800572853_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::set_wordWrap(System.Boolean)");
_il2cpp_icall_func(__this, p0);
}
extern "C" int32_t m2044798529 (t1006925219 * __this, const MethodInfo* method)
{
typedef int32_t (*m2044798529_ftn) (t1006925219 *);
static m2044798529_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2044798529_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::get_clipping()");
return _il2cpp_icall_func(__this);
}
extern "C" void m771351942 (t1006925219 * __this, int32_t p0, const MethodInfo* method)
{
typedef void (*m771351942_ftn) (t1006925219 *, int32_t);
static m771351942_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m771351942_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::set_clipping(UnityEngine.TextClipping)");
_il2cpp_icall_func(__this, p0);
}
extern "C" t3525329788 m2092220605 (t1006925219 * __this, const MethodInfo* method)
{
t3525329788 V_0;
memset(&V_0, 0, sizeof(V_0));
{
m2078390432(__this, (&V_0), NULL);
t3525329788 L_0 = V_0;
return L_0;
}
}
extern "C" void m3385864054 (t1006925219 * __this, t3525329788 p0, const MethodInfo* method)
{
{
m3891089324(__this, (&p0), NULL);
return;
}
}
extern "C" void m2078390432 (t1006925219 * __this, t3525329788 * p0, const MethodInfo* method)
{
typedef void (*m2078390432_ftn) (t1006925219 *, t3525329788 *);
static m2078390432_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2078390432_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::INTERNAL_get_contentOffset(UnityEngine.Vector2&)");
_il2cpp_icall_func(__this, p0);
}
extern "C" void m3891089324 (t1006925219 * __this, t3525329788 * p0, const MethodInfo* method)
{
typedef void (*m3891089324_ftn) (t1006925219 *, t3525329788 *);
static m3891089324_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3891089324_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::INTERNAL_set_contentOffset(UnityEngine.Vector2&)");
_il2cpp_icall_func(__this, p0);
}
extern "C" t3525329788 m4123163318 (t1006925219 * __this, const MethodInfo* method)
{
t3525329788 V_0;
memset(&V_0, 0, sizeof(V_0));
{
m3417369433(__this, (&V_0), NULL);
t3525329788 L_0 = V_0;
return L_0;
}
}
extern "C" void m411599389 (t1006925219 * __this, t3525329788 p0, const MethodInfo* method)
{
{
m188352869(__this, (&p0), NULL);
return;
}
}
extern "C" void m3417369433 (t1006925219 * __this, t3525329788 * p0, const MethodInfo* method)
{
typedef void (*m3417369433_ftn) (t1006925219 *, t3525329788 *);
static m3417369433_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3417369433_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::INTERNAL_get_Internal_clipOffset(UnityEngine.Vector2&)");
_il2cpp_icall_func(__this, p0);
}
extern "C" void m188352869 (t1006925219 * __this, t3525329788 * p0, const MethodInfo* method)
{
typedef void (*m188352869_ftn) (t1006925219 *, t3525329788 *);
static m188352869_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m188352869_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::INTERNAL_set_Internal_clipOffset(UnityEngine.Vector2&)");
_il2cpp_icall_func(__this, p0);
}
extern "C" float m3249098964 (t1006925219 * __this, const MethodInfo* method)
{
typedef float (*m3249098964_ftn) (t1006925219 *);
static m3249098964_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3249098964_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::get_fixedWidth()");
return _il2cpp_icall_func(__this);
}
extern "C" void m2486234607 (t1006925219 * __this, float p0, const MethodInfo* method)
{
typedef void (*m2486234607_ftn) (t1006925219 *, float);
static m2486234607_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2486234607_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::set_fixedWidth(System.Single)");
_il2cpp_icall_func(__this, p0);
}
extern "C" float m2441634427 (t1006925219 * __this, const MethodInfo* method)
{
typedef float (*m2441634427_ftn) (t1006925219 *);
static m2441634427_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2441634427_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::get_fixedHeight()");
return _il2cpp_icall_func(__this);
}
extern "C" void m2209877368 (t1006925219 * __this, float p0, const MethodInfo* method)
{
typedef void (*m2209877368_ftn) (t1006925219 *, float);
static m2209877368_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2209877368_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::set_fixedHeight(System.Single)");
_il2cpp_icall_func(__this, p0);
}
extern "C" bool m38609341 (t1006925219 * __this, const MethodInfo* method)
{
typedef bool (*m38609341_ftn) (t1006925219 *);
static m38609341_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m38609341_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::get_stretchWidth()");
return _il2cpp_icall_func(__this);
}
extern "C" void m829487234 (t1006925219 * __this, bool p0, const MethodInfo* method)
{
typedef void (*m829487234_ftn) (t1006925219 *, bool);
static m829487234_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m829487234_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::set_stretchWidth(System.Boolean)");
_il2cpp_icall_func(__this, p0);
}
extern "C" bool m1700703922 (t1006925219 * __this, const MethodInfo* method)
{
typedef bool (*m1700703922_ftn) (t1006925219 *);
static m1700703922_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1700703922_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::get_stretchHeight()");
return _il2cpp_icall_func(__this);
}
extern "C" void m703419995 (t1006925219 * __this, bool p0, const MethodInfo* method)
{
typedef void (*m703419995_ftn) (t1006925219 *, bool);
static m703419995_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m703419995_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::set_stretchHeight(System.Boolean)");
_il2cpp_icall_func(__this, p0);
}
extern "C" float m4224806028 (Il2CppObject * __this , IntPtr_t p0, const MethodInfo* method)
{
typedef float (*m4224806028_ftn) (IntPtr_t);
static m4224806028_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m4224806028_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::Internal_GetLineHeight(System.IntPtr)");
return _il2cpp_icall_func(p0);
}
extern "C" void m2859258365 (t1006925219 * __this, t1525081276 * p0, const MethodInfo* method)
{
typedef void (*m2859258365_ftn) (t1006925219 *, t1525081276 *);
static m2859258365_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2859258365_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::SetFontInternal(UnityEngine.Font)");
_il2cpp_icall_func(__this, p0);
}
extern "C" t1525081276 * m1458608761 (t1006925219 * __this, const MethodInfo* method)
{
typedef t1525081276 * (*m1458608761_ftn) (t1006925219 *);
static m1458608761_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1458608761_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::GetFontInternalDuringLoadingThread()");
return _il2cpp_icall_func(__this);
}
extern "C" t1525081276 * m2928804526 (t1006925219 * __this, const MethodInfo* method)
{
typedef t1525081276 * (*m2928804526_ftn) (t1006925219 *);
static m2928804526_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2928804526_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::GetFontInternal()");
return _il2cpp_icall_func(__this);
}
extern "C" int32_t m2938276678 (t1006925219 * __this, const MethodInfo* method)
{
typedef int32_t (*m2938276678_ftn) (t1006925219 *);
static m2938276678_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2938276678_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::get_fontSize()");
return _il2cpp_icall_func(__this);
}
extern "C" void m3621764235 (t1006925219 * __this, int32_t p0, const MethodInfo* method)
{
typedef void (*m3621764235_ftn) (t1006925219 *, int32_t);
static m3621764235_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3621764235_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::set_fontSize(System.Int32)");
_il2cpp_icall_func(__this, p0);
}
extern "C" int32_t m3314019014 (t1006925219 * __this, const MethodInfo* method)
{
typedef int32_t (*m3314019014_ftn) (t1006925219 *);
static m3314019014_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3314019014_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::get_fontStyle()");
return _il2cpp_icall_func(__this);
}
extern "C" void m3298083597 (t1006925219 * __this, int32_t p0, const MethodInfo* method)
{
typedef void (*m3298083597_ftn) (t1006925219 *, int32_t);
static m3298083597_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3298083597_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::set_fontStyle(UnityEngine.FontStyle)");
_il2cpp_icall_func(__this, p0);
}
extern "C" bool m1558667173 (t1006925219 * __this, const MethodInfo* method)
{
typedef bool (*m1558667173_ftn) (t1006925219 *);
static m1558667173_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1558667173_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::get_richText()");
return _il2cpp_icall_func(__this);
}
extern "C" void m1293612906 (t1006925219 * __this, bool p0, const MethodInfo* method)
{
typedef void (*m1293612906_ftn) (t1006925219 *, bool);
static m1293612906_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1293612906_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::set_richText(System.Boolean)");
_il2cpp_icall_func(__this, p0);
}
extern "C" void m3365779187 (Il2CppObject * __this , t2432841515 * p0, t1561977533 * p1, const MethodInfo* method)
{
typedef void (*m3365779187_ftn) (t2432841515 *, t1561977533 *);
static m3365779187_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3365779187_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::Internal_Draw(UnityEngine.GUIContent,UnityEngine.Internal_DrawArguments&)");
_il2cpp_icall_func(p0, p1);
}
extern TypeInfo* t1006925219_TI_var;
extern const uint32_t m2706374407_MetadataUsageId;
extern "C" void m2706374407 (Il2CppObject * __this , IntPtr_t p0, t1525428817 p1, t2432841515 * p2, int32_t p3, bool p4, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2706374407_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IntPtr_t L_0 = p0;
t2432841515 * L_1 = p2;
int32_t L_2 = p3;
bool L_3 = p4;
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
m1512749466(NULL, L_0, (&p1), L_1, L_2, L_3, NULL);
return;
}
}
extern "C" void m1512749466 (Il2CppObject * __this , IntPtr_t p0, t1525428817 * p1, t2432841515 * p2, int32_t p3, bool p4, const MethodInfo* method)
{
typedef void (*m1512749466_ftn) (IntPtr_t, t1525428817 *, t2432841515 *, int32_t, bool);
static m1512749466_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1512749466_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::INTERNAL_CALL_Internal_Draw2(System.IntPtr,UnityEngine.Rect&,UnityEngine.GUIContent,System.Int32,System.Boolean)");
_il2cpp_icall_func(p0, p1, p2, p3, p4);
}
extern TypeInfo* t1006925219_TI_var;
extern const uint32_t m1343381847_MetadataUsageId;
extern "C" void m1343381847 (Il2CppObject * __this , IntPtr_t p0, t1525428817 p1, t2432841515 * p2, int32_t p3, bool p4, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m1343381847_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IntPtr_t L_0 = p0;
t2432841515 * L_1 = p2;
int32_t L_2 = p3;
bool L_3 = p4;
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
m3654921866(NULL, L_0, (&p1), L_1, L_2, L_3, NULL);
return;
}
}
extern "C" void m3654921866 (Il2CppObject * __this , IntPtr_t p0, t1525428817 * p1, t2432841515 * p2, int32_t p3, bool p4, const MethodInfo* method)
{
typedef void (*m3654921866_ftn) (IntPtr_t, t1525428817 *, t2432841515 *, int32_t, bool);
static m3654921866_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3654921866_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::INTERNAL_CALL_Internal_DrawPrefixLabel(System.IntPtr,UnityEngine.Rect&,UnityEngine.GUIContent,System.Int32,System.Boolean)");
_il2cpp_icall_func(p0, p1, p2, p3, p4);
}
extern "C" float m3106442082 (Il2CppObject * __this , const MethodInfo* method)
{
typedef float (*m3106442082_ftn) ();
static m3106442082_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3106442082_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::Internal_GetCursorFlashOffset()");
return _il2cpp_icall_func();
}
extern TypeInfo* t1006925219_TI_var;
extern const uint32_t m496261262_MetadataUsageId;
extern "C" void m496261262 (Il2CppObject * __this , IntPtr_t p0, t1525428817 p1, t2432841515 * p2, int32_t p3, t1588175760 p4, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m496261262_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IntPtr_t L_0 = p0;
t2432841515 * L_1 = p2;
int32_t L_2 = p3;
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
m330118499(NULL, L_0, (&p1), L_1, L_2, (&p4), NULL);
return;
}
}
extern "C" void m330118499 (Il2CppObject * __this , IntPtr_t p0, t1525428817 * p1, t2432841515 * p2, int32_t p3, t1588175760 * p4, const MethodInfo* method)
{
typedef void (*m330118499_ftn) (IntPtr_t, t1525428817 *, t2432841515 *, int32_t, t1588175760 *);
static m330118499_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m330118499_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::INTERNAL_CALL_Internal_DrawCursor(System.IntPtr,UnityEngine.Rect&,UnityEngine.GUIContent,System.Int32,UnityEngine.Color&)");
_il2cpp_icall_func(p0, p1, p2, p3, p4);
}
extern "C" void m538670273 (Il2CppObject * __this , t2432841515 * p0, t43446288 * p1, const MethodInfo* method)
{
typedef void (*m538670273_ftn) (t2432841515 *, t43446288 *);
static m538670273_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m538670273_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::Internal_DrawWithTextSelection(UnityEngine.GUIContent,UnityEngine.Internal_DrawWithTextSelectionArguments&)");
_il2cpp_icall_func(p0, p1);
}
extern "C" void m1041826325 (Il2CppObject * __this , t1525081276 * p0, const MethodInfo* method)
{
typedef void (*m1041826325_ftn) (t1525081276 *);
static m1041826325_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1041826325_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::SetDefaultFont(UnityEngine.Font)");
_il2cpp_icall_func(p0);
}
extern TypeInfo* t1006925219_TI_var;
extern const uint32_t m336331745_MetadataUsageId;
extern "C" void m336331745 (Il2CppObject * __this , IntPtr_t p0, t1525428817 p1, t2432841515 * p2, int32_t p3, t3525329788 * p4, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m336331745_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IntPtr_t L_0 = p0;
t2432841515 * L_1 = p2;
int32_t L_2 = p3;
t3525329788 * L_3 = p4;
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
m2602567800(NULL, L_0, (&p1), L_1, L_2, L_3, NULL);
return;
}
}
extern "C" void m2602567800 (Il2CppObject * __this , IntPtr_t p0, t1525428817 * p1, t2432841515 * p2, int32_t p3, t3525329788 * p4, const MethodInfo* method)
{
typedef void (*m2602567800_ftn) (IntPtr_t, t1525428817 *, t2432841515 *, int32_t, t3525329788 *);
static m2602567800_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2602567800_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::INTERNAL_CALL_Internal_GetCursorPixelPosition(System.IntPtr,UnityEngine.Rect&,UnityEngine.GUIContent,System.Int32,UnityEngine.Vector2&)");
_il2cpp_icall_func(p0, p1, p2, p3, p4);
}
extern TypeInfo* t1006925219_TI_var;
extern const uint32_t m1275963970_MetadataUsageId;
extern "C" int32_t m1275963970 (Il2CppObject * __this , IntPtr_t p0, t1525428817 p1, t2432841515 * p2, t3525329788 p3, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m1275963970_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IntPtr_t L_0 = p0;
t2432841515 * L_1 = p2;
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
int32_t L_2 = m3457179887(NULL, L_0, (&p1), L_1, (&p3), NULL);
return L_2;
}
}
extern "C" int32_t m3457179887 (Il2CppObject * __this , IntPtr_t p0, t1525428817 * p1, t2432841515 * p2, t3525329788 * p3, const MethodInfo* method)
{
typedef int32_t (*m3457179887_ftn) (IntPtr_t, t1525428817 *, t2432841515 *, t3525329788 *);
static m3457179887_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3457179887_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::INTERNAL_CALL_Internal_GetCursorStringIndex(System.IntPtr,UnityEngine.Rect&,UnityEngine.GUIContent,UnityEngine.Vector2&)");
return _il2cpp_icall_func(p0, p1, p2, p3);
}
extern "C" int32_t m470425907 (Il2CppObject * __this , IntPtr_t p0, String_t* p1, float p2, const MethodInfo* method)
{
typedef int32_t (*m470425907_ftn) (IntPtr_t, String_t*, float);
static m470425907_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m470425907_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::Internal_GetNumCharactersThatFitWithinWidth(System.IntPtr,System.String,System.Single)");
return _il2cpp_icall_func(p0, p1, p2);
}
extern "C" void m1389308622 (Il2CppObject * __this , IntPtr_t p0, t2432841515 * p1, t3525329788 * p2, const MethodInfo* method)
{
typedef void (*m1389308622_ftn) (IntPtr_t, t2432841515 *, t3525329788 *);
static m1389308622_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1389308622_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::Internal_CalcSize(System.IntPtr,UnityEngine.GUIContent,UnityEngine.Vector2&)");
_il2cpp_icall_func(p0, p1, p2);
}
extern TypeInfo* t1006925219_TI_var;
extern const uint32_t m484790978_MetadataUsageId;
extern "C" void m484790978 (Il2CppObject * __this , IntPtr_t p0, t2432841515 * p1, t3525329788 p2, t3525329788 * p3, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m484790978_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IntPtr_t L_0 = p0;
t2432841515 * L_1 = p1;
t3525329788 * L_2 = p3;
IL2CPP_RUNTIME_CLASS_INIT(t1006925219_TI_var);
m2048982689(NULL, L_0, L_1, (&p2), L_2, NULL);
return;
}
}
extern "C" void m2048982689 (Il2CppObject * __this , IntPtr_t p0, t2432841515 * p1, t3525329788 * p2, t3525329788 * p3, const MethodInfo* method)
{
typedef void (*m2048982689_ftn) (IntPtr_t, t2432841515 *, t3525329788 *, t3525329788 *);
static m2048982689_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2048982689_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::INTERNAL_CALL_Internal_CalcSizeWithConstraints(System.IntPtr,UnityEngine.GUIContent,UnityEngine.Vector2&,UnityEngine.Vector2&)");
_il2cpp_icall_func(p0, p1, p2, p3);
}
extern "C" float m3448302985 (Il2CppObject * __this , IntPtr_t p0, t2432841515 * p1, float p2, const MethodInfo* method)
{
typedef float (*m3448302985_ftn) (IntPtr_t, t2432841515 *, float);
static m3448302985_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3448302985_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::Internal_CalcHeight(System.IntPtr,UnityEngine.GUIContent,System.Single)");
return _il2cpp_icall_func(p0, p1, p2);
}
extern "C" void m1670371175 (Il2CppObject * __this , IntPtr_t p0, t2432841515 * p1, float* p2, float* p3, const MethodInfo* method)
{
typedef void (*m1670371175_ftn) (IntPtr_t, t2432841515 *, float*, float*);
static m1670371175_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1670371175_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyle::Internal_CalcMinMaxWidth(System.IntPtr,UnityEngine.GUIContent,System.Single&,System.Single&)");
_il2cpp_icall_func(p0, p1, p2, p3);
}
extern TypeInfo* t2614611333_TI_var;
extern TypeInfo* t1588791936_TI_var;
extern Il2CppCodeGenString* _stringLiteral459061627;
extern const uint32_t m169215436_MetadataUsageId;
extern "C" t1006925219 * m169215436 (Il2CppObject * __this , String_t* p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m169215436_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t2614611333 * L_0 = ((t2614611333_SFs*)t2614611333_TI_var->static_fields)->fg28();
bool L_1 = m3964590952(NULL, L_0, (t3878351788 *)NULL, NULL);
if (!L_1)
{
goto IL_0020;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(t1588791936_TI_var);
m4127342994(NULL, _stringLiteral459061627, NULL);
t1006925219 * L_2 = m2137471808(NULL, NULL);
return L_2;
}
IL_0020:
{
t2614611333 * L_3 = ((t2614611333_SFs*)t2614611333_TI_var->static_fields)->fg28();
String_t* L_4 = p0;
t1006925219 * L_5 = m2474694726(L_3, L_4, NULL);
return L_5;
}
}
extern "C" void m2789776190 (t47287592 * __this, const MethodInfo* method)
{
{
m1772956182(__this, NULL);
m872813398(__this, NULL);
return;
}
}
extern "C" void m1478971583 (t47287592 * __this, t1006925219 * p0, IntPtr_t p1, const MethodInfo* method)
{
{
m1772956182(__this, NULL);
t1006925219 * L_0 = p0;
__this->fs1(L_0);
IntPtr_t L_1 = p1;
__this->fs0(L_1);
return;
}
}
extern TypeInfo* t47287592_TI_var;
extern const uint32_t m243465942_MetadataUsageId;
extern "C" t47287592 * m243465942 (Il2CppObject * __this , t1006925219 * p0, IntPtr_t p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m243465942_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t47287592 * V_0 = NULL;
{
t1006925219 * L_0 = p0;
IntPtr_t L_1 = p1;
t47287592 * L_2 = (t47287592 *)il2cpp_codegen_object_new(t47287592_TI_var);
m1478971583(L_2, L_0, L_1, NULL);
V_0 = L_2;
t47287592 * L_3 = V_0;
t47287592 * L_4 = V_0;
t2509538522 * L_5 = m2608056493(L_4, NULL);
L_3->fs2(L_5);
t47287592 * L_6 = V_0;
return L_6;
}
}
extern TypeInfo* t47287592_TI_var;
extern const uint32_t m511242685_MetadataUsageId;
extern "C" t47287592 * m511242685 (Il2CppObject * __this , t1006925219 * p0, IntPtr_t p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m511242685_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t47287592 * V_0 = NULL;
{
t1006925219 * L_0 = p0;
IntPtr_t L_1 = p1;
t47287592 * L_2 = (t47287592 *)il2cpp_codegen_object_new(t47287592_TI_var);
m1478971583(L_2, L_0, L_1, NULL);
V_0 = L_2;
t47287592 * L_3 = V_0;
t47287592 * L_4 = V_0;
t2509538522 * L_5 = m2898492250(L_4, NULL);
L_3->fs2(L_5);
t47287592 * L_6 = V_0;
return L_6;
}
}
extern "C" void m2707805284 (t47287592 * __this, const MethodInfo* method)
{
t1967233988 * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
t1967233988 * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
IL_0000:
try
{ // begin try (depth: 1)
{
t1006925219 * L_0 = __this->fg1();
if (L_0)
{
goto IL_0011;
}
}
IL_000b:
{
m3584086848(__this, NULL);
}
IL_0011:
{
IL2CPP_LEAVE(0x1D, FINALLY_0016);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t1967233988 *)e.ex;
goto FINALLY_0016;
}
FINALLY_0016:
{ // begin finally (depth: 1)
m3027285644(__this, NULL);
IL2CPP_END_FINALLY(22)
} // end finally (depth: 1)
IL2CPP_CLEANUP(22)
{
IL2CPP_JUMP_TBL(0x1D, IL_001d)
IL2CPP_RETHROW_IF_UNHANDLED(t1967233988 *)
}
IL_001d:
{
return;
}
}
extern "C" void m872813398 (t47287592 * __this, const MethodInfo* method)
{
typedef void (*m872813398_ftn) (t47287592 *);
static m872813398_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m872813398_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyleState::Init()");
_il2cpp_icall_func(__this);
}
extern "C" void m3584086848 (t47287592 * __this, const MethodInfo* method)
{
typedef void (*m3584086848_ftn) (t47287592 *);
static m3584086848_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m3584086848_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyleState::Cleanup()");
_il2cpp_icall_func(__this);
}
extern "C" t2509538522 * m2608056493 (t47287592 * __this, const MethodInfo* method)
{
typedef t2509538522 * (*m2608056493_ftn) (t47287592 *);
static m2608056493_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2608056493_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyleState::GetBackgroundInternalFromDeserialization()");
return _il2cpp_icall_func(__this);
}
extern "C" t2509538522 * m2898492250 (t47287592 * __this, const MethodInfo* method)
{
typedef t2509538522 * (*m2898492250_ftn) (t47287592 *);
static m2898492250_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2898492250_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyleState::GetBackgroundInternal()");
return _il2cpp_icall_func(__this);
}
extern "C" void m3058467057 (t47287592 * __this, t1588175760 p0, const MethodInfo* method)
{
{
m2711899875(__this, (&p0), NULL);
return;
}
}
extern "C" void m2711899875 (t47287592 * __this, t1588175760 * p0, const MethodInfo* method)
{
typedef void (*m2711899875_ftn) (t47287592 *, t1588175760 *);
static m2711899875_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2711899875_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIStyleState::INTERNAL_set_textColor(UnityEngine.Color&)");
_il2cpp_icall_func(__this, p0);
}
extern const Il2CppType* t1104173501_0_0_0_var;
extern TypeInfo* Type_t_TI_var;
extern TypeInfo* t1104173501_TI_var;
extern const uint32_t m1884776752_MetadataUsageId;
extern "C" int32_t m1884776752 (Il2CppObject * __this , Type_t * p0, String_t* p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m1884776752_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
MethodInfo_t * V_0 = NULL;
t11523773* V_1 = NULL;
int32_t V_2 = 0;
t1104173501 * V_3 = NULL;
{
Type_t * L_0 = p0;
String_t* L_1 = p1;
MethodInfo_t * L_2 = VirtFuncInvoker2< MethodInfo_t *, String_t*, int32_t >::Invoke(47 /* System.Reflection.MethodInfo System.Type::GetMethod(System.String,System.Reflection.BindingFlags) */, L_0, L_1, ((int32_t)52));
V_0 = L_2;
MethodInfo_t * L_3 = V_0;
if (!L_3)
{
goto IL_005e;
}
}
{
MethodInfo_t * L_4 = V_0;
t11523773* L_5 = VirtFuncInvoker1< t11523773*, bool >::Invoke(12 /* System.Object[] System.Reflection.MemberInfo::GetCustomAttributes(System.Boolean) */, L_4, (bool)1);
V_1 = L_5;
t11523773* L_6 = V_1;
if (!L_6)
{
goto IL_005e;
}
}
{
V_2 = 0;
goto IL_0055;
}
IL_0025:
{
t11523773* L_7 = V_1;
int32_t L_8 = V_2;
int32_t L_9 = L_8;
Type_t * L_10 = m2022236990(((L_7)->GetAt(static_cast<il2cpp_array_size_t>(L_9))), NULL);
IL2CPP_RUNTIME_CLASS_INIT(Type_t_TI_var);
Type_t * L_11 = m3806905434(NULL, LoadTypeToken(t1104173501_0_0_0_var), NULL);
if ((((Il2CppObject*)(Type_t *)L_10) == ((Il2CppObject*)(Type_t *)L_11)))
{
goto IL_0041;
}
}
{
goto IL_0051;
}
IL_0041:
{
t11523773* L_12 = V_1;
int32_t L_13 = V_2;
int32_t L_14 = L_13;
V_3 = ((t1104173501 *)IsInstClass(((L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_14))), t1104173501_TI_var));
t1104173501 * L_15 = V_3;
int32_t L_16 = L_15->fg0();
return L_16;
}
IL_0051:
{
int32_t L_17 = V_2;
V_2 = ((int32_t)((int32_t)L_17+(int32_t)1));
}
IL_0055:
{
int32_t L_18 = V_2;
t11523773* L_19 = V_1;
if ((((int32_t)L_18) < ((int32_t)(((int32_t)((int32_t)(((Il2CppArray *)L_19)->max_length)))))))
{
goto IL_0025;
}
}
IL_005e:
{
return (-1);
}
}
extern "C" void m1963534853 (t2614635829 * __this, String_t* p0, const MethodInfo* method)
{
typedef void (*m1963534853_ftn) (t2614635829 *, String_t*);
static m1963534853_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1963534853_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIText::set_text(System.String)");
_il2cpp_icall_func(__this, p0);
}
extern TypeInfo* t1366332446_TI_var;
extern const uint32_t m2712534225_MetadataUsageId;
extern "C" void m2712534225 (Il2CppObject * __this , const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2712534225_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t3525329788 L_0 = m199872368(NULL, NULL);
((t1366332446_SFs*)t1366332446_TI_var->static_fields)->fs2(L_0);
((t1366332446_SFs*)t1366332446_TI_var->static_fields)->fs3((bool)0);
return;
}
}
extern TypeInfo* t1366332446_TI_var;
extern const uint32_t m2351352349_MetadataUsageId;
extern "C" float m2351352349 (Il2CppObject * __this , const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m2351352349_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(t1366332446_TI_var);
float L_0 = m4247925832(NULL, NULL);
return L_0;
}
}
extern TypeInfo* t1366332446_TI_var;
extern const uint32_t m4135893409_MetadataUsageId;
extern "C" int32_t m4135893409 (Il2CppObject * __this , const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m4135893409_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(t1366332446_TI_var);
int32_t L_0 = m1758149964(NULL, NULL);
return L_0;
}
}
extern TypeInfo* t1366332446_TI_var;
extern const uint32_t m3151786562_MetadataUsageId;
extern "C" t2614611333 * m3151786562 (Il2CppObject * __this , const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3151786562_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(t1366332446_TI_var);
int32_t L_0 = ((t1366332446_SFs*)t1366332446_TI_var->static_fields)->fg0();
t2614611333 * L_1 = m1795114979(NULL, L_0, NULL);
return L_1;
}
}
extern TypeInfo* t1366332446_TI_var;
extern TypeInfo* t1522956648_TI_var;
extern TypeInfo* t1596329428_TI_var;
extern const uint32_t m1799121707_MetadataUsageId;
extern "C" void m1799121707 (Il2CppObject * __this , int32_t p0, int32_t p1, int32_t p2, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m1799121707_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
int32_t L_0 = p0;
IL2CPP_RUNTIME_CLASS_INIT(t1366332446_TI_var);
((t1366332446_SFs*)t1366332446_TI_var->static_fields)->fs0(L_0);
int32_t L_1 = p1;
((t1366332446_SFs*)t1366332446_TI_var->static_fields)->fs1(L_1);
IL2CPP_RUNTIME_CLASS_INIT(t1522956648_TI_var);
m1213959601(NULL, (t2614611333 *)NULL, NULL);
int32_t L_2 = p2;
if (!L_2)
{
goto IL_0026;
}
}
{
int32_t L_3 = p1;
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
m801008209(NULL, L_3, (bool)0, NULL);
int32_t L_4 = p1;
m2012081982(NULL, L_4, NULL);
}
IL_0026:
{
IL2CPP_RUNTIME_CLASS_INIT(t1522956648_TI_var);
m727947722(NULL, (bool)0, NULL);
return;
}
}
extern TypeInfo* t1596329428_TI_var;
extern TypeInfo* t1366332446_TI_var;
extern TypeInfo* t2432841515_TI_var;
extern const uint32_t m1069008217_MetadataUsageId;
extern "C" void m1069008217 (Il2CppObject * __this , int32_t p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m1069008217_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
int32_t V_0 = 0;
t1967233988 * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
t1967233988 * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
IL_0000:
try
{ // begin try (depth: 1)
{
t1590224583 * L_0 = m238587645(NULL, NULL);
int32_t L_1 = m2209939250(L_0, NULL);
if ((!(((uint32_t)L_1) == ((uint32_t)8))))
{
goto IL_0042;
}
}
IL_0010:
{
int32_t L_2 = p0;
V_0 = L_2;
int32_t L_3 = V_0;
if (L_3 == 0)
{
goto IL_0029;
}
if (L_3 == 1)
{
goto IL_002e;
}
if (L_3 == 2)
{
goto IL_0038;
}
}
IL_0024:
{
goto IL_0042;
}
IL_0029:
{
goto IL_0042;
}
IL_002e:
{
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
m1143185416(NULL, NULL);
goto IL_0042;
}
IL_0038:
{
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
m3347777775(NULL, NULL);
goto IL_0042;
}
IL_0042:
{
IL2CPP_RUNTIME_CLASS_INIT(t1366332446_TI_var);
int32_t L_4 = ((t1366332446_SFs*)t1366332446_TI_var->static_fields)->fg1();
IL2CPP_RUNTIME_CLASS_INIT(t1596329428_TI_var);
m801008209(NULL, L_4, (bool)0, NULL);
IL2CPP_RUNTIME_CLASS_INIT(t2432841515_TI_var);
m2388858588(NULL, NULL);
IL2CPP_LEAVE(0x5E, FINALLY_0058);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (t1967233988 *)e.ex;
goto FINALLY_0058;
}
FINALLY_0058:
{ // begin finally (depth: 1)
IL2CPP_RUNTIME_CLASS_INIT(t1366332446_TI_var);
m725832131(NULL, NULL);
IL2CPP_END_FINALLY(88)
} // end finally (depth: 1)
IL2CPP_CLEANUP(88)
{
IL2CPP_JUMP_TBL(0x5E, IL_005e)
IL2CPP_RETHROW_IF_UNHANDLED(t1967233988 *)
}
IL_005e:
{
return;
}
}
extern TypeInfo* t137235967_TI_var;
extern TypeInfo* t1366332446_TI_var;
extern const uint32_t m1739426121_MetadataUsageId;
extern "C" bool m1739426121 (Il2CppObject * __this , t1967233988 * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m1739426121_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
t1967233988 * L_0 = p0;
if (L_0)
{
goto IL_0008;
}
}
{
return (bool)0;
}
IL_0008:
{
t1967233988 * L_1 = p0;
if (((t137235967 *)IsInstSealed(L_1, t137235967_TI_var)))
{
goto IL_0025;
}
}
{
t1967233988 * L_2 = p0;
t1967233988 * L_3 = VirtFuncInvoker0< t1967233988 * >::Invoke(5 /* System.Exception System.Exception::get_InnerException() */, L_2);
if (((t137235967 *)IsInstSealed(L_3, t137235967_TI_var)))
{
goto IL_0025;
}
}
{
return (bool)0;
}
IL_0025:
{
IL2CPP_RUNTIME_CLASS_INIT(t1366332446_TI_var);
m725832131(NULL, NULL);
return (bool)1;
}
}
extern TypeInfo* t1366332446_TI_var;
extern TypeInfo* t124305799_TI_var;
extern Il2CppCodeGenString* _stringLiteral3518172617;
extern const uint32_t m640002012_MetadataUsageId;
extern "C" void m640002012 (Il2CppObject * __this , const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m640002012_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(t1366332446_TI_var);
int32_t L_0 = m2619692036(NULL, NULL);
if ((((int32_t)L_0) > ((int32_t)0)))
{
goto IL_0016;
}
}
{
t124305799 * L_1 = (t124305799 *)il2cpp_codegen_object_new(t124305799_TI_var);
m3544856547(L_1, _stringLiteral3518172617, NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_1);
}
IL_0016:
{
return;
}
}
extern "C" float m4247925832 (Il2CppObject * __this , const MethodInfo* method)
{
typedef float (*m4247925832_ftn) ();
static m4247925832_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m4247925832_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIUtility::Internal_GetPixelsPerPoint()");
return _il2cpp_icall_func();
}
extern "C" int32_t m1758149964 (Il2CppObject * __this , const MethodInfo* method)
{
typedef int32_t (*m1758149964_ftn) ();
static m1758149964_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1758149964_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIUtility::Internal_GetHotControl()");
return _il2cpp_icall_func();
}
extern "C" int32_t m1277835431 (Il2CppObject * __this , const MethodInfo* method)
{
typedef int32_t (*m1277835431_ftn) ();
static m1277835431_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1277835431_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIUtility::get_keyboardControl()");
return _il2cpp_icall_func();
}
extern "C" t2614611333 * m1795114979 (Il2CppObject * __this , int32_t p0, const MethodInfo* method)
{
typedef t2614611333 * (*m1795114979_ftn) (int32_t);
static m1795114979_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m1795114979_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIUtility::Internal_GetDefaultSkin(System.Int32)");
return _il2cpp_icall_func(p0);
}
extern "C" void m725832131 (Il2CppObject * __this , const MethodInfo* method)
{
typedef void (*m725832131_ftn) ();
static m725832131_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m725832131_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIUtility::Internal_ExitGUI()");
_il2cpp_icall_func();
}
extern "C" int32_t m2619692036 (Il2CppObject * __this , const MethodInfo* method)
{
typedef int32_t (*m2619692036_ftn) ();
static m2619692036_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2619692036_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.GUIUtility::Internal_GetGUIDepth()");
return _il2cpp_icall_func();
}
extern "C" String_t* m4281149553 (t3114874302 * __this, const MethodInfo* method)
{
{
String_t* L_0 = __this->fg0();
return L_0;
}
}
extern "C" void m2758161818 (t3114874302 * __this, String_t* p0, const MethodInfo* method)
{
{
String_t* L_0 = p0;
__this->fs0(L_0);
return;
}
}
extern "C" String_t* m1702517944 (t3114874302 * __this, const MethodInfo* method)
{
{
String_t* L_0 = __this->fg1();
return L_0;
}
}
extern "C" void m1186126593 (t3114874302 * __this, String_t* p0, const MethodInfo* method)
{
{
String_t* L_0 = p0;
__this->fs1(L_0);
return;
}
}
// Conversion methods for marshalling of: UnityEngine.HumanBone
extern "C" void t3114874302_marshal_pinvoke(const t3114874302& unmarshaled, t3114874302_marshaled_pinvoke& marshaled)
{
marshaled.f0 = il2cpp_codegen_marshal_string(unmarshaled.fg0());
marshaled.f1 = il2cpp_codegen_marshal_string(unmarshaled.fg1());
t3638947579_marshal_pinvoke(unmarshaled.fg2(), marshaled.f2);
}
extern "C" void t3114874302_marshal_pinvoke_back(const t3114874302_marshaled_pinvoke& marshaled, t3114874302& unmarshaled)
{
unmarshaled.fs0(il2cpp_codegen_marshal_string_result(marshaled.f0));
unmarshaled.fs1(il2cpp_codegen_marshal_string_result(marshaled.f1));
t3638947579 unmarshaled_limit_temp;
memset(&unmarshaled_limit_temp, 0, sizeof(unmarshaled_limit_temp));
t3638947579_marshal_pinvoke_back(marshaled.f2, unmarshaled_limit_temp);
unmarshaled.fs2(unmarshaled_limit_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.HumanBone
extern "C" void t3114874302_marshal_pinvoke_cleanup(t3114874302_marshaled_pinvoke& marshaled)
{
il2cpp_codegen_marshal_free(marshaled.f0);
marshaled.f0 = NULL;
il2cpp_codegen_marshal_free(marshaled.f1);
marshaled.f1 = NULL;
t3638947579_marshal_pinvoke_cleanup(marshaled.f2);
}
// Conversion methods for marshalling of: UnityEngine.HumanBone
extern "C" void t3114874302_marshal_com(const t3114874302& unmarshaled, t3114874302_marshaled_com& marshaled)
{
marshaled.f0 = il2cpp_codegen_marshal_bstring(unmarshaled.fg0());
marshaled.f1 = il2cpp_codegen_marshal_bstring(unmarshaled.fg1());
t3638947579_marshal_com(unmarshaled.fg2(), marshaled.f2);
}
extern "C" void t3114874302_marshal_com_back(const t3114874302_marshaled_com& marshaled, t3114874302& unmarshaled)
{
unmarshaled.fs0(il2cpp_codegen_marshal_bstring_result(marshaled.f0));
unmarshaled.fs1(il2cpp_codegen_marshal_bstring_result(marshaled.f1));
t3638947579 unmarshaled_limit_temp;
memset(&unmarshaled_limit_temp, 0, sizeof(unmarshaled_limit_temp));
t3638947579_marshal_com_back(marshaled.f2, unmarshaled_limit_temp);
unmarshaled.fs2(unmarshaled_limit_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.HumanBone
extern "C" void t3114874302_marshal_com_cleanup(t3114874302_marshaled_com& marshaled)
{
il2cpp_codegen_marshal_free_bstring(marshaled.f0);
marshaled.f0 = NULL;
il2cpp_codegen_marshal_free_bstring(marshaled.f1);
marshaled.f1 = NULL;
t3638947579_marshal_com_cleanup(marshaled.f2);
}
// Conversion methods for marshalling of: UnityEngine.HumanLimit
extern "C" void t3638947579_marshal_pinvoke(const t3638947579& unmarshaled, t3638947579_marshaled_pinvoke& marshaled)
{
t3525329789_marshal_pinvoke(unmarshaled.fg0(), marshaled.f0);
t3525329789_marshal_pinvoke(unmarshaled.fg1(), marshaled.f1);
t3525329789_marshal_pinvoke(unmarshaled.fg2(), marshaled.f2);
marshaled.f3 = unmarshaled.fg3();
marshaled.f4 = unmarshaled.fg4();
}
extern "C" void t3638947579_marshal_pinvoke_back(const t3638947579_marshaled_pinvoke& marshaled, t3638947579& unmarshaled)
{
t3525329789 unmarshaled_m_Min_temp;
memset(&unmarshaled_m_Min_temp, 0, sizeof(unmarshaled_m_Min_temp));
t3525329789_marshal_pinvoke_back(marshaled.f0, unmarshaled_m_Min_temp);
unmarshaled.fs0(unmarshaled_m_Min_temp);
t3525329789 unmarshaled_m_Max_temp;
memset(&unmarshaled_m_Max_temp, 0, sizeof(unmarshaled_m_Max_temp));
t3525329789_marshal_pinvoke_back(marshaled.f1, unmarshaled_m_Max_temp);
unmarshaled.fs1(unmarshaled_m_Max_temp);
t3525329789 unmarshaled_m_Center_temp;
memset(&unmarshaled_m_Center_temp, 0, sizeof(unmarshaled_m_Center_temp));
t3525329789_marshal_pinvoke_back(marshaled.f2, unmarshaled_m_Center_temp);
unmarshaled.fs2(unmarshaled_m_Center_temp);
float unmarshaled_m_AxisLength_temp = 0.0f;
unmarshaled_m_AxisLength_temp = marshaled.f3;
unmarshaled.fs3(unmarshaled_m_AxisLength_temp);
int32_t unmarshaled_m_UseDefaultValues_temp = 0;
unmarshaled_m_UseDefaultValues_temp = marshaled.f4;
unmarshaled.fs4(unmarshaled_m_UseDefaultValues_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.HumanLimit
extern "C" void t3638947579_marshal_pinvoke_cleanup(t3638947579_marshaled_pinvoke& marshaled)
{
t3525329789_marshal_pinvoke_cleanup(marshaled.f0);
t3525329789_marshal_pinvoke_cleanup(marshaled.f1);
t3525329789_marshal_pinvoke_cleanup(marshaled.f2);
}
// Conversion methods for marshalling of: UnityEngine.HumanLimit
extern "C" void t3638947579_marshal_com(const t3638947579& unmarshaled, t3638947579_marshaled_com& marshaled)
{
t3525329789_marshal_com(unmarshaled.fg0(), marshaled.f0);
t3525329789_marshal_com(unmarshaled.fg1(), marshaled.f1);
t3525329789_marshal_com(unmarshaled.fg2(), marshaled.f2);
marshaled.f3 = unmarshaled.fg3();
marshaled.f4 = unmarshaled.fg4();
}
extern "C" void t3638947579_marshal_com_back(const t3638947579_marshaled_com& marshaled, t3638947579& unmarshaled)
{
t3525329789 unmarshaled_m_Min_temp;
memset(&unmarshaled_m_Min_temp, 0, sizeof(unmarshaled_m_Min_temp));
t3525329789_marshal_com_back(marshaled.f0, unmarshaled_m_Min_temp);
unmarshaled.fs0(unmarshaled_m_Min_temp);
t3525329789 unmarshaled_m_Max_temp;
memset(&unmarshaled_m_Max_temp, 0, sizeof(unmarshaled_m_Max_temp));
t3525329789_marshal_com_back(marshaled.f1, unmarshaled_m_Max_temp);
unmarshaled.fs1(unmarshaled_m_Max_temp);
t3525329789 unmarshaled_m_Center_temp;
memset(&unmarshaled_m_Center_temp, 0, sizeof(unmarshaled_m_Center_temp));
t3525329789_marshal_com_back(marshaled.f2, unmarshaled_m_Center_temp);
unmarshaled.fs2(unmarshaled_m_Center_temp);
float unmarshaled_m_AxisLength_temp = 0.0f;
unmarshaled_m_AxisLength_temp = marshaled.f3;
unmarshaled.fs3(unmarshaled_m_AxisLength_temp);
int32_t unmarshaled_m_UseDefaultValues_temp = 0;
unmarshaled_m_UseDefaultValues_temp = marshaled.f4;
unmarshaled.fs4(unmarshaled_m_UseDefaultValues_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.HumanLimit
extern "C" void t3638947579_marshal_com_cleanup(t3638947579_marshaled_com& marshaled)
{
t3525329789_marshal_com_cleanup(marshaled.f0);
t3525329789_marshal_com_cleanup(marshaled.f1);
t3525329789_marshal_com_cleanup(marshaled.f2);
}
extern "C" void m1327041086 (Il2CppObject * __this , const MethodInfo* method)
{
{
return;
}
}
extern "C" float m2027668530 (Il2CppObject * __this , String_t* p0, const MethodInfo* method)
{
typedef float (*m2027668530_ftn) (String_t*);
static m2027668530_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2027668530_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Input::GetAxis(System.String)");
return _il2cpp_icall_func(p0);
}
extern "C" bool m4080958081 (Il2CppObject * __this , int32_t p0, const MethodInfo* method)
{
typedef bool (*m4080958081_ftn) (int32_t);
static m4080958081_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m4080958081_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Input::GetMouseButton(System.Int32)");
return _il2cpp_icall_func(p0);
}
extern "C" bool m2031691843 (Il2CppObject * __this , int32_t p0, const MethodInfo* method)
{
typedef bool (*m2031691843_ftn) (int32_t);
static m2031691843_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m2031691843_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Input::GetMouseButtonDown(System.Int32)");
return _il2cpp_icall_func(p0);
}
extern TypeInfo* t1593691127_TI_var;
extern const uint32_t m4020233228_MetadataUsageId;
extern "C" t3525329789 m4020233228 (Il2CppObject * __this , const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m4020233228_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t3525329789 V_0;
memset(&V_0, 0, sizeof(V_0));
{
IL2CPP_RUNTIME_CLASS_INIT(t1593691127_TI_var);
m4008828427(NULL, (&V_0), NULL);
t3525329789 L_0 = V_0;
return L_0;
}
}
extern "C" void m4008828427 (Il2CppObject * __this , t3525329789 * p0, const MethodInfo* method)
{
typedef void (*m4008828427_ftn) (t3525329789 *);
static m4008828427_ftn _il2cpp_icall_func;
if (!_il2cpp_icall_func)
_il2cpp_icall_func = (m4008828427_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.Input::INTERNAL_get_mousePosition(UnityEngine.Vector3&)");
_il2cpp_icall_func(p0);
}
extern "C" void m1665393712 (t116041064 * __this, String_t* p0, const MethodInfo* method)
{
{
m2985353781(__this, NULL);
String_t* L_0 = p0;
__this->fs0(L_0);
return;
}
}
extern "C" Il2CppObject * m1575119971 (t116041064 * __this, const MethodInfo* method)
{
{
Il2CppObject * L_0 = __this->fg0();
return L_0;
}
}
extern TypeInfo* t116041064_TI_var;
extern const uint32_t m1990537309_MetadataUsageId;
extern "C" bool m1990537309 (t116041064 * __this, Il2CppObject * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m1990537309_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
t116041064 * V_0 = NULL;
{
Il2CppObject * L_0 = p0;
V_0 = ((t116041064 *)IsInstClass(L_0, t116041064_TI_var));
t116041064 * L_1 = V_0;
if (L_1)
{
goto IL_000f;
}
}
{
return (bool)0;
}
IL_000f:
{
Il2CppObject * L_2 = __this->fg0();
if (L_2)
{
goto IL_0024;
}
}
{
t116041064 * L_3 = V_0;
Il2CppObject * L_4 = m1575119971(L_3, NULL);
return (bool)((((Il2CppObject*)(Il2CppObject *)L_4) == ((Il2CppObject*)(Il2CppObject *)NULL))? 1 : 0);
}
IL_0024:
{
Il2CppObject * L_5 = __this->fg0();
t116041064 * L_6 = V_0;
Il2CppObject * L_7 = m1575119971(L_6, NULL);
bool L_8 = VirtFuncInvoker1< bool, Il2CppObject * >::Invoke(0 /* System.Boolean System.Object::Equals(System.Object) */, L_5, L_7);
return L_8;
}
}
extern "C" int32_t m3284653761 (t116041064 * __this, const MethodInfo* method)
{
{
Il2CppObject * L_0 = __this->fg0();
if (L_0)
{
goto IL_0012;
}
}
{
int32_t L_1 = m3717491592(__this, NULL);
return L_1;
}
IL_0012:
{
Il2CppObject * L_2 = __this->fg0();
int32_t L_3 = VirtFuncInvoker0< int32_t >::Invoke(2 /* System.Int32 System.Object::GetHashCode() */, L_2);
return L_3;
}
}
extern "C" void m623077387 (t2739928377 * __this, const MethodInfo* method)
{
{
m2985353781(__this, NULL);
return;
}
}
// Conversion methods for marshalling of: UnityEngine.Internal_DrawArguments
extern "C" void t1561977533_marshal_pinvoke(const t1561977533& unmarshaled, t1561977533_marshaled_pinvoke& marshaled)
{
marshaled.f0 = reinterpret_cast<intptr_t>((unmarshaled.fg0()).fg0());
t1525428817_marshal_pinvoke(unmarshaled.fg1(), marshaled.f1);
marshaled.f2 = unmarshaled.fg2();
marshaled.f3 = unmarshaled.fg3();
marshaled.f4 = unmarshaled.fg4();
marshaled.f5 = unmarshaled.fg5();
}
extern "C" void t1561977533_marshal_pinvoke_back(const t1561977533_marshaled_pinvoke& marshaled, t1561977533& unmarshaled)
{
IntPtr_t unmarshaled_target_temp;
memset(&unmarshaled_target_temp, 0, sizeof(unmarshaled_target_temp));
IntPtr_t unmarshaled_target_temp_temp;
unmarshaled_target_temp_temp.set_m_value_0(reinterpret_cast<void*>((intptr_t)marshaled.f0));
unmarshaled_target_temp = unmarshaled_target_temp_temp;
unmarshaled.fs0(unmarshaled_target_temp);
t1525428817 unmarshaled_position_temp;
memset(&unmarshaled_position_temp, 0, sizeof(unmarshaled_position_temp));
t1525428817_marshal_pinvoke_back(marshaled.f1, unmarshaled_position_temp);
unmarshaled.fs1(unmarshaled_position_temp);
int32_t unmarshaled_isHover_temp = 0;
unmarshaled_isHover_temp = marshaled.f2;
unmarshaled.fs2(unmarshaled_isHover_temp);
int32_t unmarshaled_isActive_temp = 0;
unmarshaled_isActive_temp = marshaled.f3;
unmarshaled.fs3(unmarshaled_isActive_temp);
int32_t unmarshaled_on_temp = 0;
unmarshaled_on_temp = marshaled.f4;
unmarshaled.fs4(unmarshaled_on_temp);
int32_t unmarshaled_hasKeyboardFocus_temp = 0;
unmarshaled_hasKeyboardFocus_temp = marshaled.f5;
unmarshaled.fs5(unmarshaled_hasKeyboardFocus_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.Internal_DrawArguments
extern "C" void t1561977533_marshal_pinvoke_cleanup(t1561977533_marshaled_pinvoke& marshaled)
{
t1525428817_marshal_pinvoke_cleanup(marshaled.f1);
}
// Conversion methods for marshalling of: UnityEngine.Internal_DrawArguments
extern "C" void t1561977533_marshal_com(const t1561977533& unmarshaled, t1561977533_marshaled_com& marshaled)
{
marshaled.f0 = reinterpret_cast<intptr_t>((unmarshaled.fg0()).fg0());
t1525428817_marshal_com(unmarshaled.fg1(), marshaled.f1);
marshaled.f2 = unmarshaled.fg2();
marshaled.f3 = unmarshaled.fg3();
marshaled.f4 = unmarshaled.fg4();
marshaled.f5 = unmarshaled.fg5();
}
extern "C" void t1561977533_marshal_com_back(const t1561977533_marshaled_com& marshaled, t1561977533& unmarshaled)
{
IntPtr_t unmarshaled_target_temp;
memset(&unmarshaled_target_temp, 0, sizeof(unmarshaled_target_temp));
IntPtr_t unmarshaled_target_temp_temp;
unmarshaled_target_temp_temp.set_m_value_0(reinterpret_cast<void*>((intptr_t)marshaled.f0));
unmarshaled_target_temp = unmarshaled_target_temp_temp;
unmarshaled.fs0(unmarshaled_target_temp);
t1525428817 unmarshaled_position_temp;
memset(&unmarshaled_position_temp, 0, sizeof(unmarshaled_position_temp));
t1525428817_marshal_com_back(marshaled.f1, unmarshaled_position_temp);
unmarshaled.fs1(unmarshaled_position_temp);
int32_t unmarshaled_isHover_temp = 0;
unmarshaled_isHover_temp = marshaled.f2;
unmarshaled.fs2(unmarshaled_isHover_temp);
int32_t unmarshaled_isActive_temp = 0;
unmarshaled_isActive_temp = marshaled.f3;
unmarshaled.fs3(unmarshaled_isActive_temp);
int32_t unmarshaled_on_temp = 0;
unmarshaled_on_temp = marshaled.f4;
unmarshaled.fs4(unmarshaled_on_temp);
int32_t unmarshaled_hasKeyboardFocus_temp = 0;
unmarshaled_hasKeyboardFocus_temp = marshaled.f5;
unmarshaled.fs5(unmarshaled_hasKeyboardFocus_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.Internal_DrawArguments
extern "C" void t1561977533_marshal_com_cleanup(t1561977533_marshaled_com& marshaled)
{
t1525428817_marshal_com_cleanup(marshaled.f1);
}
// Conversion methods for marshalling of: UnityEngine.Internal_DrawWithTextSelectionArguments
extern "C" void t43446288_marshal_pinvoke(const t43446288& unmarshaled, t43446288_marshaled_pinvoke& marshaled)
{
marshaled.f0 = reinterpret_cast<intptr_t>((unmarshaled.fg0()).fg0());
t1525428817_marshal_pinvoke(unmarshaled.fg1(), marshaled.f1);
marshaled.f2 = unmarshaled.fg2();
marshaled.f3 = unmarshaled.fg3();
t1588175760_marshal_pinvoke(unmarshaled.fg4(), marshaled.f4);
t1588175760_marshal_pinvoke(unmarshaled.fg5(), marshaled.f5);
marshaled.f6 = unmarshaled.fg6();
marshaled.f7 = unmarshaled.fg7();
marshaled.f8 = unmarshaled.fg8();
marshaled.f9 = unmarshaled.fg9();
marshaled.f10 = unmarshaled.fg10();
}
extern "C" void t43446288_marshal_pinvoke_back(const t43446288_marshaled_pinvoke& marshaled, t43446288& unmarshaled)
{
IntPtr_t unmarshaled_target_temp;
memset(&unmarshaled_target_temp, 0, sizeof(unmarshaled_target_temp));
IntPtr_t unmarshaled_target_temp_temp;
unmarshaled_target_temp_temp.set_m_value_0(reinterpret_cast<void*>((intptr_t)marshaled.f0));
unmarshaled_target_temp = unmarshaled_target_temp_temp;
unmarshaled.fs0(unmarshaled_target_temp);
t1525428817 unmarshaled_position_temp;
memset(&unmarshaled_position_temp, 0, sizeof(unmarshaled_position_temp));
t1525428817_marshal_pinvoke_back(marshaled.f1, unmarshaled_position_temp);
unmarshaled.fs1(unmarshaled_position_temp);
int32_t unmarshaled_firstPos_temp = 0;
unmarshaled_firstPos_temp = marshaled.f2;
unmarshaled.fs2(unmarshaled_firstPos_temp);
int32_t unmarshaled_lastPos_temp = 0;
unmarshaled_lastPos_temp = marshaled.f3;
unmarshaled.fs3(unmarshaled_lastPos_temp);
t1588175760 unmarshaled_cursorColor_temp;
memset(&unmarshaled_cursorColor_temp, 0, sizeof(unmarshaled_cursorColor_temp));
t1588175760_marshal_pinvoke_back(marshaled.f4, unmarshaled_cursorColor_temp);
unmarshaled.fs4(unmarshaled_cursorColor_temp);
t1588175760 unmarshaled_selectionColor_temp;
memset(&unmarshaled_selectionColor_temp, 0, sizeof(unmarshaled_selectionColor_temp));
t1588175760_marshal_pinvoke_back(marshaled.f5, unmarshaled_selectionColor_temp);
unmarshaled.fs5(unmarshaled_selectionColor_temp);
int32_t unmarshaled_isHover_temp = 0;
unmarshaled_isHover_temp = marshaled.f6;
unmarshaled.fs6(unmarshaled_isHover_temp);
int32_t unmarshaled_isActive_temp = 0;
unmarshaled_isActive_temp = marshaled.f7;
unmarshaled.fs7(unmarshaled_isActive_temp);
int32_t unmarshaled_on_temp = 0;
unmarshaled_on_temp = marshaled.f8;
unmarshaled.fs8(unmarshaled_on_temp);
int32_t unmarshaled_hasKeyboardFocus_temp = 0;
unmarshaled_hasKeyboardFocus_temp = marshaled.f9;
unmarshaled.fs9(unmarshaled_hasKeyboardFocus_temp);
int32_t unmarshaled_drawSelectionAsComposition_temp = 0;
unmarshaled_drawSelectionAsComposition_temp = marshaled.f10;
unmarshaled.fs10(unmarshaled_drawSelectionAsComposition_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.Internal_DrawWithTextSelectionArguments
extern "C" void t43446288_marshal_pinvoke_cleanup(t43446288_marshaled_pinvoke& marshaled)
{
t1525428817_marshal_pinvoke_cleanup(marshaled.f1);
t1588175760_marshal_pinvoke_cleanup(marshaled.f4);
t1588175760_marshal_pinvoke_cleanup(marshaled.f5);
}
// Conversion methods for marshalling of: UnityEngine.Internal_DrawWithTextSelectionArguments
extern "C" void t43446288_marshal_com(const t43446288& unmarshaled, t43446288_marshaled_com& marshaled)
{
marshaled.f0 = reinterpret_cast<intptr_t>((unmarshaled.fg0()).fg0());
t1525428817_marshal_com(unmarshaled.fg1(), marshaled.f1);
marshaled.f2 = unmarshaled.fg2();
marshaled.f3 = unmarshaled.fg3();
t1588175760_marshal_com(unmarshaled.fg4(), marshaled.f4);
t1588175760_marshal_com(unmarshaled.fg5(), marshaled.f5);
marshaled.f6 = unmarshaled.fg6();
marshaled.f7 = unmarshaled.fg7();
marshaled.f8 = unmarshaled.fg8();
marshaled.f9 = unmarshaled.fg9();
marshaled.f10 = unmarshaled.fg10();
}
extern "C" void t43446288_marshal_com_back(const t43446288_marshaled_com& marshaled, t43446288& unmarshaled)
{
IntPtr_t unmarshaled_target_temp;
memset(&unmarshaled_target_temp, 0, sizeof(unmarshaled_target_temp));
IntPtr_t unmarshaled_target_temp_temp;
unmarshaled_target_temp_temp.set_m_value_0(reinterpret_cast<void*>((intptr_t)marshaled.f0));
unmarshaled_target_temp = unmarshaled_target_temp_temp;
unmarshaled.fs0(unmarshaled_target_temp);
t1525428817 unmarshaled_position_temp;
memset(&unmarshaled_position_temp, 0, sizeof(unmarshaled_position_temp));
t1525428817_marshal_com_back(marshaled.f1, unmarshaled_position_temp);
unmarshaled.fs1(unmarshaled_position_temp);
int32_t unmarshaled_firstPos_temp = 0;
unmarshaled_firstPos_temp = marshaled.f2;
unmarshaled.fs2(unmarshaled_firstPos_temp);
int32_t unmarshaled_lastPos_temp = 0;
unmarshaled_lastPos_temp = marshaled.f3;
unmarshaled.fs3(unmarshaled_lastPos_temp);
t1588175760 unmarshaled_cursorColor_temp;
memset(&unmarshaled_cursorColor_temp, 0, sizeof(unmarshaled_cursorColor_temp));
t1588175760_marshal_com_back(marshaled.f4, unmarshaled_cursorColor_temp);
unmarshaled.fs4(unmarshaled_cursorColor_temp);
t1588175760 unmarshaled_selectionColor_temp;
memset(&unmarshaled_selectionColor_temp, 0, sizeof(unmarshaled_selectionColor_temp));
t1588175760_marshal_com_back(marshaled.f5, unmarshaled_selectionColor_temp);
unmarshaled.fs5(unmarshaled_selectionColor_temp);
int32_t unmarshaled_isHover_temp = 0;
unmarshaled_isHover_temp = marshaled.f6;
unmarshaled.fs6(unmarshaled_isHover_temp);
int32_t unmarshaled_isActive_temp = 0;
unmarshaled_isActive_temp = marshaled.f7;
unmarshaled.fs7(unmarshaled_isActive_temp);
int32_t unmarshaled_on_temp = 0;
unmarshaled_on_temp = marshaled.f8;
unmarshaled.fs8(unmarshaled_on_temp);
int32_t unmarshaled_hasKeyboardFocus_temp = 0;
unmarshaled_hasKeyboardFocus_temp = marshaled.f9;
unmarshaled.fs9(unmarshaled_hasKeyboardFocus_temp);
int32_t unmarshaled_drawSelectionAsComposition_temp = 0;
unmarshaled_drawSelectionAsComposition_temp = marshaled.f10;
unmarshaled.fs10(unmarshaled_drawSelectionAsComposition_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.Internal_DrawWithTextSelectionArguments
extern "C" void t43446288_marshal_com_cleanup(t43446288_marshaled_com& marshaled)
{
t1525428817_marshal_com_cleanup(marshaled.f1);
t1588175760_marshal_com_cleanup(marshaled.f4);
t1588175760_marshal_com_cleanup(marshaled.f5);
}
extern "C" void m2655645489 (t2095052507 * __this, float p0, float p1, const MethodInfo* method)
{
{
float L_0 = p0;
__this->fs0(L_0);
float L_1 = p1;
__this->fs1(L_1);
__this->fs2((0.0f));
__this->fs3((0.0f));
return;
}
}
extern "C" void m3412708539 (t2095052507 * __this, float p0, float p1, float p2, float p3, const MethodInfo* method)
{
{
float L_0 = p0;
__this->fs0(L_0);
float L_1 = p1;
__this->fs1(L_1);
float L_2 = p2;
__this->fs2(L_2);
float L_3 = p3;
__this->fs3(L_3);
return;
}
}
extern "C" float m1367974951 (t2095052507 * __this, const MethodInfo* method)
{
{
float L_0 = __this->fg0();
return L_0;
}
}
extern "C" void m2674731900 (t2095052507 * __this, float p0, const MethodInfo* method)
{
{
float L_0 = p0;
__this->fs0(L_0);
return;
}
}
extern "C" float m1003136441 (t2095052507 * __this, const MethodInfo* method)
{
{
float L_0 = __this->fg1();
return L_0;
}
}
extern "C" void m2735107322 (t2095052507 * __this, float p0, const MethodInfo* method)
{
{
float L_0 = p0;
__this->fs1(L_0);
return;
}
}
extern "C" float m2236973672 (t2095052507 * __this, const MethodInfo* method)
{
{
float L_0 = __this->fg2();
return L_0;
}
}
extern "C" void m1264152747 (t2095052507 * __this, float p0, const MethodInfo* method)
{
{
float L_0 = p0;
__this->fs2(L_0);
return;
}
}
extern "C" float m2520753969 (t2095052507 * __this, const MethodInfo* method)
{
{
float L_0 = __this->fg3();
return L_0;
}
}
extern "C" void m4071134898 (t2095052507 * __this, float p0, const MethodInfo* method)
{
{
float L_0 = p0;
__this->fs3(L_0);
return;
}
}
extern "C" int32_t m1245220572 (t2095052507 * __this, const MethodInfo* method)
{
{
return 0;
}
}
extern "C" void m2444824761 (t2095052507 * __this, int32_t p0, const MethodInfo* method)
{
{
return;
}
}
// Conversion methods for marshalling of: UnityEngine.Keyframe
extern "C" void t2095052507_marshal_pinvoke(const t2095052507& unmarshaled, t2095052507_marshaled_pinvoke& marshaled)
{
marshaled.f0 = unmarshaled.fg0();
marshaled.f1 = unmarshaled.fg1();
marshaled.f2 = unmarshaled.fg2();
marshaled.f3 = unmarshaled.fg3();
}
extern "C" void t2095052507_marshal_pinvoke_back(const t2095052507_marshaled_pinvoke& marshaled, t2095052507& unmarshaled)
{
float unmarshaled_m_Time_temp = 0.0f;
unmarshaled_m_Time_temp = marshaled.f0;
unmarshaled.fs0(unmarshaled_m_Time_temp);
float unmarshaled_m_Value_temp = 0.0f;
unmarshaled_m_Value_temp = marshaled.f1;
unmarshaled.fs1(unmarshaled_m_Value_temp);
float unmarshaled_m_InTangent_temp = 0.0f;
unmarshaled_m_InTangent_temp = marshaled.f2;
unmarshaled.fs2(unmarshaled_m_InTangent_temp);
float unmarshaled_m_OutTangent_temp = 0.0f;
unmarshaled_m_OutTangent_temp = marshaled.f3;
unmarshaled.fs3(unmarshaled_m_OutTangent_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.Keyframe
extern "C" void t2095052507_marshal_pinvoke_cleanup(t2095052507_marshaled_pinvoke& marshaled)
{
}
// Conversion methods for marshalling of: UnityEngine.Keyframe
extern "C" void t2095052507_marshal_com(const t2095052507& unmarshaled, t2095052507_marshaled_com& marshaled)
{
marshaled.f0 = unmarshaled.fg0();
marshaled.f1 = unmarshaled.fg1();
marshaled.f2 = unmarshaled.fg2();
marshaled.f3 = unmarshaled.fg3();
}
extern "C" void t2095052507_marshal_com_back(const t2095052507_marshaled_com& marshaled, t2095052507& unmarshaled)
{
float unmarshaled_m_Time_temp = 0.0f;
unmarshaled_m_Time_temp = marshaled.f0;
unmarshaled.fs0(unmarshaled_m_Time_temp);
float unmarshaled_m_Value_temp = 0.0f;
unmarshaled_m_Value_temp = marshaled.f1;
unmarshaled.fs1(unmarshaled_m_Value_temp);
float unmarshaled_m_InTangent_temp = 0.0f;
unmarshaled_m_InTangent_temp = marshaled.f2;
unmarshaled.fs2(unmarshaled_m_InTangent_temp);
float unmarshaled_m_OutTangent_temp = 0.0f;
unmarshaled_m_OutTangent_temp = marshaled.f3;
unmarshaled.fs3(unmarshaled_m_OutTangent_temp);
}
// Conversion method for clean up from marshalling of: UnityEngine.Keyframe
extern "C" void t2095052507_marshal_com_cleanup(t2095052507_marshaled_com& marshaled)
{
}
extern "C" void m654679389 (t3804382717 * __this, Il2CppObject * p0, const MethodInfo* method)
{
{
m1772956182(__this, NULL);
Il2CppObject * L_0 = p0;
VirtActionInvoker1< Il2CppObject * >::Invoke(7 /* System.Void UnityEngine.Logger::set_logHandler(UnityEngine.ILogHandler) */, __this, L_0);
VirtActionInvoker1< bool >::Invoke(9 /* System.Void UnityEngine.Logger::set_logEnabled(System.Boolean) */, __this, (bool)1);
VirtActionInvoker1< int32_t >::Invoke(11 /* System.Void UnityEngine.Logger::set_filterLogType(UnityEngine.LogType) */, __this, 3);
return;
}
}
extern "C" Il2CppObject * m2576399569 (t3804382717 * __this, const MethodInfo* method)
{
{
Il2CppObject * L_0 = __this->fg0();
return L_0;
}
}
extern "C" void m2661029584 (t3804382717 * __this, Il2CppObject * p0, const MethodInfo* method)
{
{
Il2CppObject * L_0 = p0;
__this->fs0(L_0);
return;
}
}
extern "C" bool m3803347955 (t3804382717 * __this, const MethodInfo* method)
{
{
bool L_0 = __this->fg1();
return L_0;
}
}
extern "C" void m1919624760 (t3804382717 * __this, bool p0, const MethodInfo* method)
{
{
bool L_0 = p0;
__this->fs1(L_0);
return;
}
}
extern "C" int32_t m1512373196 (t3804382717 * __this, const MethodInfo* method)
{
{
int32_t L_0 = __this->fg2();
return L_0;
}
}
extern "C" void m3244716167 (t3804382717 * __this, int32_t p0, const MethodInfo* method)
{
{
int32_t L_0 = p0;
__this->fs2(L_0);
return;
}
}
extern "C" bool m3362907658 (t3804382717 * __this, int32_t p0, const MethodInfo* method)
{
int32_t G_B4_0 = 0;
{
bool L_0 = VirtFuncInvoker0< bool >::Invoke(8 /* System.Boolean UnityEngine.Logger::get_logEnabled() */, __this);
if (!L_0)
{
goto IL_001f;
}
}
{
int32_t L_1 = p0;
int32_t L_2 = VirtFuncInvoker0< int32_t >::Invoke(10 /* UnityEngine.LogType UnityEngine.Logger::get_filterLogType() */, __this);
if ((((int32_t)L_1) <= ((int32_t)L_2)))
{
goto IL_001d;
}
}
{
int32_t L_3 = p0;
G_B4_0 = ((((int32_t)L_3) == ((int32_t)4))? 1 : 0);
goto IL_001e;
}
IL_001d:
{
G_B4_0 = 1;
}
IL_001e:
{
return (bool)G_B4_0;
}
IL_001f:
{
return (bool)0;
}
}
extern Il2CppCodeGenString* _stringLiteral2439591;
extern const uint32_t m3033796341_MetadataUsageId;
extern "C" String_t* m3033796341 (Il2CppObject * __this , Il2CppObject * p0, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3033796341_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
String_t* G_B3_0 = NULL;
{
Il2CppObject * L_0 = p0;
if (!L_0)
{
goto IL_0011;
}
}
{
Il2CppObject * L_1 = p0;
String_t* L_2 = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, L_1);
G_B3_0 = L_2;
goto IL_0016;
}
IL_0011:
{
G_B3_0 = _stringLiteral2439591;
}
IL_0016:
{
return G_B3_0;
}
}
extern TypeInfo* t11523773_TI_var;
extern TypeInfo* t4153610460_TI_var;
extern Il2CppCodeGenString* _stringLiteral119816;
extern const uint32_t m3875808634_MetadataUsageId;
extern "C" void m3875808634 (t3804382717 * __this, int32_t p0, Il2CppObject * p1, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m3875808634_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
int32_t L_0 = p0;
bool L_1 = VirtFuncInvoker1< bool, int32_t >::Invoke(12 /* System.Boolean UnityEngine.Logger::IsLogTypeAllowed(UnityEngine.LogType) */, __this, L_0);
if (!L_1)
{
goto IL_002d;
}
}
{
Il2CppObject * L_2 = VirtFuncInvoker0< Il2CppObject * >::Invoke(6 /* UnityEngine.ILogHandler UnityEngine.Logger::get_logHandler() */, __this);
int32_t L_3 = p0;
t11523773* L_4 = ((t11523773*)SZArrayNew(t11523773_TI_var, (uint32_t)1));
Il2CppObject * L_5 = p1;
String_t* L_6 = m3033796341(NULL, L_5, NULL);
ArrayElementTypeCheck (L_4, L_6);
(L_4)->SetAt(static_cast<il2cpp_array_size_t>(0), (Il2CppObject *)L_6);
InterfaceActionInvoker4< int32_t, t3878351788 *, String_t*, t11523773* >::Invoke(0 /* System.Void UnityEngine.ILogHandler::LogFormat(UnityEngine.LogType,UnityEngine.Object,System.String,System.Object[]) */, t4153610460_TI_var, L_2, L_3, (t3878351788 *)NULL, _stringLiteral119816, L_4);
}
IL_002d:
{
return;
}
}
extern TypeInfo* t4153610460_TI_var;
extern const uint32_t m4050017187_MetadataUsageId;
extern "C" void m4050017187 (t3804382717 * __this, int32_t p0, t3878351788 * p1, String_t* p2, t11523773* p3, const MethodInfo* method)
{
static bool s_Il2CppMethodIntialized;
if (!s_Il2CppMethodIntialized)
{
il2cpp_codegen_initialize_method (m4050017187_MetadataUsageId);
s_Il2CppMethodIntialized = true;
}
{
int32_t L_0 = p0;
bool L_1 = VirtFuncInvoker1< bool, int32_t >::Invoke(12 /* System.Boolean UnityEngine.Logger::IsLogTypeAllowed(UnityEngine.LogType) */, __this, L_0);
if (!L_1)
{
goto IL_001c;
}
}
{
Il2CppObject * L_2 = VirtFuncInvoker0< Il2CppObject * >::Invoke(6 /* UnityEngine.ILogHandler UnityEngine.Logger::get_logHandler() */, __this);
int32_t L_3 = p0;
t3878351788 * L_4 = p1;
String_t* L_5 = p2;
t11523773* L_6 = p3;
InterfaceActionInvoker4< int32_t, t3878351788 *, String_t*, t11523773* >::Invoke(0 /* System.Void UnityEngine.ILogHandler::LogFormat(UnityEngine.LogType,UnityEngine.Object,System.String,System.Object[]) */, t4153610460_TI_var, L_2, L_3, L_4, L_5, L_6);
}
IL_001c:
{
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
| [
"cm10079253@011-a218-37582.lisd.local"
] | cm10079253@011-a218-37582.lisd.local |
1a7a435019312bb361f88cd2db9852dd0ce47e55 | 5286255a93db21ea9defc1f8f6fc71990c3c2fa9 | /framework/src/common/Python.cc | aabd8c64e9ae09496ac6e97f1393690ee8ac7207 | [] | no_license | brynmathias/AnalysisV2 | 1367767dbf22eef6924700c4b0a00581ea8ed965 | ee17c019bb04243876a51c7ef7719cc58a52adea | refs/heads/master | 2021-01-01T19:20:27.277628 | 2012-04-17T13:34:26 | 2012-04-17T13:34:26 | 2,600,415 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 16,203 | cc | /*! \file Python.cc
* \brief Instantiation of boost python interfaces for this library
*/
//#include "LeptonOps.hh"
#include "CommonOps.hh"
#include "CommonPlottingOps.hh"
//#include "FillABCDMethod.hh"
//#include "HadronicOps.hh"
//#include "LeptonPlottingOps.hh"
#include "MCOps.hh"
//#include "MCPlottingOps.hh"
#include "Filters.hh"
#include "EventDisplay.hh"
#include "Manager.hh"
#include "Utils.hh"
// Python wrapper
#include <boost/python.hpp>
#include <boost/python/suite/indexing/vector_indexing_suite.hpp>
using namespace boost::python;
BOOST_PYTHON_MODULE(libFrameworkSUSY) {
// Mappings (thin wrappers)
void (Operation::Manager::*add1)(Operation::_Base &) = &Operation::Manager::Add;
void (Operation::Manager::*add2)(Operation::Tree &) = &Operation::Manager::Add;
class_<Operation::Manager>("Manager")
.def("Add",add1) // Add operation
.def("Add",add2) // Add tree
.def("Run",&Operation::Manager::Run) // Run the analysis
.def("AddUserVar",&Operation::Manager::AddUserVar)
.def("AddJetFilter",&Operation::Manager::AddJetFilter)
.def("AddMuonFilter",&Operation::Manager::AddMuonFilter)
.def("AddElectronFilter",&Operation::Manager::AddElectronFilter)
.def("AddPhotonFilter",&Operation::Manager::AddPhotonFilter) //TW added 23/10/2010
.def("AddTauFilter",&Operation::Manager::AddTauFilter)
.def("AddMETFilter", &Operation::Manager::AddMETFilter)
.def("AddWeightFilter", &Operation::Manager::AddWeightFilter)
.def("GetNtupleFormat",&Operation::Manager::GetNtupleFormat)
.def("GetNtupleVersion",&Operation::Manager::GetNtupleVersion)
.def("FilterNtuple",&Operation::Manager::FilterNtuple)
;
class_<Operation::Tree>("Tree", init<const std::string &>())
.def("Attach",&Operation::Tree::Attach)
.def("TAttach",&Operation::Tree::TAttach)
.def("FAttach",&Operation::Tree::FAttach)
;
// Very important - declare the operation base class as virtual (non-creatable)
// Otherwise this code won't work with python...
class_<Operation::_Base, boost::noncopyable>("OP__Base", no_init)
;
class_<Compute::UserBase, boost::noncopyable>("UserBase", no_init)
;
class_<GenericLeptons, bases<Compute::UserBase>, boost::noncopyable>("GenericLeptons", no_init);
class_<GenericGenObjects, bases<Compute::UserBase>, boost::noncopyable>("GenericGenObjects", no_init);
class_<Compute::ObjectFilter<Event::Lepton>,
boost::noncopyable >("LeptonFilter",no_init)
;
class_<Compute::ObjectFilter<Event::Jet>,
boost::noncopyable >("JetFilter",no_init)
;
//TW added for photon filter 23/10/2010
class_<Compute::ObjectFilter<Event::Photon>, boost::noncopyable >("PhotonFilter",no_init);
class_<Compute::ObjectFilter<ICF_LorentzV>,
boost::noncopyable >("LorentzFilter",no_init)
;
class_<Compute::ObjectFilter<double>, boost::noncopyable >("DoubleFilter",no_init);
class_<Utils::ParameterSet>("ParameterSet")
.def("AddDouble",&Utils::ParameterSet::AddDouble)
.def("AddBool",&Utils::ParameterSet::AddBool)
.def("AddString",&Utils::ParameterSet::AddString)
.def("AddInt",&Utils::ParameterSet::AddInt)
.def("AddStringVector",&Utils::ParameterSet::AddStringVector)
.def("AddDoubleVector",&Utils::ParameterSet::AddDoubleVector)
.def("AddIntVector",&Utils::ParameterSet::AddIntVector)
.def("AddUIntVector",&Utils::ParameterSet::AddUIntVector)
.def("AddLongIntVector", &Utils::ParameterSet::AddLongIntVector)
.def("AddBoolVector",&Utils::ParameterSet::AddBoolVector)
;
class_<std::vector<string> >("ICF_StringVector")
.def(vector_indexing_suite<std::vector<string> >());
class_<std::vector<double> >("ICF_DoubleVector")
.def(vector_indexing_suite<std::vector<double> >());
class_<std::vector<int> >("ICF_IntVector")
.def(vector_indexing_suite<std::vector<int> >());
class_<std::vector<unsigned int> >("ICF_UIntVector")
.def(vector_indexing_suite<std::vector<unsigned int> >());
class_<std::vector<long> >("ICF_LongIntVector")
.def(vector_indexing_suite<std::vector<long> >());
class_<std::vector<bool> >("ICF_BoolVector")
.def(vector_indexing_suite<std::vector<bool> >());
///////////////////////////////////////////////////
// Operation declarations
///////////////////////////////////////////////////
class_<Operation::UnPrescaled, bases<Operation::_Base> >("OP_UnPrescaled",
init<const std::string &>());
#ifdef _ICF_
class_<Operation::TriggerCut, bases<Operation::_Base> >("OP_TriggerCut",
init<const std::string &>());
#endif
#ifdef _NT7_
class_<Operation::TriggerCut, bases<Operation::_Base> >("OP_TriggerCut",
init<int>());
#endif
class_<Operation::TwoTriggerCut, bases<Operation::_Base> >("OP_TwoTriggerCut",
init<const std::string &,const std::string &>());
class_<Operation::TwoTriggerAndCut, bases<Operation::_Base> >("OP_TwoTriggerAndCut",
init<const std::string &,const std::string &>());
class_<Operation::MultiTrigger, bases<Operation::_Base> >("OP_MultiTrigger",
init<const Utils::ParameterSet &>());
class_<Operation::TriggersExist, bases<Operation::_Base> >("OP_TriggersExist",
init<const Utils::ParameterSet &>());
class_<Operation::Mix2Triggers, bases<Operation::_Base> >("Mix2Triggers",init<int,const std::string &,const std::string &>());
class_<Operation::Mix3Triggers, bases<Operation::_Base> >("Mix3Triggers",init<int,int,const std::string &,const std::string &,const std::string &>());
class_<Operation::ThreeTriggerCut, bases<Operation::_Base> >("OP_ThreeTriggerCut",
init<const std::string &,const std::string &,const std::string &>());
class_<Operation::PrintGenParticleInfo,
bases<Operation::_Base> >("MC_PrintGenParticleInfo",init<const char *>());
class_<Operation::CutOnUnCorLeadJetPt,bases<Operation::_Base> >("OP_CutOnUnCorLeadJetPt",init<float>());
class_<Operation::OddElectron, bases<Operation::_Base> >("OP_OddElectron");
class_<Operation::OddPhoton, bases<Operation::_Base> >("OP_OddPhoton");
class_<Operation::OddJet, bases<Operation::_Base> >("OP_OddJet");
class_<Operation::OddMuon, bases<Operation::_Base> >("OP_OddMuon");
class_<Operation::missedTrCut, bases<Operation::_Base> >("OP_missedTrCut",init<float>());
class_<Operation::NumComLeptons,
bases<Operation::_Base> >("OP_NumComLeptons", init<const std::string &,
UInt_t>());
class_<Operation::NumComMuons,
bases<Operation::_Base> >("OP_NumComMuons", init<const std::string &,
UInt_t>());
class_<Operation::NumComElectrons, bases<Operation::_Base> >("OP_NumComElectrons",
init<const std::string &,
UInt_t>());
class_<Operation::NumComTaus, bases<Operation::_Base> >("OP_NumComTaus",
init<const std::string &,
UInt_t>());
class_<Operation::NumComPhotons,
bases<Operation::_Base> >("OP_NumComPhotons",init<const std::string &,
UInt_t>());
class_<Operation::NumComJets,
bases<Operation::_Base> >("OP_NumComJets", init<const std::string &,
UInt_t>());
class_<Operation::NumCommonBtagJets, bases<Operation::_Base> >("OP_NumCommonBtagJets",
init<const std::string &,
UInt_t,UInt_t,float>());
class_<Operation::badMuonInJet, bases<Operation::_Base> >("OP_BadMuonInJet");
class_<Operation::PhotkilledJet, bases<Operation::_Base> >("OP_PhotonKilledJet");
class_<Operation::CommonMHTCut, bases<Operation::_Base> >("OP_CommonMHTCut",
init<float>());
class_<Operation::secondJetEtCut, bases<Operation::_Base> >("OP_SecondJetEtCut",
init<float>());
class_<Operation::PhotonJetDRCut, bases<Operation::_Base> >("OP_PhotonJetDRCut",
init<float>());
//class_<Operation::PhotonPtCut, bases<Operation::_Base> >("OP_PhotonPtCut",
// init<float>());
class_<Operation::firstJetetaCut, bases<Operation::_Base> >("OP_FirstJetEta",
init<float>());
class_<Operation::RecoilMHTCut,bases<Operation::_Base> >("OP_RecoilMHTCut",init<float>());
class_<Operation::HTCut, bases<Operation::_Base> >("RECO_CommonHTCut",
init<float>());
class_<Operation::HTLessThanCut, bases<Operation::_Base> >("RECO_CommonHTLessThanCut",
init<float>());
class_<Operation::firstJetPtCut, bases<Operation::_Base> >("OP_FirstJetPtCut",
init<float>());
class_<Operation::SumETCut, bases<Operation::_Base> >("OP_CommonSumETCut",
init<float>());
class_<Operation::SumETCutMax, bases<Operation::_Base> >("OP_CommonSumETCutMax",
init<float>());
class_<Operation::biasedDPhiCut, bases<Operation::_Base> >("OP_biasedDPhiCut",
init<float>());
class_<Operation::RecoilMET_ov_SumETCut, bases<Operation::_Base> >("OP_RecoilMET_ov_SumETCut",
init<float>());
class_<Operation::AK5CaloMETCut, bases<Operation::_Base> >("OP_AK5CaloMETCut",
init<float>());
class_<Operation::MeffCut,bases<Operation::_Base> >("OP_MeffCut",init<float>());
class_<Operation::CommonAlphaTCut, bases<Operation::_Base> >("OP_CommonAlphaTCut",
init<float>());
class_<Operation::alpha_tCut, bases<Operation::_Base> >("OP_HadAlphaTCut",
init<float>());
class_<Operation::alpha_tCut_Less, bases<Operation::_Base> >("OP_HadAlphaTCutLess",
init<float>());
class_<Operation::missedHTcut, bases<Operation::_Base> >("OP_MissedHTCut",
init<float>());
class_<Operation::JetMETMinDPhiCut, bases<Operation::_Base> >("OP_JetMETMinDPhiCut",
init<float>());
class_<Operation::Jet1JDphiMETCut, bases<Operation::_Base> >("OP_Jet1JDphiMETCut",
init<float>());
class_<Operation::Jet2JDphiMETCut, bases<Operation::_Base> >("OP_Jet2JDphiMETCutCut",
init<float>());
class_<Operation::Jet3JDphiMETCut, bases<Operation::_Base> >("OP_Jet3JDphiMETCutCut",
init<float>());
class_<Operation::caloMETCut,bases<Operation::_Base> >("OP_caloMETCut",init<float>());
class_<Operation::tcMETCut,bases<Operation::_Base> >("OP_tcMETCut",init<float>());
#ifdef _ICF_
class_<Operation::PFMETCut,bases<Operation::_Base> >("OP_PFMETCut",init<float>());
#endif
/*
class_<Operation::dphi_muon_commht, bases<Operation::_Base> >("OP_dphi_muon_commht",
init<float,
float>());
class_<Operation::ratio_muon_commht, bases<Operation::_Base> >("OP_ratio_muon_commht",
init<float>());
class_<Operation::CallABCDMethod, bases<Operation::_Base> >("OP_CallABCDMethod",
init<const std::string &>());
*/
class_<Operation::ObjCountPlots, bases<Operation::_Base> >("OP_ObjCountPlots",
init<const std::string &,
UInt_t>());
class_<Operation::ObjKinPlots, bases<Operation::_Base> >("OP_ObjKinPlots",
init<const std::string &,
UInt_t,
UInt_t>());
class_<Operation::kinSuiteComPlot, bases<Operation::_Base> >("OP_KinSuiteComPlot",
init<const std::string &,
int,
int>());
class_<Operation::CommonPlots, bases<Operation::_Base> >("OP_CommonPlots",
init<const std::string &>());
class_<Operation::ComSearchMatrix, bases<Operation::_Base> >("OP_ComSearchMatrix",
init<const std::string &,
UInt_t,
UInt_t,
UInt_t>());
class_<Operation::ComJetPlots, bases<Operation::_Base> >("OP_ComJetPlots",
init<const std::string &,
UInt_t>());
class_<Operation::ComPhoPlots, bases<Operation::_Base> >("OP_ComPhoPlots",
init<const std::string &,
UInt_t>());
//class_<Operation::StandardPlots, bases<Operation::_Base> >("OP_StandardPlots",
// init<const Utils::ParameterSet &>());
//class_<Operation::MetPlots, bases<Operation::_Base> >("OP_MetPlots",
// init<const Utils::ParameterSet &>());
class_<Operation::SkimOp,
bases<Operation::_Base> >("SkimOp", init<const Utils::ParameterSet &>());
class_<Operation::RA2TrackingFailureFilterCut, bases<Operation::_Base> >("OP_RA2TrackingFailureFilterCut");
class_<Operation::RA2ecaldeadcellfilterflagCut, bases<Operation::_Base> >("OP_RA2ecaldeadcellfilterflagCut");
class_<Operation::NoiseFilter, bases<Operation::_Base> >("OP_HadronicHBHEnoiseFilter");
class_<Operation::beamHaloCSCTightHaloId, bases<Operation::_Base> >("OP_beamHaloCSCTightHaloId");
class_<Operation::MonsterFilter, bases<Operation::_Base> >("OP_MonsterFilter");
class_<Operation::GoodEventSelection, bases<Operation::_Base> >("OP_GoodEventSelection");
class_<Operation::EcalSpikeCleaner, bases<Operation::_Base> >("OP_EcalSpikeCleaner");
class_<Event::JESUncert, bases<Compute::ObjectFilter<Event::Jet> > >("JESUncert", init<const std::string>());
class_<Event::VertexReweighting, bases<Compute::ObjectFilter<double> > >("VertexReweighting", init<const Utils::ParameterSet &>());
class_<Event::GoodVertexReweighting, bases<Compute::ObjectFilter<double> > >("GoodVertexReweighting", init<const Utils::ParameterSet &>());
class_<Event::PreScaleReweighting, bases<Compute::ObjectFilter<double> > >("PreScaleReweighting", init<const Utils::ParameterSet &>());
//scale factor, eta, use parameterisation
class_<Event::JESCorrections, bases<Compute::ObjectFilter<Event::Jet> > >("JESCorrections", init<const Utils::ParameterSet &, bool>() )
.def("Test",&Event::JESCorrections::Test);
// class_<Event::JetSmear, bases<Compute::ObjectFilter<Event::Jet> > >("JetSmear", init<const float>() );
class_<Event::JESCorrectionsTrivial, bases<Compute::ObjectFilter<Event::Jet> > >("JESCorrectionsTrivial", init<float>());
class_<Event::JetSmear, bases<Compute::ObjectFilter<Event::Jet> > >("JetSmear", init<float, float, float, float, float, float, bool>());
// Gaussian width, floor energy, ptlow, ptHigh, etaLow, etaHigh
class_<Operation::EventDisplay, bases<Operation::_Base> >("OP_EventDisplay", init<const std::string &, const std::string &>() );
class_<Operation::BtagResponse, bases<Operation::_Base> >("OP_Btag",init<float,int,int>());
class_<Operation::EventNoDump, bases<Operation::_Base> >("OP_EventNoDump", init<const std::string &,const std::string &>());
class_<Operation::JSONFilter, bases<Operation::_Base> >("JSONFilter", init<const std::string & , const Utils::ParameterSet &>());
class_<Operation::EventSelector, bases<Operation::_Base> >("EventSelector", init<const Utils::ParameterSet &>());
class_<Operation::JSONOutput, bases<Operation::_Base> >("JSONOutput", init<const std::string &>());
/*
class_<Operation::SingleLepPlots, bases<Operation::_Base> >("OP_SingleLepPlots",
init<const std::string &>());
// Expanded to include property references
class_<Operation::NumGdLepCut, bases<Operation::_Base> >("OP_NumGdLepCut")
.add_property("Type",
&Operation::NumGdLepCut::GetType,
&Operation::NumGdLepCut::SetType)
.add_property("Comparison",
&Operation::NumGdLepCut::GetComparison,
&Operation::NumGdLepCut::SetComparison)
.add_property("Number",
&Operation::NumGdLepCut::GetNumber,
&Operation::NumGdLepCut::SetNumber)
;
*/
}
| [
"brynmathias@gmail.com"
] | brynmathias@gmail.com |
2f2f4726e685b0bd55e095902ac52978d55326d6 | c9f2ca0490cb6fa3eb2ce0e5f1e5a15870eea2f5 | /rf/rf/PdfFileRecover.h | 14fe8208203db76d9ccb380cfd371135e7be32f2 | [] | no_license | afrozm/projects | 936dbf1e99e27a8ba5399ad5d6c66f450dd032c7 | 82ba1194d6db3a7662956987586375ec657a3a59 | refs/heads/master | 2021-04-18T20:12:45.481202 | 2021-01-06T09:58:23 | 2021-01-06T09:58:23 | 39,421,550 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 243 | h | #pragma once
#include "FileRecover.h"
class CPdfFileRecover :
public CFileRecoverSE
{
public:
CPdfFileRecover();
~CPdfFileRecover();
virtual bool ParseBuffer(BinaryData &inData) override;
private:
BinaryFind mObjFind;
};
| [
"afroz_muzammil@yahoo.com"
] | afroz_muzammil@yahoo.com |
99d1bd33b088562fdd7d5d84193c4db0c56e0218 | 2561273be311cf6b3d9a05c62a3302774e279d79 | /CIE.h | 46a51f17c777394360db608ff45fdb9087ce7abf | [
"BSD-3-Clause"
] | permissive | bzEq/zLi | b14579d74c0a07543a6430d519dc01932173c6f1 | ea27c61094252afb71e24caa8013b64dc13bca74 | refs/heads/master | 2020-12-02T21:55:49.418563 | 2017-02-15T10:08:13 | 2017-02-15T10:08:13 | 66,639,637 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 672 | h | // Copyright (c) 2016 Kai Luo. All rights reserved.
#ifndef ZLI_CIE_H_
#define ZLI_CIE_H_
#include "color.h"
#include "core_math.h"
#include "diagram2d.h"
namespace zLi {
class CIE {
public:
static const Float mXYZ2RGB[3][3];
static const Float mRGB2XYZ[3][3];
static constexpr const int NrXYZCMFSamples = 89;
static const Float XYZ_CMF_Wavelength[NrXYZCMFSamples];
static const Float XYZ_CMF[3][NrXYZCMFSamples];
static const Float XYZ_CMF_Y_INT;
static RGBColor XYZ2RGB(const XYZColor &);
static xyYColor XYZ2xyY(const XYZColor &);
static XYZColor RGB2XYZ(const RGBColor &);
static RGBColor xyY2RGB(const xyYColor &);
};
} // namespace zLi
#endif
| [
"gluokai@gmail.com"
] | gluokai@gmail.com |
3106d6351346309dfeca8417f9062c106074661e | bdc0b8809d52933c10f8eb77442bd0b4453f28f9 | /install/sensor_msgs/include/sensor_msgs/msg/point_field__struct.hpp | f465c63917488cd80cec900abcc2ec138ce3c9bf | [] | no_license | ClaytonCalabrese/BuiltRos2Eloquent | 967f688bbca746097016dbd34563716bd98379e3 | 76bca564bfd73ef73485e5c7c48274889032e408 | refs/heads/master | 2021-03-27T22:42:12.976367 | 2020-03-17T14:24:07 | 2020-03-17T14:24:07 | 247,810,969 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,983 | hpp | // generated from rosidl_generator_cpp/resource/idl__struct.hpp.em
// with input from sensor_msgs:msg/PointField.idl
// generated code does not contain a copyright notice
#ifndef SENSOR_MSGS__MSG__POINT_FIELD__STRUCT_HPP_
#define SENSOR_MSGS__MSG__POINT_FIELD__STRUCT_HPP_
#include <rosidl_generator_cpp/bounded_vector.hpp>
#include <rosidl_generator_cpp/message_initialization.hpp>
#include <algorithm>
#include <array>
#include <memory>
#include <string>
#include <vector>
#ifndef _WIN32
# define DEPRECATED__sensor_msgs__msg__PointField __attribute__((deprecated))
#else
# define DEPRECATED__sensor_msgs__msg__PointField __declspec(deprecated)
#endif
namespace sensor_msgs
{
namespace msg
{
// message struct
template<class ContainerAllocator>
struct PointField_
{
using Type = PointField_<ContainerAllocator>;
explicit PointField_(rosidl_generator_cpp::MessageInitialization _init = rosidl_generator_cpp::MessageInitialization::ALL)
{
if (rosidl_generator_cpp::MessageInitialization::ALL == _init ||
rosidl_generator_cpp::MessageInitialization::ZERO == _init)
{
this->name = "";
this->offset = 0ul;
this->datatype = 0;
this->count = 0ul;
}
}
explicit PointField_(const ContainerAllocator & _alloc, rosidl_generator_cpp::MessageInitialization _init = rosidl_generator_cpp::MessageInitialization::ALL)
: name(_alloc)
{
if (rosidl_generator_cpp::MessageInitialization::ALL == _init ||
rosidl_generator_cpp::MessageInitialization::ZERO == _init)
{
this->name = "";
this->offset = 0ul;
this->datatype = 0;
this->count = 0ul;
}
}
// field types and members
using _name_type =
std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other>;
_name_type name;
using _offset_type =
uint32_t;
_offset_type offset;
using _datatype_type =
uint8_t;
_datatype_type datatype;
using _count_type =
uint32_t;
_count_type count;
// setters for named parameter idiom
Type & set__name(
const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other> & _arg)
{
this->name = _arg;
return *this;
}
Type & set__offset(
const uint32_t & _arg)
{
this->offset = _arg;
return *this;
}
Type & set__datatype(
const uint8_t & _arg)
{
this->datatype = _arg;
return *this;
}
Type & set__count(
const uint32_t & _arg)
{
this->count = _arg;
return *this;
}
// constant declarations
static constexpr uint8_t INT8 =
1u;
static constexpr uint8_t UINT8 =
2u;
static constexpr uint8_t INT16 =
3u;
static constexpr uint8_t UINT16 =
4u;
static constexpr uint8_t INT32 =
5u;
static constexpr uint8_t UINT32 =
6u;
static constexpr uint8_t FLOAT32 =
7u;
static constexpr uint8_t FLOAT64 =
8u;
// pointer types
using RawPtr =
sensor_msgs::msg::PointField_<ContainerAllocator> *;
using ConstRawPtr =
const sensor_msgs::msg::PointField_<ContainerAllocator> *;
using SharedPtr =
std::shared_ptr<sensor_msgs::msg::PointField_<ContainerAllocator>>;
using ConstSharedPtr =
std::shared_ptr<sensor_msgs::msg::PointField_<ContainerAllocator> const>;
template<typename Deleter = std::default_delete<
sensor_msgs::msg::PointField_<ContainerAllocator>>>
using UniquePtrWithDeleter =
std::unique_ptr<sensor_msgs::msg::PointField_<ContainerAllocator>, Deleter>;
using UniquePtr = UniquePtrWithDeleter<>;
template<typename Deleter = std::default_delete<
sensor_msgs::msg::PointField_<ContainerAllocator>>>
using ConstUniquePtrWithDeleter =
std::unique_ptr<sensor_msgs::msg::PointField_<ContainerAllocator> const, Deleter>;
using ConstUniquePtr = ConstUniquePtrWithDeleter<>;
using WeakPtr =
std::weak_ptr<sensor_msgs::msg::PointField_<ContainerAllocator>>;
using ConstWeakPtr =
std::weak_ptr<sensor_msgs::msg::PointField_<ContainerAllocator> const>;
// pointer types similar to ROS 1, use SharedPtr / ConstSharedPtr instead
// NOTE: Can't use 'using' here because GNU C++ can't parse attributes properly
typedef DEPRECATED__sensor_msgs__msg__PointField
std::shared_ptr<sensor_msgs::msg::PointField_<ContainerAllocator>>
Ptr;
typedef DEPRECATED__sensor_msgs__msg__PointField
std::shared_ptr<sensor_msgs::msg::PointField_<ContainerAllocator> const>
ConstPtr;
// comparison operators
bool operator==(const PointField_ & other) const
{
if (this->name != other.name) {
return false;
}
if (this->offset != other.offset) {
return false;
}
if (this->datatype != other.datatype) {
return false;
}
if (this->count != other.count) {
return false;
}
return true;
}
bool operator!=(const PointField_ & other) const
{
return !this->operator==(other);
}
}; // struct PointField_
// alias to use template instance with default allocator
using PointField =
sensor_msgs::msg::PointField_<std::allocator<void>>;
// constant definitions
template<typename ContainerAllocator>
constexpr uint8_t PointField_<ContainerAllocator>::INT8;
template<typename ContainerAllocator>
constexpr uint8_t PointField_<ContainerAllocator>::UINT8;
template<typename ContainerAllocator>
constexpr uint8_t PointField_<ContainerAllocator>::INT16;
template<typename ContainerAllocator>
constexpr uint8_t PointField_<ContainerAllocator>::UINT16;
template<typename ContainerAllocator>
constexpr uint8_t PointField_<ContainerAllocator>::INT32;
template<typename ContainerAllocator>
constexpr uint8_t PointField_<ContainerAllocator>::UINT32;
template<typename ContainerAllocator>
constexpr uint8_t PointField_<ContainerAllocator>::FLOAT32;
template<typename ContainerAllocator>
constexpr uint8_t PointField_<ContainerAllocator>::FLOAT64;
} // namespace msg
} // namespace sensor_msgs
#endif // SENSOR_MSGS__MSG__POINT_FIELD__STRUCT_HPP_
| [
"calabreseclayton@gmail.com"
] | calabreseclayton@gmail.com |
98f0f6c0f3750c87fe0e7f5e832311858dd08963 | a49536ce28630fd6296f88803615f1b4e5670274 | /Sim01_DeCapitoCarli/metaData.h | 94af3980487dfd1f02bb82f1fbdc38a9456c8956 | [] | no_license | cdecapito/Sim01 | 86dbaec6e2ff5ad050de091484b0c82afb58e4f0 | 20229a01b95481c5c225eb1e9a923b54cd037795 | refs/heads/master | 2021-07-04T23:33:48.638256 | 2017-09-27T23:23:02 | 2017-09-27T23:23:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,052 | h | // Program Information /////////////////////////////////////////////////////////
/**
* @file metaData.h
*
* @brief defines metadata class
*
* @details defines member functions and data members
*
* @version Carli DeCapito
* 1.0 Version 9/11/17
*
* @note None
*/
//Precompiler Directors
#ifndef METADATA_H
#define METADATA_H
//Header Files
#include "configData.h"
#include <vector>
using namespace std;
//Class Definitions
class metaData{
//constants
static const int STR_LEN = 100;
//Error Codes
static const int CODE_ERROR = 0;
static const int DESCRIPTOR_ERROR = 1;
static const int CYCLES_ERROR = 2;
public:
//Constructor
metaData();
//Destructor
~metaData();
//Member Functions
bool createMetaStr( char string[], configData cData );
void returnError( char string[], int errorCode );
bool isDescriptorValid( configData cData );
//Data Members
char metaCode;
char metaDescriptor[ STR_LEN ];
int cycles;
int time;
bool used;
};
#endif
| [
"cdecapito@nevada.unr.edu"
] | cdecapito@nevada.unr.edu |
492d6231991a7ccb7faa65e94380fed9b88f48ec | 34eba89df6b436a28a40440e15c1172564bbef05 | /1102 Invert a Binary Tree.cpp | ccbaf9cdef04d9e54066714fbe6f27938451670b | [] | no_license | ZhiqWu/pat-1 | f7d4c8090724d1674a275fd8718e862e5de26d68 | 729dcaddd805429351f427c41594836e7fbf7386 | refs/heads/master | 2022-10-24T16:18:39.081722 | 2019-09-08T14:46:30 | 2019-09-08T14:46:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,219 | cpp | #include <iostream>
#include <algorithm>
#include <queue>
using namespace std;
#define MAXN 20
int N;
struct Node {
int left,right;
};
Node T[MAXN];
bool flag[MAXN] = {false};
void reverseBT(int root) {
if(root != -1) {
reverseBT(T[root].left);
reverseBT(T[root].right);
swap(T[root].left,T[root].right);
}
}
void levelOrder(int root) {
int cnt = 0,idx;
queue <int> Q;
Q.push(root);
while(!Q.empty()) {
idx = Q.front();
printf("%d%c",idx,++ cnt < N ? ' ' : '\n');
Q.pop();
if(T[idx].left != -1)
Q.push(T[idx].left);
if(T[idx].right != -1)
Q.push(T[idx].right);
}
}
void inOrder(int root) {
if(root != -1) {
inOrder(T[root].left);
printf("%d%c",root,-- N > 0 ? ' ':'\n');
inOrder(T[root].right);
}
}
int main() {
scanf("%d\n",&N);
char s[10];
for(int i = 0; i < N; i ++) {
fgets(s,10,stdin);
if(s[0] != '-') {
flag[s[0] - '0'] = true;
T[i].left = s[0] - '0';
} else
T[i].left = -1;
if(s[2] != '-') {
flag[s[2] - '0'] = true;
T[i].right = s[2] - '0';
} else
T[i].right = -1;
}
int root = min_element(flag,flag + N) - flag;
reverseBT(root);
levelOrder(root);
inOrder(root);
return 0;
}
| [
"noreply@github.com"
] | noreply@github.com |
6877fb1028c14735abe407d1990654c72355784d | afb6cf43e3d0cc68f6848d14765738577a50a7ac | /d3d11Tutorials/Tut06/LightShaderClass.cpp | d44c596d43bb40201d92cada70a5292f1640f9cd | [] | no_license | grimripper/grim_directx_testing | de97386b32741984e68a35891354700910a05e10 | 48bcfcdfcd383d1a5e2a66cb82dd1e13ea1ebf8e | refs/heads/master | 2021-01-15T13:48:16.154280 | 2013-10-26T00:50:50 | 2013-10-26T00:50:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,085 | cpp | ////////////////////////////////////////////////////////////////////////////////
// Filename: lightshaderclass.cpp
////////////////////////////////////////////////////////////////////////////////
#include "lightshaderclass.h"
LightShaderClass::LightShaderClass()
{
m_vertexShader = 0;
m_pixelShader = 0;
m_layout = 0;
m_sampleState = 0;
m_matrixBuffer = 0;
m_lightBuffer = 0;
}
LightShaderClass::LightShaderClass(const LightShaderClass& other)
{
}
LightShaderClass::~LightShaderClass()
{
}
bool LightShaderClass::Initialize(ID3D11Device* device, HWND hwnd)
{
bool result;
// Initialize the vertex and pixel shaders.
result = InitializeShader(device, hwnd, L"light.vs", L"light.ps");
if(!result)
{
return false;
}
return true;
}
void LightShaderClass::Shutdown()
{
// Shutdown the vertex and pixel shaders as well as the related objects.
ShutdownShader();
return;
}
bool LightShaderClass::Render(ID3D11DeviceContext* deviceContext, int indexCount, D3DXMATRIX worldMatrix, D3DXMATRIX viewMatrix,
D3DXMATRIX projectionMatrix, ID3D11ShaderResourceView* texture, D3DXVECTOR3 lightDirection, D3DXVECTOR4 diffuseColor)
{
bool result;
// Set the shader parameters that it will use for rendering.
result = SetShaderParameters(deviceContext, worldMatrix, viewMatrix, projectionMatrix, texture, lightDirection, diffuseColor);
if(!result)
{
return false;
}
// Now render the prepared buffers with the shader.
RenderShader(deviceContext, indexCount);
return true;
}
bool LightShaderClass::InitializeShader(ID3D11Device* device, HWND hwnd, WCHAR* vsFilename, WCHAR* psFilename)
{
HRESULT result;
ID3D10Blob* errorMessage;
ID3D10Blob* vertexShaderBuffer;
ID3D10Blob* pixelShaderBuffer;
D3D11_INPUT_ELEMENT_DESC polygonLayout[3];
unsigned int numElements;
D3D11_SAMPLER_DESC samplerDesc;
D3D11_BUFFER_DESC matrixBufferDesc;
D3D11_BUFFER_DESC lightBufferDesc;
// Initialize the pointers this function will use to null.
errorMessage = 0;
vertexShaderBuffer = 0;
pixelShaderBuffer = 0;
// Compile the vertex shader code.
result = D3DX11CompileFromFile(vsFilename, NULL, NULL, "LightVertexShader", "vs_5_0", D3D10_SHADER_ENABLE_STRICTNESS, 0, NULL,
&vertexShaderBuffer, &errorMessage, NULL);
if(FAILED(result))
{
// If the shader failed to compile it should have writen something to the error message.
if(errorMessage)
{
OutputShaderErrorMessage(errorMessage, hwnd, vsFilename);
}
// If there was nothing in the error message then it simply could not find the shader file itself.
else
{
MessageBox(hwnd, vsFilename, L"Missing Shader File", MB_OK);
}
return false;
}
// Compile the pixel shader code.
result = D3DX11CompileFromFile(psFilename, NULL, NULL, "LightPixelShader", "ps_5_0", D3D10_SHADER_ENABLE_STRICTNESS, 0, NULL,
&pixelShaderBuffer, &errorMessage, NULL);
if(FAILED(result))
{
// If the shader failed to compile it should have writen something to the error message.
if(errorMessage)
{
OutputShaderErrorMessage(errorMessage, hwnd, psFilename);
}
// If there was nothing in the error message then it simply could not find the file itself.
else
{
MessageBox(hwnd, psFilename, L"Missing Shader File", MB_OK);
}
return false;
}
// Create the vertex shader from the buffer.
result = device->CreateVertexShader(vertexShaderBuffer->GetBufferPointer(), vertexShaderBuffer->GetBufferSize(), NULL, &m_vertexShader);
if(FAILED(result))
{
return false;
}
// Create the pixel shader from the buffer.
result = device->CreatePixelShader(pixelShaderBuffer->GetBufferPointer(), pixelShaderBuffer->GetBufferSize(), NULL, &m_pixelShader);
if(FAILED(result))
{
return false;
}
// Create the vertex input layout description.
// This setup needs to match the VertexType stucture in the ModelClass and in the shader.
polygonLayout[0].SemanticName = "POSITION";
polygonLayout[0].SemanticIndex = 0;
polygonLayout[0].Format = DXGI_FORMAT_R32G32B32_FLOAT;
polygonLayout[0].InputSlot = 0;
polygonLayout[0].AlignedByteOffset = 0;
polygonLayout[0].InputSlotClass = D3D11_INPUT_PER_VERTEX_DATA;
polygonLayout[0].InstanceDataStepRate = 0;
polygonLayout[1].SemanticName = "TEXCOORD";
polygonLayout[1].SemanticIndex = 0;
polygonLayout[1].Format = DXGI_FORMAT_R32G32_FLOAT;
polygonLayout[1].InputSlot = 0;
polygonLayout[1].AlignedByteOffset = D3D11_APPEND_ALIGNED_ELEMENT;
polygonLayout[1].InputSlotClass = D3D11_INPUT_PER_VERTEX_DATA;
polygonLayout[1].InstanceDataStepRate = 0;
polygonLayout[2].SemanticName = "NORMAL";
polygonLayout[2].SemanticIndex = 0;
polygonLayout[2].Format = DXGI_FORMAT_R32G32B32_FLOAT;
polygonLayout[2].InputSlot = 0;
polygonLayout[2].AlignedByteOffset = D3D11_APPEND_ALIGNED_ELEMENT;
polygonLayout[2].InputSlotClass = D3D11_INPUT_PER_VERTEX_DATA;
polygonLayout[2].InstanceDataStepRate = 0;
// Get a count of the elements in the layout.
numElements = sizeof(polygonLayout) / sizeof(polygonLayout[0]);
// Create the vertex input layout.
result = device->CreateInputLayout(polygonLayout, numElements, vertexShaderBuffer->GetBufferPointer(), vertexShaderBuffer->GetBufferSize(),
&m_layout);
if(FAILED(result))
{
return false;
}
// Release the vertex shader buffer and pixel shader buffer since they are no longer needed.
vertexShaderBuffer->Release();
vertexShaderBuffer = 0;
pixelShaderBuffer->Release();
pixelShaderBuffer = 0;
// Create a texture sampler state description.
samplerDesc.Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;
samplerDesc.AddressU = D3D11_TEXTURE_ADDRESS_WRAP;
samplerDesc.AddressV = D3D11_TEXTURE_ADDRESS_WRAP;
samplerDesc.AddressW = D3D11_TEXTURE_ADDRESS_WRAP;
samplerDesc.MipLODBias = 0.0f;
samplerDesc.MaxAnisotropy = 1;
samplerDesc.ComparisonFunc = D3D11_COMPARISON_ALWAYS;
samplerDesc.BorderColor[0] = 0;
samplerDesc.BorderColor[1] = 0;
samplerDesc.BorderColor[2] = 0;
samplerDesc.BorderColor[3] = 0;
samplerDesc.MinLOD = 0;
samplerDesc.MaxLOD = D3D11_FLOAT32_MAX;
// Create the texture sampler state.
result = device->CreateSamplerState(&samplerDesc, &m_sampleState);
if(FAILED(result))
{
return false;
}
// Setup the description of the dynamic matrix constant buffer that is in the vertex shader.
matrixBufferDesc.Usage = D3D11_USAGE_DYNAMIC;
matrixBufferDesc.ByteWidth = sizeof(MatrixBufferType);
matrixBufferDesc.BindFlags = D3D11_BIND_CONSTANT_BUFFER;
matrixBufferDesc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE;
matrixBufferDesc.MiscFlags = 0;
matrixBufferDesc.StructureByteStride = 0;
// Create the constant buffer pointer so we can access the vertex shader constant buffer from within this class.
result = device->CreateBuffer(&matrixBufferDesc, NULL, &m_matrixBuffer);
if(FAILED(result))
{
return false;
}
// Setup the description of the light dynamic constant buffer that is in the pixel shader.
// Note that ByteWidth always needs to be a multiple of 16 if using D3D11_BIND_CONSTANT_BUFFER or CreateBuffer will fail.
lightBufferDesc.Usage = D3D11_USAGE_DYNAMIC;
lightBufferDesc.ByteWidth = sizeof(LightBufferType);
lightBufferDesc.BindFlags = D3D11_BIND_CONSTANT_BUFFER;
lightBufferDesc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE;
lightBufferDesc.MiscFlags = 0;
lightBufferDesc.StructureByteStride = 0;
// Create the constant buffer pointer so we can access the vertex shader constant buffer from within this class.
result = device->CreateBuffer(&lightBufferDesc, NULL, &m_lightBuffer);
if(FAILED(result))
{
return false;
}
return true;
}
void LightShaderClass::ShutdownShader()
{
// Release the light constant buffer.
if(m_lightBuffer)
{
m_lightBuffer->Release();
m_lightBuffer = 0;
}
// Release the matrix constant buffer.
if(m_matrixBuffer)
{
m_matrixBuffer->Release();
m_matrixBuffer = 0;
}
// Release the sampler state.
if(m_sampleState)
{
m_sampleState->Release();
m_sampleState = 0;
}
// Release the layout.
if(m_layout)
{
m_layout->Release();
m_layout = 0;
}
// Release the pixel shader.
if(m_pixelShader)
{
m_pixelShader->Release();
m_pixelShader = 0;
}
// Release the vertex shader.
if(m_vertexShader)
{
m_vertexShader->Release();
m_vertexShader = 0;
}
return;
}
void LightShaderClass::OutputShaderErrorMessage(ID3D10Blob* errorMessage, HWND hwnd, WCHAR* shaderFilename)
{
char* compileErrors;
unsigned long bufferSize, i;
ofstream fout;
// Get a pointer to the error message text buffer.
compileErrors = (char*)(errorMessage->GetBufferPointer());
// Get the length of the message.
bufferSize = errorMessage->GetBufferSize();
// Open a file to write the error message to.
fout.open("shader-error.txt");
// Write out the error message.
for(i=0; i<bufferSize; i++)
{
fout << compileErrors[i];
}
// Close the file.
fout.close();
// Release the error message.
errorMessage->Release();
errorMessage = 0;
// Pop a message up on the screen to notify the user to check the text file for compile errors.
MessageBox(hwnd, L"Error compiling shader. Check shader-error.txt for message.", shaderFilename, MB_OK);
return;
}
bool LightShaderClass::SetShaderParameters(ID3D11DeviceContext* deviceContext, D3DXMATRIX worldMatrix, D3DXMATRIX viewMatrix,
D3DXMATRIX projectionMatrix, ID3D11ShaderResourceView* texture, D3DXVECTOR3 lightDirection,
D3DXVECTOR4 diffuseColor)
{
HRESULT result;
D3D11_MAPPED_SUBRESOURCE mappedResource;
unsigned int bufferNumber;
MatrixBufferType* dataPtr;
LightBufferType* dataPtr2;
// Transpose the matrices to prepare them for the shader.
D3DXMatrixTranspose(&worldMatrix, &worldMatrix);
D3DXMatrixTranspose(&viewMatrix, &viewMatrix);
D3DXMatrixTranspose(&projectionMatrix, &projectionMatrix);
// Lock the constant buffer so it can be written to.
result = deviceContext->Map(m_matrixBuffer, 0, D3D11_MAP_WRITE_DISCARD, 0, &mappedResource);
if(FAILED(result))
{
return false;
}
// Get a pointer to the data in the constant buffer.
dataPtr = (MatrixBufferType*)mappedResource.pData;
// Copy the matrices into the constant buffer.
dataPtr->world = worldMatrix;
dataPtr->view = viewMatrix;
dataPtr->projection = projectionMatrix;
// Unlock the constant buffer.
deviceContext->Unmap(m_matrixBuffer, 0);
// Set the position of the constant buffer in the vertex shader.
bufferNumber = 0;
// Now set the constant buffer in the vertex shader with the updated values.
deviceContext->VSSetConstantBuffers(bufferNumber, 1, &m_matrixBuffer);
// Set shader texture resource in the pixel shader.
deviceContext->PSSetShaderResources(0, 1, &texture);
// Lock the light constant buffer so it can be written to.
result = deviceContext->Map(m_lightBuffer, 0, D3D11_MAP_WRITE_DISCARD, 0, &mappedResource);
if(FAILED(result))
{
return false;
}
// Get a pointer to the data in the constant buffer.
dataPtr2 = (LightBufferType*)mappedResource.pData;
// Copy the lighting variables into the constant buffer.
dataPtr2->diffuseColor = diffuseColor;
dataPtr2->lightDirection = lightDirection;
dataPtr2->padding = 0.0f;
// Unlock the constant buffer.
deviceContext->Unmap(m_lightBuffer, 0);
// Set the position of the light constant buffer in the pixel shader.
bufferNumber = 0;
// Finally set the light constant buffer in the pixel shader with the updated values.
deviceContext->PSSetConstantBuffers(bufferNumber, 1, &m_lightBuffer);
return true;
}
void LightShaderClass::RenderShader(ID3D11DeviceContext* deviceContext, int indexCount)
{
// Set the vertex input layout.
deviceContext->IASetInputLayout(m_layout);
// Set the vertex and pixel shaders that will be used to render this triangle.
deviceContext->VSSetShader(m_vertexShader, NULL, 0);
deviceContext->PSSetShader(m_pixelShader, NULL, 0);
// Set the sampler state in the pixel shader.
deviceContext->PSSetSamplers(0, 1, &m_sampleState);
// Render the triangle.
deviceContext->DrawIndexed(indexCount, 0, 0);
return;
} | [
"ripper.grim@gmail.com"
] | ripper.grim@gmail.com |
26b4f393306dfcf408b1f243ffabccfc41d1f577 | 1ae7e3c269e0bd2df0bc725a33f307971816d40d | /app/src/main/cpp/boost/mpl/int_fwd.hpp | fc038815226a11dd96fdbd1bc3ffc76432171239 | [] | no_license | HOTFIGHTER/XmLogger | 347902372bf2afc88cf26d2342434c1ea556201f | 433a0420c99a883bd65e99fd5f04ac353ac6d7b6 | refs/heads/master | 2021-02-18T08:46:12.122640 | 2020-03-05T14:16:39 | 2020-03-05T14:16:39 | 245,178,943 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 676 | hpp |
#ifndef BOOST_MPL_INT_FWD_HPP_INCLUDED
#define BOOST_MPL_INT_FWD_HPP_INCLUDED
// Copyright Aleksey Gurtovoy 2000-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/libs/mpl for documentation.
// $Id$
// $Date$
// $Revision$
#include <boost/mpl/aux_/adl_barrier.hpp>
#include <boost/mpl/aux_/nttp_decl.hpp>
BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_OPEN
template<BOOST_MPL_AUX_NTTP_DECL(int, N)>
struct int_;
BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_CLOSE
BOOST_MPL_AUX_ADL_BARRIER_DECL(int_)
#endif // BOOST_MPL_INT_FWD_HPP_INCLUDED
| [
"linfeng.yu@ximalaya.com"
] | linfeng.yu@ximalaya.com |
0c7923aada2747d94e09eccca3c49675072bbb10 | 72fbf5af8a413545290ddec666f52d27f6efb3bc | /level1/p10_pushBoxes/simplified_source.cpp | 090033f1c963f115e91796556975cb4bf280b1ab | [
"MIT"
] | permissive | xenoppy/c2021 | 2feb6d2b6aa327325ad46af0c05599cebb9566c7 | a465ec47b3771c5bf14dddb26cba34b091645200 | refs/heads/master | 2023-04-09T09:58:04.064826 | 2021-04-13T02:16:21 | 2021-04-13T02:16:21 | 343,771,972 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,444 | cpp |
//README:
// 可选择随机生成地图(深搜生成的迷宫,随机放置的箱子,故基本无解┭┮﹏┭┮)或者从本地读取一个地图文件.txt,已上传一个经典地图
// 地图文件规则:第一行为地图大小(正方形边长),随后每一行按照顺序保存元素
// 倘若遇到了喜欢的随机生成地图,可选择将其保存
//-----------------------------------------------------------------
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <Windows.h>
#include <time.h>
#include <conio.h>
#include <string>
#include <Tchar.h>
#define WALL 0
#define ROUTE 1
#define LOSTER 2
#define BOX 3
#define GOAL 4
using namespace std;
FILE *getfile(string s);
void win(int **Maze);
int **initializeMaze();
int **getMaze(FILE *fp);
string getMazemode();
FILE *getfile(string s);
void playMaze(int **Maze);
int goalx[100], goaly[100];
void saveMaze(int **Maze, FILE *fp);
int Rank, L, n, steps = 0, startx, starty;
class items
{
public:
int x, y; //坐标
};
class people : public items
{
};
int judge(items &item, int **Maze, int tempx, int tempy);
void print(int **Maze);
void CreateMaze(int **Maze, int x, int y);
void move(int input, items &item, int **Maze);
int main()
{
string mode;
SetConsoleTitle(_T("Push_boxes"));
while (1)
{
mode = getMazemode();
if (mode == "1")
{
playMaze(initializeMaze());
}
else if (mode == "2")
{
FILE *fp = getfile("r");
playMaze(getMaze(fp));
fclose(fp);
}
else if (mode == "3")
break;
else
{
cout << "pardon?" << endl;
}
}
return 0;
}
void print(int **Maze)
{
for (int i = 0; i < L; i++)
{
for (int j = 0; j < L; j++)
{
if (Maze[i][j] == ROUTE)
{
printf(" ");
}
else if (Maze[i][j] == WALL)
{
printf("■");
}
else if (Maze[i][j] == LOSTER)
{
printf("●");
}
else if (Maze[i][j] == BOX)
{
printf("□");
}
else
{
printf("×");
}
}
cout << endl;
}
cout << endl
<< endl
<< "Steps:" << steps;
}
void CreateMaze(int **Maze, int x, int y)
{
Maze[x][y] = ROUTE;
//确保四个方向随机
int direction[4][2] = {{1, 0}, {-1, 0}, {0, 1}, {0, -1}};
for (int i = 0; i < 4; i++)
{
int r = rand() % 4;
int temp = direction[0][0];
direction[0][0] = direction[r][0];
direction[r][0] = temp;
temp = direction[0][1];
direction[0][1] = direction[r][1];
direction[r][1] = temp;
}
//向四个方向开挖
for (int i = 0; i < 4; i++)
{
int dx = x;
int dy = y;
//控制挖的距离,由Rank来调整大小
int range = 1 + (Rank == 0 ? 0 : rand() % Rank);
while (range > 0)
{
dx += direction[i][0];
dy += direction[i][1];
//排除掉回头路
if (Maze[dx][dy] == ROUTE)
{
break;
}
//判断是否挖穿路径
int count = 0;
for (int j = dx - 1; j < dx + 2; j++)
{
for (int k = dy - 1; k < dy + 2; k++)
{
//abs(j - dx) + abs(k - dy) == 1 确保只判断九宫格的四个特定位置
if (abs(j - dx) + abs(k - dy) == 1 && Maze[j][k] == ROUTE)
{
count++;
}
}
}
if (count > 1)
{
break;
}
//确保不会挖穿时,前进
--range;
Maze[dx][dy] = ROUTE;
}
//没有挖穿危险,以此为节点递归
if (range <= 0)
{
CreateMaze(Maze, dx, dy);
}
}
}
int judge(items &item, int **Maze, int tempx, int tempy)
{ //撞墙
if (Maze[item.y][item.x] == WALL)
{
return 0;
}
else if (Maze[item.y][item.x] == BOX)
{
if (Maze[2 * item.y - tempy][2 * item.x - tempx] == WALL || Maze[2 * item.y - tempy][2 * item.x - tempx] == BOX)
{ //推箱子撞墙
return 0;
}
else
{
//成功推箱子
steps = steps + 1;
return 2;
}
}
steps = steps + 1;
//普通行走
return 1;
}
void move(int input, items &item, int **Maze)
{
int tempx = item.x;
int tempy = item.y;
switch (input)
{
case 72:
item.y--;
break;
case 75:
item.x--;
break;
case 77:
item.x++;
break;
case 80:
item.y++;
break;
default:
break;
}
switch (judge(item, Maze, tempx, tempy))
{
case 0: //无法行走
item.y = tempy;
item.x = tempx;
break;
case 1: //普通行走
Maze[tempy][tempx] = ROUTE;
for (int i = 0; i < n; i++)
{
if (Maze[goalx[i]][goaly[i]] != BOX)
Maze[goalx[i]][goaly[i]] = GOAL;
}
Maze[item.y][item.x] = LOSTER;
break;
case 2: //推箱子
Maze[tempy][tempx] = ROUTE;
for (int i = 0; i < n; i++)
{
if (Maze[goalx[i]][goaly[i]] != BOX)
Maze[goalx[i]][goaly[i]] = GOAL;
}
Maze[2 * item.y - tempy][2 * item.x - tempx] = BOX;
Maze[item.y][item.x] = LOSTER;
break;
default:
break;
}
/*
{
Maze[tempy][tempx] = ROUTE;
for (int i = 0; i < n; i++)
{
Maze[goalx[i]][goaly[i]] = GOAL;
}
Maze[item.y][item.x] = LOSTER;
}
else
{
Maze[item.y][item.x] = LOSTER;
}*/
}
string getMazemode()
{
cout << "do you want to randomly generate a Box_Maze or load a Box_Maze from computer?" << endl;
cout << "1.randomly generation" << endl;
cout << "2.load a Box_Maze" << endl;
cout << "3.exit" << endl;
string mode;
cin >> mode;
return mode;
}
FILE *getfile(string s)
{
cout << "please put in the save path" << endl;
string path;
cin >> path;
return fopen(path.c_str(), s.c_str());
}
int **initializeMaze()
{
cout << "choose level of the Maze (level 0 is the most difficult)" << endl;
cin >> Rank;
cout << "please put in the size of the square Maze" << endl;
cin >> L;
cout << "please put in the numbers of the boxes" << endl;
cin >> n;
L = L + 2;
//分配内存
srand((unsigned)time(NULL));
int **Maze = (int **)malloc(L * sizeof(int *));
for (int i = 0; i < L; i++)
{
Maze[i] = (int *)calloc(L, sizeof(int));
}
//初始化边缘
for (int i = 0; i < L; i++)
{
Maze[i][0] = ROUTE;
Maze[0][i] = ROUTE;
Maze[i][L - 1] = ROUTE;
Maze[L - 1][i] = ROUTE;
}
Maze[2][1] = ROUTE;
//创建迷宫
CreateMaze(Maze, 2, 1);
Maze[2][1] = LOSTER;
//打个洞当出口
//增加箱子和箱子目标点(不理想)
system("cls");
for (int i = 0; i < n; i++)
{
cout << "LOADING" << endl
<< "少女祈祷中" << endl;
while (1)
{
srand((unsigned)time(NULL));
int xx = rand() % (L - 2) + 1;
srand((unsigned)time(NULL));
int yy = rand() % (L - 2) + 1;
if (Maze[xx][yy] == ROUTE)
{
Maze[xx][yy] = BOX;
break;
}
}
while (1)
{
srand((unsigned)time(NULL));
int xx = rand() % (L - 2) + 1;
srand((unsigned)time(NULL));
int yy = rand() % (L - 2) + 1;
if (Maze[xx][yy] == ROUTE)
{
Maze[xx][yy] = GOAL;
goalx[i] = xx;
goaly[i] = yy;
break;
}
}
}
startx = 1;
starty = 2;
return Maze;
}
void playMaze(int **Maze)
{
srand((unsigned)time(NULL));
int **Maze_c = (int **)malloc(L * sizeof(int *));
for (int i = 0; i < L; i++)
{
Maze_c[i] = (int *)calloc(L, sizeof(int));
}
for (int i = 0; i < L; i++)
for (int j = 0; j < L; j++)
{
Maze_c[i][j] = Maze[i][j];
}
people loster;
loster.x = startx;
loster.y = starty;
system("cls");
print(Maze);
//键盘控制
while (1)
{
Sleep(20);
if (_kbhit())
{
Sleep(200);
system("cls");
int input = 0;
if (input = getch())
{
move(getch(), loster, Maze);
}
print(Maze);
bool ex = true;
for (int i = 0; i < n; i++)
{
if (Maze[goalx[i]][goaly[i]] != BOX)
{
ex = false;
}
}
if (ex)
{
win(Maze_c);
break;
}
}
}
system("pause");
}
int **getMaze(FILE *fp)
{
n = 0;
fscanf(fp, "%d", &L);
srand((unsigned)time(NULL));
int **Maze = (int **)malloc(L * sizeof(int *));
for (int i = 0; i < L; i++)
{
Maze[i] = (int *)calloc(L, sizeof(int));
}
for (int i = 0; i < L; i++)
for (int j = 0; j < L; j++)
{
fscanf(fp, "%d", &Maze[i][j]);
if (Maze[i][j] == GOAL)
{
goalx[n] = i;
goaly[n] = j;
n++;
}
if (Maze[i][j] == LOSTER)
{
startx = j;
starty = i;
}
}
return Maze;
}
void win(int **Maze)
{
system("cls");
cout << "Congraduation!" << endl
<< "YOU WIN!" << endl
<< "Your step is " << steps << endl
<< "if you like this Maze,you can choose to save it on your computer(put in S) or exit(put in any others)";
string input;
cin >> input;
if (input == "S")
{
FILE *fp = getfile("w");
saveMaze(Maze, fp);
fclose(fp);
}
}
void saveMaze(int **Maze, FILE *fp)
{
steps = 0;
fprintf_s(fp, "%d\n", L);
for (int i = 0; i < L; i++)
for (int j = 0; j < L; j++)
if (j == startx && i == starty)
{
fprintf_s(fp, "%d\n", LOSTER);
}
else
{
if (Maze[i][j] != LOSTER)
{
fprintf_s(fp, "%d\n", Maze[i][j]);
}
else
{
fprintf_s(fp, "%d\n", ROUTE);
}
}
} | [
"1340319151@qq.com"
] | 1340319151@qq.com |
c4367f53d9226a73c66de496c57b83ff3da7357e | bdc6119c5910093d2417830e15f2389a7e5e74b7 | /sols/lib/disjointset.h | 7375e22b2a3a62ceee1649d2198f3f9a9b2e08e1 | [] | no_license | danscu/onlinejudge | 0d10d4902cb152dd6401d3624ebb7bc6c44bba38 | a981794d868dd8366d8f50931f10704066fbab96 | refs/heads/master | 2021-01-15T15:33:47.893332 | 2016-08-31T00:50:50 | 2016-08-31T00:50:58 | 17,789,216 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 909 | h | template<int maxn>
struct DisjointSet {
int count;
int parent[maxn+1];
int rank[maxn+1];
int size[maxn+1];
void init(int n) {
FOR(i, 0, n) { /* check range */
parent[i] = i;
rank[i] = 0;
size[i] = 1;
}
count = n;
}
int findSet(int x) {
if (parent[x] == x)
return x;
else
return parent[x] = findSet(parent[x]);
}
void unite(int x, int y) {
x = findSet(x);
y = findSet(y);
if (x==y)
return;
if (rank[x] < rank[y]) {
parent[x] = y;
size[y] += size[x];
} else {
parent[y] = x;
size[x] += size[y];
if (rank[x] == rank[y])
++rank[x];
}
count--;
}
bool same(int x, int y) {
return findSet(x) == findSet(y);
}
};
| [
"d.xie@sta.samsung.com"
] | d.xie@sta.samsung.com |
b524144fea6e13816f9a91f4d319163a27848872 | 9c8a66087849c3eec776bfc8a6237c0ed992b7f2 | /NF_examples/basic_NFs_dpdk/DNSAmplificationMitigation/basic_classes.cpp | 81b05e19b6da7d0bddeba567cc378d2368709e9d | [] | no_license | dimanzt/nfd | 42caa3d3157678e41c585e14daf227592ed5a3d8 | 34516d66fbf6419ddf056eac4fcbf0a9f1c654c6 | refs/heads/master | 2022-08-20T20:23:18.557521 | 2020-05-09T16:22:32 | 2020-05-09T16:22:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,766 | cpp | #include "basic_classes.h"
#include <algorithm>
#include <tuple>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <iostream>
#include <arpa/inet.h>
#include "decode.h"
#define MAX_MASK -1
using namespace std;
// constructor 1
IP::IP(const string& raw_ip) {
std::vector<string> vec = split(raw_ip, '/');
std::vector<string>::iterator it = vec.begin();
string raw_ip1 = *it;
const u_int raw_mask1 = (const u_int)std::stoi(*(++it));
std::vector<std::string> vec1 = split(raw_ip1, '.');
std::vector<std::string>::iterator it1 = vec1.begin();
this->ip = 0;
this->mask = 0;
for (; it1 != vec1.end(); it1++) {
uint8_t t = (uint8_t)std::stoi(*it1);
this->ip = (this->ip << 8) + t;
}
if (raw_mask1==0) this->mask = 0;
else this->mask = ( MAX_MASK << (32 - raw_mask1));
return;
}
// constructor 2
IP::IP(const string& raw_ip, int raw_mask) {
std::vector<std::string> vec = split(raw_ip, '.');
std::vector<std::string>::iterator it = vec.begin();
this->ip = 0;
this->mask = 0;
for (; it != vec.end(); it++) {
uint8_t t = (uint8_t)std::stoi(*it);
this->ip = (this->ip << 8) + t;
}
// MAX_MASK included in stdint.h
if (raw_mask==0) this->mask = 0;
else this->mask = ( MAX_MASK << (32 - raw_mask));
return;
}
// constructor 3, mask should be 0~32
IP::IP(int ip, int raw_mask) {
this->ip = ip;
if (raw_mask==0) this->mask = 0;
else this->mask = ( MAX_MASK << (32 - raw_mask));
return;
}
char* IP::showAddr(){
struct in_addr ip_addr;
ip_addr.s_addr = htonl(this->ip);
return inet_ntoa(ip_addr);
}
bool IP::operator<=(const IP& other) {
//printf ("%d %d %d %d\n", this->ip, this->mask, other.ip, other.mask);
if ((other.mask <= this->mask) && ((other.mask & other.ip) == (other.mask & this->ip))) {
return true;
}
else {
return false;
}
}
/*for type IP, two IPs are equivalent only if they share them same ip, as well as mask*/
bool IP::operator==(const IP& other)const{
return ((*this).ip == other.ip) && ((*this).mask == other.mask);
}
// reverse result of <=
bool IP::operator!=(const IP& other) {
if ((other.mask <= this->mask) && ((other.mask & other.ip) == (other.mask & this->ip))) {
return false;
}
else {
return true;
}
}
Flow::Flow(int* tag){
this->headers[Tag] = tag;
this->headers[Sip] = new IP(0, 0);
this->headers[Dip] = new IP(0, 0);
this->headers[Iplen] = new int(0);
}
//return IP/ int
void* & Flow::operator[] (const string &field) {
unordered_map<string, void *>::iterator it = field_value.find(field);
if (it == field_value.end()) {
ERROR_HANDLE("field "+field+" not in flow, now create a new entry, its tag is "+ to_string(*((int*)this->field_value["tag"])));
//void * q = new string("error");
Flow::field_value[field] = q;
return q;
}
return it->second;
}
int Flow::matches(const string &field, const void * p) {
if ((*this)[field] != NULL) {
}
return 1;
}
Flow::Flow(u_char * packet, int totallength) {
this->headers[Tag] = new int(0);
this->pkt = packet;
int ethernet_header_length = 14;
EtherHdr* e_hdr = (EtherHdr*) packet;
if ( ntohs(e_hdr->ether_type) == 0x8100)
ethernet_header_length = 14+4;
else
ethernet_header_length = 14;
IPHdr * ip_hdr = (IPHdr*) (packet+ethernet_header_length);
int src_addr = ntohl(ip_hdr->ip_src.s_addr);
this->headers[Sip] = new IP(src_addr, 32);
int des_addr = ntohl(ip_hdr->ip_dst.s_addr);
this->headers[Dip] = new IP(des_addr, 32);
int ip_header_length = ntohs(ip_hdr->ip_hlen);
TCPHdr *tcph =(TCPHdr *)(packet+ethernet_header_length+ip_header_length);
this->headers[Sport] = new int(ntohs(tcph->th_sport));
this->headers[Dport] = new int(ntohs(tcph->th_dport));
//this->headers[Flag_syn] = new int(ntohs(tcph->th_flags) & TH_SYN);
//this->headers[Flag_fin] = new int(ntohs(tcph->th_flags) & TH_FIN);
}
void Flow::clean() {
/*
int ethernet_header_length = 14;
EtherHdr* e_hdr = (EtherHdr*) this->pkt;
if ( ntohs(e_hdr->ether_type) == 0x8100)
ethernet_header_length = 14+4;
else
ethernet_header_length = 14;
IPHdr * ip_hdr = (IPHdr*) (packet+ethernet_header_length);
ip_hdr->ip_src.s_addr = htonl( ((IP *)this->headers[Sip])->ip );
ip_hdr->ip_dst.s_addr = htonl( ((IP *)this->headers[Dip])->ip );
int ip_header_length;
ip_header_length = int(ip_hdr->ip_hlen) * 4;
TCPHdr *tcph =(TCPHdr *)(packet+ethernet_header_length+ip_header_length);
tcph->th_sport =htons(u_short(*((int*)this->headers[Sport])));
tcph->th_dport =htons(u_short(*((int*)this->headers[Dport])));
*/
}
| [
"netfuncdev@gmail.com"
] | netfuncdev@gmail.com |
e0cda3526a6fb9089f50da6a0d830f23c08adb1a | b4a20ef0a5f090054ca18c35f8538f3e1270d016 | /AccountsProgram/Trust_Account.h | 406fa0ba4a2f05490fef8cc622835691cabfa461 | [] | no_license | HollyGS/CPP-Tasks | bbd40d20d00615bb2dafcfa250b71ac507a8bb57 | c8a1dd7964a73e9118b3e75ae2303c7ea3c45b3e | refs/heads/master | 2022-10-12T06:53:44.481999 | 2020-06-11T18:57:50 | 2020-06-11T18:57:50 | 271,534,149 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,198 | h | #ifndef _TRUST_ACCOUNT_H_
#define _TRUST_ACCOUNT_H_
#include "Savings_Account.h"
class Trust_Account : public Savings_Account {
//friend std::ostream &operator<<(std::ostream &os, const Trust_Account &account);
private:
static constexpr const char *def_name = "Unnamed Trust Account";
static constexpr double def_balance = 0.0;
static constexpr double def_int_rate = 0.0;
static constexpr double bonus_amount = 50.0;
static constexpr double bonus_threshold = 5000.0;
static constexpr int max_withdrawals = 3;
static constexpr double max_withdraw_percent = 0.2;
protected:
int num_withdrawals;
public:
Trust_Account(std::string name = def_name, double balance = def_balance, double int_rate = def_int_rate);
// Deposits of $5000.00 or more will receive $50 bonus
virtual bool deposit(double) override;
// Only allowed maximum of 3 withdrawals, each can be up to a maximum of 20% of the account's value
virtual bool withdraw(double) override;
//virtual void print(std::ostream &os) const override;
virtual void print(std::ostream &os) const override;
virtual ~Trust_Account() = default;
};
#endif // _TRUST_ACCOUNT_H_
| [
"hollygs96@live.co.uk"
] | hollygs96@live.co.uk |
a68e2d0a63d827dfe811c43880c9473c5466f5d7 | d2528914608925baee2d15a12bc1a8e46d8c0430 | /DecoratorPointer/Compoent.h | 33b15aaaeb4d43ba90a92e842fd8a092b6e5c832 | [] | no_license | beyondhenry/DesignModeCpp | 5264ca448fd0a60af1df6738856b37b30937dc2d | 75c9bfa1ed58f193f704c738d9e4911b1c455d8e | refs/heads/master | 2021-07-08T01:28:02.399719 | 2020-07-14T14:40:05 | 2020-07-14T14:40:05 | 155,942,400 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 319 | h | //#include "pch.h"
#pragma once
#include <string>
#include <iostream>
using namespace std;
class Beverage
{
public:
virtual ~Beverage() {};
virtual string getDescription(); // 必须是虚函数,否则会造成后期使用时描述显示不正确
virtual double cost() = 0;
protected:
string m_description;
};
| [
"thinktodo@outlook.com"
] | thinktodo@outlook.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.