Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
§

iµµh¹¤ãóΗddlZddlZddlmZddlmZddlmZ	en#e	$rddl
mZd„ZYnwxYw	en
#e	$re
ZYnwxYwe¦«ZGd„d	e¦«Zd
„Zd„Zd„ZdS)
éNé)Ú
allocate_lock)Ú	CDefError)Úmodel)ÚCallablecó,—t|t¦«S©N)Ú
isinstancer)Úxs ú3/usr/local/lib/python3.11/site-packages/cffi/api.pyú<lambda>r
s€ A¥xÑ0Ô0€ócóx—eZdZdZd;d„Zd<d„Zd=d„Zd>d„Zd?d	„Zd
„Z	d„Z
d>d„Zd
„Zd„Z
d„Zd„Zd;d„Z		d@d„Zd„ZdAd„Zd„Zedfd„Zd„ZdBd„ZdCd„Zd?d„Zd„ZdDd„Zd „Zd!„Zeeedd"¦«Z dAd#„Z!d$„Z"d%„Z#d&„Z$d'„Z%d(„Z&d)„Z'd*„Z(d+„Z)d,„Z*d-„Z+dEd/„Z,	dEd0„Z-dFd2„Z.d3„Z/d4„Z0dGd6„Z1d7„Z2d8„Z3d9„Z4d:„Z5dS)HÚFFIa’
    The main top-level class that you instantiate once, or once per module.

    Example usage:

        ffi = FFI()
        ffi.cdef("""
            int printf(const char *, ...);
        """)

        C = ffi.dlopen(None)   # standard library
        -or-
        C = ffi.verify()  # use a C compiler: verify the decl above is right

        C.printf("hello, %s!\n", ffi.new("char[]", "world"))
    NcóÒ—|€sddl}ddlm}|j|kr^t|d¦«r+t	d|›dt
›d|j›d|j›d		¦«‚t	d|›dt
›d
|j›d	¦«‚ddlm}||_t¦«|_	| 
¦«|_i|_tjd¦«j|_tjd
¦«j|_g|_g|_g|_g|_d|_i|_d|_d|_t5j|¦«|_t|d¦«r| |¦«t=|j¦«D]6}| d¦«rtA||tC||¦«¦«Œ7|j	5| "t4j#¦«|_$| "t4j%¦«|_&ddd¦«n#1swxYwYtO|tj¦«rfttPd¦«sP| )|j$d¦«tP_*| +¦«\tP_,tP_-nA| )|j$d¦«|_*| +¦«\|_,|_-|j.|_.dS)z{Create an FFI instance.  The 'backend' argument is used to
        select a non-default backend, mostly for tests.
        Nrr)Ú__version__Ú__file__z5Version mismatch: this is the 'cffi' package version z
, located in zQ.  When we import the top-level '_cffi_backend' extension module, we get version z=.  The two versions should be equal; check your installation.zS.  This interpreter comes with a built-in '_cffi_backend' module, which is version )ÚcparserÚparsed_typesÚ	new_typesÚset_ffiÚRTLD_ÚNULL)/Ú
_cffi_backendÚrÚhasattrÚ	ExceptionrrÚ_backendrÚ_lockÚParserÚ_parserÚ_cached_btypesÚtypesÚ
ModuleTypeÚ__dict__Ú
_parsed_typesÚ
_new_typesÚ_function_cachesÚ
_librariesÚ_cdefsourcesÚ_included_ffisÚ_windows_unicodeÚ_init_once_cacheÚ
_cdef_versionÚ
_embeddingrÚ
get_typecacheÚ
_typecacherÚlistÚ
startswithÚsetattrÚgetattrÚ_get_cached_btypeÚ
voidp_typeÚBVoidPÚchar_array_typeÚBCharAr
rÚcastrÚ
_get_typesÚCDataÚCTypeÚbuffer)ÚselfÚbackendrrÚnames     rÚ__init__zFFI.__init__)s#€ðˆ?ð
,Ð+Ð+Ð+Ø%Ð%Ð%Ð%Ð%Ð%ØÔ" kÒ1Ð1å˜7 JÑ/Ô/ðEå#˜)Ø#˜˜¥X X XØÔ+Ð+Ð+¨WÔ-=Ð-=Ð-=ð%?ñ@ô@ð@õ
$˜)Ø#˜˜¥X X X¨wÔ/BÐ/BÐ/Bð%DñEôEðEð	ÐÐÐÐÐØˆŒ
Ý"‘_”_ˆŒ
Ø—~’~Ñ'Ô'ˆŒØ ˆÔÝ"Ô-¨nÑ=Ô=ÔFˆÔÝÔ*¨;Ñ7Ô7Ô@ˆŒØ "ˆÔ؈ŒØˆÔØ ˆÔØ $ˆÔØ "ˆÔØ!ˆÔ؈ŒÝÔ-¨gÑ6Ô6ˆŒÝ7˜IÑ&Ô&ð	"ØOŠO˜DÑ!Ô!Ð!ݘÔ)Ñ*Ô*ð	<ð	<ˆDØŠ˜wÑ'Ô'ð
<ݘ˜d¥G¨G°TÑ$:Ô$:Ñ;Ô;Ð;øà
ŒZð	Hð	HØ×0Ò0µÔ1AÑBÔBˆDŒKØ×0Ò0µÔ1FÑGÔGˆDŒKð	Hð	Hð	Hñ	Hô	Hð	Hð	Hð	Hð	Hð	Hð	Høøøð	Hð	Hð	Hð	HõguÔ/Ñ0Ô0ð	:å3 Ñ'Ô'ð
<ØŸ9š9 T¤[°!Ñ4Ô4•”Ø'.×'9Ò'9Ñ';Ô';Ñ$•”	3œ9øðŸ	š	 $¤+¨qÑ1Ô1ˆDŒIØ%,×%7Ò%7Ñ%9Ô%9Ñ"ˆDŒJ˜œ
Ø”nˆŒˆˆsÆ:A	HÈHÈHFcó8—| ||||¬¦«dS)a[Parse the given C source.  This registers all declared functions,
        types, and global variables.  The functions and global variables can
        then be accessed via either 'ffi.dlopen()' or 'ffi.verify()'.
        The types can be used in 'ffi.new()' and other functions.
        If 'packed' is specified as True, all structs declared inside this
        cdef are packed, i.e. laid out without any field alignment at all.
        Alternatively, 'pack' can be a small integer, and requests for
        alignment greater than that are ignored (pack=1 is equivalent to
        packed=True).
        )ÚoverrideÚpackedÚpackN)Ú_cdef)r@ÚcsourcerErFrGs     rÚcdefzFFI.cdefes$€ð	

Š
7 X°fÀ4ˆ
ÑHÔHÐHÐHÐHrcóX—| |||d¬¦«|j€	d|_dSdS)NT)rFrGÚ	dllexportr)rHr/)r@rIrFrGs    rÚ
embedding_apizFFI.embedding_apirs7€Ø
Š
7 6°Àˆ
ÑEÔEÐEØŒ?Ð"Ø ˆDŒOˆOˆOð#Ð"rcó—t|t¦«s9t|t¦«std¦«‚| d¦«}|j5t
¦«|_|jj	|fd|i|¤Ž|j
 |¦«|r|jD]}| 
¦«Œ|jj}|r'g|j_|D]}| ||¦«Œddd¦«dS#1swxYwYdS)Nz cdef() argument must be a stringÚasciirE)r
ÚstrÚ
basestringÚ	TypeErrorÚencoderÚobjectr.r!Úparser*Úappendr(ÚclearÚ_recompleteÚfinish_backend_type)r@rIrEÚoptionsÚcacheÚ
finishlistÚtps       rrHz	FFI._cdefwse€Ý˜'¥3Ñ'Ô'ð	.ݘg¥zÑ2Ô2ð
DÝÐ BÑCÔCÐCØ—n’n WÑ-Ô-ˆGØ
ŒZð	=ð	=Ý!'¡¤ˆDÔØˆDŒLÔ˜wÐEÐE°ÐE¸WÐEÐEÐEØÔ×$Ò$ WÑ-Ô-Ð-Øð
"Ø!Ô2ð"ð"EØ—K’K‘M”MMMØœÔ1ˆJØð
=Ø+-”Ô(Ø$ð=ð=BØ×*Ò*¨4°Ñ<Ô<Ð<Ð<ð	=ð	=ð	=ñ	=ô	=ð	=ð	=ð	=ð	=ð	=ð	=ð	=øøøð	=ð	=ð	=ð	=ð	=ð	=sÁBC;Ã;C?ÄC?rcóJ—t|t¦«s&|$t||j¦«std¦«‚|j5t|||¦«\}}|j |¦«|j |¦«ddd¦«n#1swxYwY|S)aHLoad and return a dynamic library identified by 'name'.
        The standard C library can be loaded by passing None.
        Note that functions and types declared by 'ffi.cdef()' are not
        linked to a particular library, just like C headers; in the
        library we only look for the actual (untyped) symbols.
        NzRdlopen(name): name must be a file name, None, or an already-opened 'void *' handle)	r
rQr=rRrÚ_make_ffi_libraryr(rVr))r@rBÚflagsÚlibÚfunction_caches     rÚdlopenz
FFI.dlopen‰sò€õ˜4¥Ñ,Ô,ð	Dؐݘ4 ¤Ñ,Ô,ðåðCñDôDð
Dà
ŒZð	(ð	(Ý"3°D¸$ÀÑ"FÔ"FÑˆCØÔ!×(Ò(¨Ñ8Ô8Ð8ØŒO×"Ò" 3Ñ'Ô'Ð'ð	(ð	(ð	(ñ	(ô	(ð	(ð	(ð	(ð	(ð	(ð	(øøøð	(ð	(ð	(ð	(ðˆ
sÁA	BÂBÂBcóJ—t|¦« |¦«dS)z¸Close a library obtained with ffi.dlopen().  After this call,
        access to functions or variables from the library will fail
        (possibly with a segmentation fault).
        N)ÚtypeÚ__cffi_close__)r@ras  rÚdlclosezFFI.dlclose›s$€õ
	
ˆS‰	Œ	× Ò  Ñ%Ô%Ð%Ð%Ð%rcó>—|}||jvr
|j|St|t¦«s| d¦«}|j |¦«}|j}|r| ¦«}| |¦«}||f}||j|<|S)NrO)	r&r
rPrSr!Ú
parse_typeÚis_raw_functionÚas_function_pointerr6)r@ÚcdeclÚkeyreÚreally_a_function_typeÚbtypeÚresults       rÚ_typeof_lockedzFFI._typeof_locked¢s­€àˆØ$Ô$Ð$Ð$ØÔ% cÔ*Ð*å˜%¥Ñ%Ô%ð	*Ø—L’L Ñ)Ô)ˆEàŒ|×&Ò& uÑ-Ô-ˆØ!%Ô!5ÐØ!ð	.Ø×+Ò+Ñ-Ô-ˆDØ×&Ò& tÑ,Ô,ˆØÐ.Ð.ˆØ"(ˆÔ˜3ÑØˆ
rcóä—	|j|}nD#t$r7|j5| |¦«}ddd¦«n#1swxYwYYnwxYw|\}}|r|st	d|›d¦«‚|S)Nz	the type z3 is a function type, not a pointer-to-function type)r&ÚKeyErrorrrqr)r@rlÚconsider_function_as_funcptrrprorns      rÚ_typeofzFFI._typeof´së€ð	4ØÔ'¨Ô.ˆFˆFøÝð	4ð	4ð	4Ø”ð
4ð
4Ø×,Ò,¨UÑ3Ô3ð
4ð
4ð
4ñ
4ô
4ð
4ð
4ð
4ð
4ð
4ð
4øøøð
4ð
4ð
4ð
4øøð	4øøøð)/Ñ%ˆÐ%Ø!ð	CÐ*Fð	Cݐ)Ø:?¸%¸%ðBñCôCð
Càˆs1‚
A¡A·AÁA	ÁAÁ
A	ÁAÁAcó—t|t¦«r| |¦«St||j¦«r|j |¦«St|tj¦«rt|¦«}||St|tj	¦«rIt|d¦«r9|j5| |j
¦«cddd¦«S#1swxYwYtt|¦«¦«‚)z£Parse the C type given as a string and return the
        corresponding <ctype> object.
        It can also be used on 'cdata' instance to get its C type.
        NÚ_cffi_base_type)r
rQrur=rÚtypeofr#ÚBuiltinFunctionTypeÚ_builtin_function_typeÚFunctionTyperrr6rwrRre)r@rlÚress   rrxz
FFI.typeofÂsD€õ
eZÑ(Ô(ð	'Ø—<’< Ñ&Ô&Ð&ݐe˜TœZÑ(Ô(ð	/Ø”=×'Ò'¨Ñ.Ô.Ð.ݐeUÔ6Ñ7Ô7ð	Ý(¨Ñ/Ô/ˆC؈ؐ
ÝueÔ0Ñ1Ô1ð	EݘEÐ#4Ñ5Ô5ð	Eà”ð
Eð
EØ×-Ò-¨eÔ.CÑDÔDð
Eð
Eð
Eð
Eñ
Eô
Eð
Eð
Eð
Eð
Eð
Eð
Eøøøð
Eð
Eð
Eð
E坘U™œÑ$Ô$Ð$sÂ8CÃC#Ã&C#có¾—t|t¦«r/| |¦«}|j |¦«S|j |¦«S)zvReturn the size in bytes of the argument.  It can be a
        string naming a C type, or a 'cdata' instance.
        )r
rQrurÚsizeof)r@rlÚBTypes   rr~z
FFI.sizeofÕsS€õeZÑ(Ô(ð	/Ø—L’L Ñ'Ô'ˆEØ”=×'Ò'¨Ñ.Ô.Ð.à”=×'Ò'¨Ñ.Ô.Ð.rcóŠ—t|t¦«r| |¦«}|j |¦«S)z\Return the natural alignment size in bytes of the C type
        given as a string.
        )r
rQrurÚalignof)r@rls  rrzFFI.alignofßs=€õeZÑ(Ô(ð	(Ø—L’L Ñ'Ô'ˆEØŒ}×$Ò$ UÑ+Ô+Ð+rcó~—t|t¦«r| |¦«}|j|g|¢RŽdS)a3Return the offset of the named field inside the given
        structure or array, which must be given as a C type name.
        You can give several field names in case of nested structures.
        You can also give numeric values which correspond to array
        items, in case of an array type.
        r)r
rQruÚ
_typeoffsetof)r@rlÚfields_or_indexess   rÚoffsetofzFFI.offsetofçsH€õeZÑ(Ô(ð	(Ø—L’L Ñ'Ô'ˆEØ!ˆtÔ! %Ð<Ð*;Ð<Ð<Ð<¸QÔ?Ð?rcóŒ—t|t¦«r| |¦«}|j ||¦«S)a¬Allocate an instance according to the specified C type and
        return a pointer to it.  The specified C type must be either a
        pointer or an array: ``new('X *')`` allocates an X and returns
        a pointer to it, whereas ``new('X[n]')`` allocates an array of
        n X'es and returns an array referencing it (which works
        mostly like a pointer, like in C).  You can also use
        ``new('X[]', n)`` to allocate an array of a non-constant
        length n.

        The memory is initialized following the rules of declaring a
        global variable in C: by default it is zero-initialized, but
        an explicit initializer can be given which can be used to
        fill all or part of the memory.

        When the returned <cdata> object goes out of scope, the memory
        is freed.  In other words the returned <cdata> object has
        ownership of the value of type 'cdecl' that it points to.  This
        means that the raw data can be used as long as this object is
        kept alive, but must not be used for a longer time.  Be careful
        about that when copying the pointer to the memory somewhere
        else, e.g. into another structure.
        )r
rQrurÚnewp)r@rlÚinits   rÚnewzFFI.newòs?€õ.eZÑ(Ô(ð	(Ø—L’L Ñ'Ô'ˆEØŒ}×!Ò! %¨Ñ.Ô.Ð.rTcóx‡‡—‰j ¦«}| |||¦«Šdˆˆfd„	}|S)aÇReturn a new allocator, i.e. a function that behaves like ffi.new()
        but uses the provided low-level 'alloc' and 'free' functions.

        'alloc' is called with the size as argument.  If it returns NULL, a
        MemoryError is raised.  'free' is called with the result of 'alloc'
        as argument.  Both can be either Python function or directly C
        functions.  If 'free' is None, then no free function is called.
        If both 'alloc' and 'free' are None, the default is used.

        If 'should_clear_after_alloc' is set to False, then the memory
        returned by 'alloc' is assumed to be already cleared (or you are
        fine with garbage); otherwise CFFI will clear it.
        Ncóp•—t|t¦«r‰ |¦«}‰||¦«Sr	©r
rQru)rlrˆÚ	allocatorr@s  €€rÚallocatez#FFI.new_allocator.<locals>.allocates8ø€Ý˜%¥Ñ,Ô,ð
,ØŸš UÑ+Ô+Ø9˜U DÑ)Ô)Ð)rr	)rrÚ
new_allocator)r@ÚallocÚfreeÚshould_clear_after_allocÚcompiled_ffirŽrs`     @rrzFFI.new_allocator
saøø€ð”}×(Ò(Ñ*Ô*ˆØ ×.Ò.¨u°dØ/GñIôIˆ	ð	*ð	*ð	*ð	*ð	*ð	*ð	*ðˆrcóŒ—t|t¦«r| |¦«}|j ||¦«S)zºSimilar to a C cast: returns an instance of the named C
        type initialized with the given 'source'.  The source is
        casted between integers or pointers of any type.
        )r
rQrurr;)r@rlÚsources   rr;zFFI.cast%s?€õ
eZÑ(Ô(ð	(Ø—L’L Ñ'Ô'ˆEØŒ}×!Ò! %¨Ñ0Ô0Ð0réÿÿÿÿcó8—|j ||¦«S)aÃReturn a Python string (or unicode string) from the 'cdata'.
        If 'cdata' is a pointer or array of characters or bytes, returns
        the null-terminated string.  The returned string extends until
        the first null character, or at most 'maxlen' characters.  If
        'cdata' is an array then 'maxlen' defaults to its length.

        If 'cdata' is a pointer or array of wchar_t, returns a unicode
        string following the same rules.

        If 'cdata' is a single character or byte or a wchar_t, returns
        it as a string or unicode string.

        If 'cdata' is an enum, returns the value of the enumerator as a
        string, or 'NUMBER' if the value is out of range.
        )rÚstring)r@ÚcdataÚmaxlens   rr˜z
FFI.string.s€ð Œ}×#Ò# E¨6Ñ2Ô2Ð2rcó8—|j ||¦«S)aLUnpack an array of C data of the given length,
        returning a Python string/unicode/list.

        If 'cdata' is a pointer to 'char', returns a byte string.
        It does not stop at the first null.  This is equivalent to:
        ffi.buffer(cdata, length)[:]

        If 'cdata' is a pointer to 'wchar_t', returns a unicode string.
        'length' is measured in wchar_t's; it is not the size in bytes.

        If 'cdata' is a pointer to anything else, returns a list of
        'length' items.  This is a faster equivalent to:
        [cdata[i] for i in range(length)]
        )rÚunpack)r@r™Úlengths   rrœz
FFI.unpack@s€ðŒ}×#Ò# E¨6Ñ2Ô2Ð2rcó´—|tur
|j|}}n*t|t¦«r| |¦«}|j |||¦«S)aÙReturn a cdata of the given type pointing to the data of the
        given Python object, which must support the buffer interface.
        Note that this is not meant to be used on the built-in types
        str or unicode (you can build 'char[]' arrays explicitly)
        but only on objects containing large quantities of raw data
        in some other format, like 'array.array' or numpy arrays.

        The first argument is optional and default to 'char[]'.
        )Ú_unspecifiedr:r
rQrurÚfrom_buffer)r@rlÚ
python_bufferÚrequire_writables    rr zFFI.from_buffer^s`€ðLÐ(Ð(Ø#'¤;°=ˆEˆEÝ
˜zÑ
*Ô
*ð	(Ø—L’L Ñ'Ô'ˆEØŒ}×(Ò(¨°
Ø)9ñ;ô;ð	;rcó:—|j |||¦«S)a_ffi.memmove(dest, src, n) copies n bytes of memory from src to dest.

        Like the C function memmove(), the memory areas may overlap;
        apart from that it behaves like the C function memcpy().

        'src' can be any cdata ptr or array, or any Python buffer object.
        'dest' can be any cdata ptr or array, or a writable Python buffer
        object.  The size to copy, 'n', is always measured in bytes.

        Unlike other methods, this one supports all Python buffer including
        byte strings and bytearrays---but it still does not support
        non-contiguous buffers.
        )rÚmemmove)r@ÚdestÚsrcÚns    rr¤zFFI.memmoveps€ðŒ}×$Ò$ T¨3°Ñ2Ô2Ð2rc󐇇‡‡—ˆˆˆˆfd„}t‰t¦«r‰ ‰d¬¦«Š|€|S||¦«S)aReturn a callback object or a decorator making such a
        callback object.  'cdecl' must name a C function pointer type.
        The callback invokes the specified 'python_callable' (which may
        be provided either directly or via a decorator).  Important: the
        callback object must be manually kept alive for as long as the
        callback may be invoked from the C level.
        cóz•—t|¦«std¦«‚‰j ‰|‰‰¦«S)Nz.the 'python_callable' argument is not callable)ÚcallablerRrÚcallback)Úpython_callablerlÚerrorÚonerrorr@s €€€€rÚcallback_decorator_wrapz-FFI.callback.<locals>.callback_decorator_wrapˆsMø€Ý˜OÑ,Ô,ð
3Ýð!2ñ3ô3ð3à”=×)Ò)¨%°Ø*/°ñ:ô:ð
:rT)rtrŒ)r@rlr¬r­r®r¯s`` `` rr«zFFI.callback€suøøøø€ð	:ð	:ð	:ð	:ð	:ð	:ð	:ð	:õeZÑ(Ô(ð	KØ—L’L ÀTLÑJÔJˆEØÐ"Ø*Ð*à*Ð*¨?Ñ;Ô;Ð;rrcóF—t|t¦«r| |¦«}| ¦«}| d¦«r#d|j |d¦«vrd|z}n|r|ddvrd|z}|j ||¦«S)a.Return a string giving the C type 'cdecl', which may be itself
        a string or a <ctype> object.  If 'replace_with' is given, it gives
        extra text to append (or insert for more complicated C types), like
        a variable name, or '*' to get actually the C type 'pointer-to-cdecl'.
        Ú*z&[ú&z(%s)rz[(ú )r
rQruÚstripr3rÚgetcname)r@rlÚreplace_withs   rÚgetctypezFFI.getctype•s¯€õeZÑ(Ô(ð	(Ø—L’L Ñ'Ô'ˆEØ#×)Ò)Ñ+Ô+ˆØ×#Ò# CÑ(Ô(ð	.ؘDœM×2Ò2°5¸#Ñ>Ô>Ð>Ð>Ø! LÑ0ˆLˆLØ
ð	. ,¨q¤/°TÐ"9Ð"9Ø Ñ-ˆLØŒ}×%Ò% e¨\Ñ:Ô:Ð:rcó:—|j |||¦«S)a»Return a new cdata object that points to the same
        data.  Later, when this new cdata object is garbage-collected,
        'destructor(old_cdata_object)' will be called.

        The optional 'size' gives an estimate of the size, used to
        trigger the garbage collection more eagerly.  So far only used
        on PyPy.  It tells the GC that the returned object keeps alive
        roughly 'size' bytes of external memory.
        )rÚgcp)r@r™Ú
destructorÚsizes    rÚgczFFI.gc¥s€ðŒ}× Ò  ¨
°DÑ9Ô9Ð9rcóæ—|j d¦«dusJ‚	|j|}nC#t$r6g}| ||¦«}|D]}| ||¦«ŒYnwxYw|S)NF)rÚacquirer"rsÚget_cached_btyperY)r@rerr\s    rr6zFFI._get_cached_btype±s¥€ØŒz×!Ò! %Ñ(Ô(¨EÐ1Ð1Ð1Ð1ð	;ØÔ'¨Ô-ˆEˆEøÝð	;ð	;ð	;؈JØ×)Ò)¨$°
Ñ;Ô;ˆEØ"ð
;ð
;Ø×(Ò(¨¨zÑ:Ô:Ð:Ð:ð
;ð
;ð	;øøøð
ˆs 
.®=A.Á-A.cóì—ddlm}m}|jr| |¦«|p	|¦«}||||fi|¤Ž|_|j ¦«}|j |¦«|S)aÊVerify that the current ffi signatures compile on this
        machine, and return a dynamic library object.  The dynamic
        library can be used to call functions and access global
        variables declared in this 'ffi'.  The library is compiled
        by the C compiler: it gives you C-level API compatibility
        (including calling macros).  This is unlike 'ffi.dlopen()',
        which requires binary compatibility in the signatures.
        r)ÚVerifierÚ_caller_dir_pycache)ÚverifierrÁrÂr,Ú_apply_windows_unicodeÚload_libraryr)rV)r@r•ÚtmpdirÚkwargsrÁrÂras       rÚverifyz
FFI.verify½s¢€ð	<Ð;Ð;Ð;Ð;Ð;Ð;Ð;ðÔ ð	0Ø×'Ò'¨Ñ/Ô/Ð/ð
Ð0Ð.Ð.Ñ0Ô0ˆð!˜  v¨vÐ@Ð@¸Ð@Ð@ˆŒ
ØŒm×(Ò(Ñ*Ô*ˆð	
Œ×Ò˜sÑ#Ô#Ð#؈
rcó4—|j ¦«Sr	)rÚ	get_errno)r@s rÚ
_get_errnozFFI._get_errnoÛs€ØŒ}×&Ò&Ñ(Ô(Ð(rcó:—|j |¦«dSr	)rÚ	set_errno)r@Úerrnos  rÚ
_set_errnozFFI._set_errnoÝs€ØŒ
×Ò Ñ&Ô&Ð&Ð&Ð&rz(the value of 'errno' from/to the C callscó6—|j |¦«Sr	)rÚgetwinerror)r@Úcodes  rrÑzFFI.getwinerrorâs€ØŒ}×(Ò(¨Ñ.Ô.Ð.rcón—|j5tj||¦«cddd¦«S#1swxYwYdSr	)rrÚ
pointer_cache)r@Úctypes  rÚ_pointer_tozFFI._pointer_toås~€Ø
ŒZð	4ð	4ÝÔ& t¨UÑ3Ô3ð	4ð	4ð	4ð	4ñ	4ô	4ð	4ð	4ð	4ð	4ð	4ð	4øøøð	4ð	4ð	4ð	4ð	4ð	4sˆ*ª.±.có€—	|j |¦«}nB#t$r5dt|¦«jvrt|¦«j|g|¢RŽcYS‚wxYw|r|j|g|¢RŽ\}}n|jdkrtd¦«‚d}| |¦«}|j 	|||¦«S)zêReturn the address of a <cdata 'struct-or-union'>.
        If 'fields_or_indexes' are given, returns the address of that
        field or array item in the structure or array, recursively in
        case of nested structures.
        Ú
__addressof__Úpointerzaddressof(pointer)r)
rrxrRrer%rØrƒÚkindrÖÚrawaddressof)r@r™r„rÕÚoffsetÚctypeptrs      rÚ	addressofz
FFI.addressofésñ€ð	Ø”M×(Ò(¨Ñ/Ô/ˆEˆEøÝð	ð	ð	Ø¥$ u¡+¤+Ô"6Ð6Ð6Ø0•t˜E‘{”{Ô0°ÐKÐ9JÐKÐKÐKÐKÐKÐKØð	øøøðð	Ø.˜DÔ.¨uÐIÐ7HÐIÐIÐI‰MˆE66àŒz˜YÒ&Ð&ÝÐ 4Ñ5Ô5Ð5؈FØ×#Ò# EÑ*Ô*ˆØŒ}×)Ò)¨(°E¸6ÑBÔBÐBs‚;AÁAcó˜—|j ||¦«\}}|D]&}|j ||d¦«\}}||z
}Œ'||fS)Nr)rÚtypeoffsetof)r@rÕÚfield_or_indexr„rÜÚfield1Úoffset1s       rrƒzFFI._typeoffsetofþs_€Øœ
×2Ò2°5¸.ÑIÔI‰
ˆˆvØ'ð	ð	ˆFØ!œ]×7Ò7¸¸vÀqÑIÔI‰NˆE7ØgÑˆFˆFؐfˆ}Ðrcó4—t|t¦«s$tdt|¦«j›¦«‚||urtd¦«‚|j5|j5|j |j¦«|j	 
d¦«|j	 |j	¦«|j	 
d¦«|j 
|¦«ddd¦«n#1swxYwYddd¦«dS#1swxYwYdS)aÉIncludes the typedefs, structs, unions and enums defined
        in another FFI instance.  Usage is similar to a #include in C,
        where a part of the program might include types defined in
        another part for its own usage.  Note that the include()
        method has no effect on functions, constants and global
        variables, which must anyway be accessed directly from the
        lib object returned by the original FFI instance.
        zEffi.include() expects an argument that is also of type cffi.FFI, not zself.include(self)ú[ú]N)
r
rrRreÚ__name__Ú
ValueErrorrr!Úincluder*rVÚextendr+)r@Úffi_to_includes  rrézFFI.includes£€õ˜.­#Ñ.Ô.ð	Aݐ)å $ ^Ñ 4Ô 4Ô =Ð =ð@ñAôAð
Að˜TÐ!Ð!ÝÐ1Ñ2Ô2Ð2Ø
Ô
!ð	;ð	;Ø”ð
;ð
;Ø”×$Ò$ ^Ô%;Ñ<Ô<Ð<ØÔ!×(Ò(¨Ñ-Ô-Ð-ØÔ!×(Ò(¨Ô)DÑEÔEÐEØÔ!×(Ò(¨Ñ-Ô-Ð-ØÔ#×*Ò*¨>Ñ:Ô:Ð:ð
;ð
;ð
;ñ
;ô
;ð
;ð
;ð
;ð
;ð
;ð
;øøøð
;ð
;ð
;ð
;ð	;ð	;ð	;ñ	;ô	;ð	;ð	;ð	;ð	;ð	;ð	;ð	;øøøð	;ð	;ð	;ð	;ð	;ð	;s7ÁD
ÁB
C5Ã)D
Ã5C9	Ã9D
Ã<C9	Ã=D
Ä
DÄDcóB—|j |j|¦«Sr	)rÚnewp_handler8©r@rs  rÚ
new_handlezFFI.new_handles€ØŒ}×(Ò(¨¬°aÑ8Ô8Ð8rcó6—|j |¦«Sr	)rÚfrom_handlerîs  rrñzFFI.from_handles€ØŒ}×(Ò(¨Ñ+Ô+Ð+rcó:—|j |¦«dSr	)rÚreleaserîs  rrózFFI.release"s€ØŒ
×Ò˜aÑ Ô Ð Ð Ð rcó¸—|jtd¦«‚t|¦«}|r| d¦«n| d¦«||_dS)acWindows: if 'enabled_flag' is True, enable the UNICODE and
        _UNICODE defines in C, and declare the types like TCHAR and LPTCSTR
        to be (pointers to) wchar_t.  If 'enabled_flag' is False,
        declare these types to be (pointers to) plain 8-bit characters.
        This is mostly for backward compatibility; you usually want True.
        Nz%set_unicode() can only be called oncezÄtypedef wchar_t TBYTE;typedef wchar_t TCHAR;typedef const wchar_t *LPCTSTR;typedef const wchar_t *PCTSTR;typedef wchar_t *LPTSTR;typedef wchar_t *PTSTR;typedef TBYTE *PTBYTE;typedef TCHAR *PTCHAR;z²typedef char TBYTE;typedef char TCHAR;typedef const char *LPCTSTR;typedef const char *PCTSTR;typedef char *LPTSTR;typedef char *PTSTR;typedef TBYTE *PTBYTE;typedef TCHAR *PTCHAR;)r,rèÚboolrJ)r@Úenabled_flags  rÚset_unicodezFFI.set_unicode%s~€ðÔ Ð,ÝÐDÑEÔEÐEݘLÑ)Ô)ˆØð	0ØIŠIð/ñ
0ô
0ð
0ð
0ð
IŠIð/ñ
0ô
0ð
0ð!-ˆÔÐÐrcóº—| dd¦«}t|ttf¦«st	d¦«‚t|¦«ddgz}||d<dS)NÚ
define_macros©z''define_macros' must be a list or tuple)ÚUNICODEÚ1)Ú_UNICODErü)Úgetr
r2ÚtuplerR)r@ÚkwdsÚ	defmacross   rrÄzFFI._apply_windows_unicodeCsf€Ø—H’H˜_¨bÑ1Ô1ˆ	ݘ)¥d­E ]Ñ3Ô3ð	GÝÐEÑFÔFÐFݘ‘O”OÐ'7Ø'8ð':ñ:ˆ	à )ˆˆ_ÑÐÐrcó2‡—ˆfd„}dtjvrddl}tjdkrdd tj¦«}t
td¦«r/|d|j tj	d¦«¦«nYtjd	krd
}nd}t
td¦«r/|d|j tj	d¦«¦«t
td¦«r0|d|j tj	d
d¦«¦«nÀtjdkrd}t
td¦«r|dz
}nK	ddl
}n#t$r	ddlm
}YnwxYwd}| 
d¦«r|| 
d¦«z
}|tjdz	tjdz	dzfz}t
td¦«r|tjz
}|d|¦«tjdkr|dd¦«dSdS)Ncój•—‰ |g¦«}||vr| |¦«dSdSr	)Ú
setdefaultrV)rmÚvalueÚlstrs   €rÚensurez(FFI._apply_embedding_fix.<locals>.ensureMsAø€Ø—/’/ # rÑ*Ô*ˆCؘCÐÐØ—
’
˜5Ñ!Ô!Ð!Ð!Ð!ð ÐrÚ__pypy__rÚwin32zpython{0[0]}{0[1]}ÚprefixÚlibrary_dirsÚlibs©ézpypy-czpypy3-cÚbinÚpypyÚgoalz
python%d%dÚgettotalrefcountÚ_d)Ú	sysconfigzpython%d.%dÚ	DEBUG_EXTéééÿÚabiflagsÚ	librariesÚextra_link_argsz	/MANIFEST)ÚsysÚbuiltin_module_namesÚosÚplatformÚformatÚversion_inforÚpathÚjoinr
rÚImportErrorÚcffi._shimmed_dist_utilsÚget_config_varÚ
hexversionr)r@rrrÚ	pythonlibÚtemplaters `     rÚ_apply_embedding_fixzFFI._apply_embedding_fixKsUø€ð	"ð	"ð	"ð	"ð	"ð
Ô1Ð1Ñ1ØˆIˆIˆIÝŒ|˜wÒ&Ð&ð1×7Ò7½Ô8HÑIÔI	ݝ3 Ñ)Ô)ðMؐF˜>¨2¬7¯<ª<½¼
ÀFÑ+KÔ+KÑLÔLÐLøõ
Ô# dÒ*Ð*Ø (IIà )Iݝ3 Ñ)Ô)ðLؐF˜>¨2¬7¯<ª<½¼
ÀEÑ+JÔ+JÑKÔKÐKõ•s˜HÑ%Ô%ð
Qؐ~ r¤w§|¢|µC´JÀÈÑ'OÔ'OÑPÔPÐPøåŒ|˜wÒ&Ð&Ø'Ý3Ð 2Ñ3Ô3ð%Ø Ñ$HøðCØ$Ð$Ð$Ð$Ð$øÝ"ðCðCðCØBÐBÐBÐBÐBÐBÐBÐBðCøøøà(Ø×+Ò+¨KÑ8Ô8ðFØ 	× 8Ò 8¸Ñ EÔ EÑEHØ!Ý”^ rÑ)­C¬N¸bÑ,@ÀDÑ+HÐIñJˆIå•s˜JÑ'Ô'ð
*؝Sœ\Ñ)	؈ˆ{˜IÑ&Ô&Ð&ÝŒ<˜7Ò"Ð"ØˆFÐ$ kÑ2Ô2Ð2Ð2Ð2ð#Ð"sÅE Å E3Å2E3ú.ccó—ddl}t|d¦«rtd¦«‚t|t¦«std¦«‚|j|vs|jr|j|vrtd¦«‚t|¦«|||f|_	dS)NrÚ_assigned_sourcez:set_source() cannot be called several times per ffi objectz'module_name' must be a stringzY'module_name' must not contain '/': use a dotted name to make a 'package.module' location)
rrrèr
rQrRÚsepÚaltseprPr-)r@Úmodule_namer•Úsource_extensionrrs      rÚ
set_sourcezFFI.set_source}s³€Øˆ	ˆ	ˆ	ݐ4Ð+Ñ,Ô,ð	/Ýð.ñ/ô/ð
/å˜+¥zÑ2Ô2ð	>ÝÐ<Ñ=Ô=Ð=Ø
Œ6[Ð Ð  R¤YÐ °2´9ÀÐ3KÐ3KÝðHñIôIð
Iå!$ [Ñ!1Ô!1°6Ø!1°4ð!9ˆÔÐÐrcóЗddlm}t|t¦«st	d¦«‚| |¦«}| ||¦«|j|||fi|¤ŽdS)Nr)Ú	pkgconfigz;the pkgconfig_libs argument must be a list of package names)rr4r
r2rRÚflags_from_pkgconfigÚmerge_flagsr2)r@r0Úpkgconfig_libsr•r1rr4Úkwds2s        rÚset_source_pkgconfigzFFI.set_source_pkgconfigŠs‹€àÐÐÐÐÐݘ.­$Ñ/Ô/ð	0Ýð/ñ0ô0ð
0à×.Ò.¨~Ñ>Ô>ˆØ×Ò˜d EÑ*Ô*Ð*؈Œ˜ VÐ-=ÐFÐFÀÐFÐFÐFÐFÐFrÚbuildcóæ—ddlm}ddlm}t	|d¦«s8t	|d¦«r|j ¦«Std¦«‚|j\}}}}|€td¦«‚||¦«||||f|||d	d
œ|¤Ž\}	}
|r_|
r/tj d|	j
d›d¦«n.tj d
|	j
d›d¦«|	S)Nr)Úmkpathr©Ú	recompiler-rÃz8set_source() must be called before distutils_extension()zadistutils_extension() is only for C extension modules, not for dlopen()-style pure Python modulesF)rÆÚextradirr1Úcall_c_compilerz
regenerated: ú
znot modified: )r%r<Ú
recompilerr>rrÃÚ
get_extensionrèr-rRrÚstderrÚwriteÚsources)r@rÆÚverboser<r>r0r•r1rÚextÚupdateds           rÚdistutils_extensionzFFI.distutils_extension”s[€Ø3Ð3Ð3Ð3Ð3Ð3Ø)Ð)Ð)Ð)Ð)Ð)åtÐ/Ñ0Ô0ð	7ݐt˜ZÑ(Ô(ð
5Ø”}×2Ò2Ñ4Ô4Ð4Ýð6ñ7ô7ð
7à6:Ô6KÑ3ˆVÐ-¨t؈>Ýð&ñ'ô'ð
'ð	ˆˆv‰ŒˆØ y  {Ø!'ð@Ø06ÀØ2BØ16ð@ð@ð;?ð@ð@‰ˆˆWðð	KØð
KÝ”
× Ò Ð ¸¼ÀA¼¸¸Ð!HÑIÔIÐIÐIå”
× Ò Ð ¸¼ÀQ¼¸¸Ð!IÑJÔJÐJ؈
rcó¨—ddlm}t|d¦«std¦«‚|j\}}}}|€td¦«‚||||f|dddœ|¤ŽdS)Nrr=r-ú0set_source() must be called before emit_c_code()zYemit_c_code() is only for C extension modules, not for dlopen()-style pure Python modulesF©Úc_filer@Úuses_ffiplatform©rBr>rrèr-rR©r@Úfilenamer>r0r•r1rs       rÚemit_c_codezFFI.emit_c_code®s§€Ø)Ð)Ð)Ð)Ð)Ð)åtÐ/Ñ0Ô0ð	QÝÐOÑPÔPÐPØ6:Ô6KÑ3ˆVÐ-¨t؈>ÝðIñJôJð
Jàˆ	$˜ Vð	2Ø!°5Ø#(ð	2ð	2à,0ð	2ð	2ð	2ð	2ð	2rcó¨—ddlm}t|d¦«std¦«‚|j\}}}}|td¦«‚||||f|dddœ|¤ŽdS)Nrr=r-rLz^emit_python_code() is only for dlopen()-style pure Python modules, not for C extension modulesFrMrPrQs       rÚemit_python_codezFFI.emit_python_code»s¨€Ø)Ð)Ð)Ð)Ð)Ð)åtÐ/Ñ0Ô0ð	QÝÐOÑPÔPÐPØ6:Ô6KÑ3ˆVÐ-¨tØÐÝðOñPôPð
Pàˆ	$˜ Vð	2Ø!°5Ø#(ð	2ð	2à,0ð	2ð	2ð	2ð	2ð	2rú.c	ó†—ddlm}t|d¦«std¦«‚|j\}}}}	||||f|||||dœ|	¤ŽS)a¿The 'target' argument gives the final file name of the
        compiled DLL.  Use '*' to force distutils' choice, suitable for
        regular CPython C API modules.  Use a file name ending in '.*'
        to ask for the system's default extension for dynamic libraries
        (.so/.dll/.dylib).

        The default is '*' when building a non-embedded C API extension,
        and (module_name + '.*') when building an embedded library.
        rr=r-z,set_source() must be called before compile())rÆÚtargetr1Úcompiler_verboseÚdebug)rBr>rrèr-)
r@rÆrGrXrZr>r0r•r1rs
          rÚcompilezFFI.compileÈsŠ€ð	*Ð)Ð)Ð)Ð)Ð)åtÐ/Ñ0Ô0ð	MÝÐKÑLÔLÐLØ6:Ô6KÑ3ˆVÐ-¨t؈y˜˜{¨FðH¸6Ø &Ð9IØ*1¸ðHðHàBFðHðHð	Hrcót—	|j|}n9#t$r,|j |dt¦«f¦«}YnwxYw|dr|dS|d5|j|}|dr|dcddd¦«S|¦«}d|f|j|<ddd¦«n#1swxYwY|S)NFrrT)r-rsrr)r@ÚfuncÚtagrrps     rÚ	init_oncez
FFI.init_onceÛs>€ð	PØÔ% cÔ*ˆAˆAøÝð	Pð	Pð	PØÔ%×0Ò0°°u½m¹o¼oÐ6NÑOÔOˆAˆAˆAð	Pøøøð
ˆQŒ4ð	ؐQ”4ˆKà
ˆqŒTð	8ð	8àÔ% cÔ*ˆAؐŒtð
ؘ”tð		8ð	8ð	8ð	8ñ	8ô	8ð	8ð	8ðT‘V”VˆFØ*.°¨ˆDÔ! #Ñ&ð	8ð	8ð	8ñ	8ô	8ð	8ð	8ð	8ð	8ð	8ð	8øøøð	8ð	8ð	8ð	8ðˆ
s'‚
3AÁAÁ!B-ÂB-Â-B1Â4B1c󢇗|jrtd¦«‚ddl}| d|¦«}|r|| ¦«d…}| ¦«pdg}| d|d¦« ¦«}tdt|¦«¦«D]RŠ|‰}| 	¦«r4| 
|¦«s|dd…}| 
|¦«¯ŒSt|¦«Šˆfd„|D¦«}d |¦«}t|d	d
¦«||_dS)Nz-embedding_init_code() can only be called oncerz\s*\nrz\s*rr–có*•—g|]}|‰d…dz‘ŒS)NrArú)Ú.0ÚlineÚis  €rú
<listcomp>z+FFI.embedding_init_code.<locals>.<listcomp>s%ø€Ð1Ð1Ð1 4abb”˜$‘Ð1Ð1Ð1rÚ	cffi_initÚexec)
r/rèÚreÚmatchÚendÚ
splitlinesÚgroupÚrangeÚlenÚrstripr3r#r[)r@ÚpysourcerhriÚlinesr
rcrds       @rÚembedding_init_codezFFI.embedding_init_codeósTø€ØŒ?ð	NÝÐLÑMÔMÐMð
	ˆ	ˆ	ˆ	Ø—’˜ 8Ñ,Ô,ˆØð	.Ø §	¢	¡¤  Ô-ˆHØ×#Ò#Ñ%Ô%Ð-¨"¨ˆØ—’˜& %¨¤(Ñ+Ô+×1Ò1Ñ3Ô3ˆÝq#˜e™*œ*Ñ%Ô%ð	)ð	)ˆAؘ”8ˆD؏{Š{‰}Œ}ð
)ØŸ/š/¨&Ñ1Ô1ð)Ø# C R Cœ[FðŸ/š/¨&Ñ1Ô1ð)øå‰KŒKˆØ1Ð1Ð1Ð1¨5Ð1Ñ1Ô1ˆØ—7’7˜5‘>”>ˆå˜+ vÑ.Ô.Ð.à"ˆŒˆˆrcó —td¦«‚)Nz:ffi.def_extern() is only available on API-mode FFI objects)rè)r@Úargsrs   rÚ
def_externzFFI.def_extern
s€Ýð#ñ$ô$ð	$rcóÞ—g}g}g}|jjD]š}| d¦«r| |dd…¦«Œ5| d¦«r| |dd…¦«Œh| d¦«r| |dd…¦«Œ›| ¦«| ¦«| ¦«|||fS)z¹Returns the user type names known to this FFI instance.
        This returns a tuple containing three lists of names:
        (typedef_names, names_of_structs, names_of_unions)
        ztypedef éNzstruct ézunion é)r!Ú
_declarationsr3rVÚsort)r@ÚtypedefsÚstructsÚunionsrms     rÚ
list_typeszFFI.list_typessì€ð
ˆØˆØˆØ”<Ô-ð	'ð	'ˆC؏~Š~˜jÑ)Ô)ð
'Ø—’  A B B¤Ñ(Ô(Ð(Ð(Ø—’ 	Ñ*Ô*ð
'Ø—’˜s 1 2 2œwÑ'Ô'Ð'Ð'Ø—’ Ñ)Ô)ð
'Ø—
’
˜c ! " "œgÑ&Ô&Ð&øØ
Š
‰ŒˆØŠ‰ŒˆØŠ‰
Œ
ˆ
ؘ' 6Ð*Ð*rr	)FFN)FN)F)r)NNT)r–)NNN)r)rN)r+)r:T)rVrNN)6rçÚ
__module__Ú__qualname__Ú__doc__rCrJrMrHrcrgrqrurxr~rr…r‰rr;r˜rœrŸr r¤r«r·r¼r6rÈrËrÏÚpropertyrÎrÑrÖrÞrƒrérïrñrór÷rÄr*r2r9rJrSrUr[r_rrrurrúrrrrsƒ€€€€€ððð":%ð:%ð:%ð:%ðxIðIðIðIð!ð!ð!ð!ð
=ð=ð=ð=ð$ðððð$&ð&ð&ðððð$ðððð%ð%ð%ð&/ð/ð/ð,ð,ð,ð	@ð	@ð	@ð/ð/ð/ð/ð6.2Ø/3ððððð01ð1ð1ð3ð3ð3ð3ð$3ð3ð3ð<0<Ø%*ð;ð;ð;ð;ð$3ð3ð3ð <ð<ð<ð<ð*;ð;ð;ð;ð 
:ð
:ð
:ð
:ð
ð
ð
ððððð<)ð)ð)ð'ð'ð'àˆHZ ¨TØ?ñ
Aô
A€Eð/ð/ð/ð/ð4ð4ð4ðCðCðCð*ððð;ð;ð;ð.9ð9ð9ð,ð,ð,ð!ð!ð!ð-ð-ð-ð<*ð*ð*ð03ð03ð03ðd9ð9ð9ð9ð/3ðGðGðGðGððððð42ð2ð2ð2ð2ð2ðHðHðHðHð&ððð0#ð#ð#ð4$ð$ð$ð+ð+ð+ð+ð+rrcó—ddl}t|t¦«s*tjdks|| ||¦«Sd}d}d|vs
d|vs	|j|vr0	| ||¦«S#t$r}|}Yd}~nd}~wwxYwddl}|j	 
|¦«}|€R|dkr/tjdkrtjdkrtd¦«‚d|›}||›d	|›}t|¦«‚| ||¦«S)
Nrr	ÚcrVú/r
zXdlopen(None) cannot work on Windows for Python 3 (see http://bugs.python.org/issue23606)zEctypes.util.find_library() did not manage to locate a library called z.  Additionally, )rr
rQrrrÅr.ÚOSErrorÚctypes.utilÚutilÚfind_libraryr!)	rArBr`rÚfirst_errorÚeÚctypesr"Úmsgs	         rÚ_load_backend_libr&s]€Ø
€I€I€IݐdJÑ'Ô'ðÝŒ<˜7Ò"Ð" dÐ&6Ø×'Ò'¨¨eÑ4Ô4Ð4؈à€KØ
ˆd€{€{c˜Tkk R¤V¨t ^ ^ð	Ø×'Ò'¨¨eÑ4Ô4Ð4øÝð	ð	ð	؈KˆKˆKˆKˆKˆKøøøøð	øøøàÐÐÐØŒ;×#Ò# DÑ)Ô)€DØ€|ؐ3Š;ˆ;3œ<¨7Ò2Ð2µsÔ7GÈ4Ò7OÐ7OÝðDñEôEð
Eøð37°$ð9ˆàÐ"Ø-8¨[¨[¸#¸#Ð>ˆCݐc‰lŒlÐØ×Ò  eÑ,Ô,Ð,sÁA.Á.
BÁ8A?Á?Bc
óÖ‡‡‡‡‡‡‡	‡
‡‡‡
‡‡‡—‰j}t|||¦«Š
ˆ
ˆˆfd„Šˆˆ
ˆfd„Šˆˆ
ˆfd„Šd„Šˆˆfd„ŠiŠ	dgŠ
iŠˆˆˆˆˆ	ˆ
ˆˆfd„Šˆˆ	ˆˆˆfd„ŠGˆˆ	ˆˆ
ˆˆˆˆfd	„d
t¦«Št|t¦«rF	t|t
¦«s| d¦«}d|z‰_n#t$rYnwxYw‰¦«Š‰‰j	fS)
Nc󦕗d|z}‰jj|\}}‰ |¦«}‰ ||¦«}|‰j|<dS)Nz	function )r!rzr6Ú
load_functionr%)	rBrmr]Ú_rrÚ
backendlibÚffiÚlibrarys	      €€€rÚaccessor_functionz,_make_ffi_library.<locals>.accessor_functionDs[ø€Ø˜DÑ ˆØ”Ô)¨#Ô.‰ˆˆAØ×%Ò% bÑ)Ô)ˆØ×(Ò(¨°Ñ5Ô5ˆØ!&ˆÔ˜ÑÐÐrc
óܕ‡‡‡‡—d‰z}‰	jj|\}}‰	 |¦«Š‰jЉjŠt‰‰t
ˆˆˆfd„ˆˆˆfd„¦«¦«dS)Nú	variable có•—‰‰‰¦«Sr	rú)r@rrBÚ
read_variables €€€rr
z>_make_ffi_library.<locals>.accessor_variable.<locals>.<lambda>Rsø€˜˜ u¨dÑ3Ô3€rcó•—‰‰‰|¦«Sr	rú)r@rrrBÚwrite_variables  €€€rr
z>_make_ffi_library.<locals>.accessor_variable.<locals>.<lambda>Ssø€  ¨u°d¸EÑ BÔ B€r)r!rzr6r›rr4rƒ)
rBrmr]r“rr›rÚ
FFILibraryr”r•s
`   @@@€€€rÚaccessor_variablez,_make_ffi_library.<locals>.accessor_variableKsžøøøøø€Ø˜DÑ ˆØ”Ô)¨#Ô.‰ˆˆAØ×%Ò% bÑ)Ô)ˆØ"Ô0ˆ
Ø#Ô2ˆÝ
˜D¥(Ø3Ð3Ð3Ð3Ð3Ð3ØBÐBÐBÐBÐBÐBñ#Dô#Dñ	Eô	Eð	Eð	Eð	Ercó`•—	‰|S#t$r˜‰j5|‰vrjd|z}‰jj|\}}‰ |¦«}|jdkrt
j‰|¦«}‰ ||¦«}|‰|<ddd¦«n#1swxYwY‰|cYSwxYw)Nr™Úarray)	rsrr!rzr6rÚrrÔr’)	rBrmr]r“rÚpÚaddr_variablesr”r•s	      €€€rÚ
addressof_varz(_make_ffi_library.<locals>.addressof_varUsø€ð	(Ø! $Ô'Ð'øÝð
	(ð
	(ð
	(Ø”ð
-ð
-ؘ~Ð-Ð-Ø%¨Ñ,CØœKÔ5°cÔ:‘EB˜Ø×1Ò1°"Ñ5Ô5EØ”z WÒ,Ð,Ý %Ô 3°C¸Ñ ?Ô ?˜Ø"×0Ò0°¸Ñ=Ô=AØ+,N 4Ñ(ð
-ð
-ð
-ñ
-ô
-ð
-ð
-ð
-ð
-ð
-ð
-øøøð
-ð
-ð
-ð
-ð" $Ô'Ð'Ð'Ð'ð
	(øøøs3ƒ‹B-œA/BÂB-ÂB	ÂB-ÂB	ÂB-Â,B-có(—td|›d¦«‚)Nznon-integer constant 'z,' cannot be accessed from a dlopen() library)ÚNotImplementedError)rBs rÚaccessor_constantz,_make_ffi_library.<locals>.accessor_constantds'€Ý!Ð!ØHLÈÈð#OñPôPð	Prcó<•—‰jj|‰j|<dSr	)r!Ú_int_constantsr%)rBr•r–s €€rÚaccessor_int_constantz0_make_ffi_library.<locals>.accessor_int_constanths ø€Ø!$¤Ô!;¸DÔ!AˆÔ˜ÑÐÐrFcóÒ•—‰
d‰jurdS‰jj ¦«D]†\}\}}t	|t
j¦«s=| dd¦«\}}|dkr‰	‰|<ŒG|dkr‰‰|<ŒS|dkr‰‰|<Œ_t|j	¦«D]\}}||fˆfd„	}|‰|<ŒŒ‡‰jj
D]}‰ |‰
¦«Œ‰j‰
d<dS)Nrr³rÚfunctionÚvariableÚconstantcóZ•—| ¦«|j|‰j|<dSr	)Úcheck_not_partialÚ
enumvaluesr%)rBr]rdr–s   €rÚ
accessor_enumzB_make_ffi_library.<locals>.update_accessors.<locals>.accessor_enum~s/ø€Ø×,Ò,Ñ.Ô.Ð.Ø13´¸qÔ1A˜Ô(¨Ñ.Ð.Ð.r)r.r!rzÚitemsr
rÚEnumTypeÚsplitÚ	enumerateÚenumeratorsr©r)rmr]r“r^rBrdÚenumnamer²r§r—rªrŸÚ	accessorsÚaccessors_versionr•r–s        €€€€€€€€rÚupdate_accessorsz+_make_ffi_library.<locals>.update_accessorsosMø€Ø˜QÔ 3Ô#4Ð4Ð4ØˆFàœKÔ5×;Ò;Ñ=Ô=ð	8ð	8‰LˆC‘"aݘb¥%¤.Ñ1Ô1ð

8ØŸIšI c¨1Ñ-Ô-‘	Tؘ*Ò$Ð$Ø&7I˜d‘OOؘJÒ&Ð&Ø&7I˜d‘OOؘJÒ&Ð&Ø&7I˜d‘Oøå#,¨R¬^Ñ#<Ô#<ð8ð8‘KAxØ/1°QðBðBðBðBðBðBð+8I˜hÑ'Ð'ð	8ð
”KÔ.ð	>ð	>ˆDØ× Ò  Ð'<Ñ=Ô=Ð=Ð=Ø"Ô0И!ÑÐÐrcóì•—‰j5|‰jvs	|‰jvr	ddd¦«dS|‰vr‰¦«|‰vrt|¦«‚‰||¦«ddd¦«dS#1swxYwYdSr	)rr%ÚAttributeError)rBržr¹r•r–r»s €€€€€rÚ
make_accessorz(_make_ffi_library.<locals>.make_accessor†sþø€Ø
ŒYð	"ð	"ؐwÔ'Ð'Ð'¨4°:Ô3FÐ+FÐ+FØð	"ð	"ð	"ñ	"ô	"ð	"ð	"ð	"ð˜9Ð$Ð$Ø Ð Ñ"Ô"Ð"ؘyÐ(Ð(Ý(¨Ñ.Ô.Ð.ØˆIdŒO˜DÑ!Ô!Ð!ð	"ð	"ð	"ñ	"ô	"ð	"ð	"ð	"ð	"ð	"ð	"ð	"øøøð	"ð	"ð	"ð	"ð	"ð	"s‰A)ª2A)Á)A-Á0A-cóL•—eZdZˆfd„Zˆfd„Zˆˆˆfd„Zˆˆˆˆfd„Zˆfd„ZdS)ú%_make_ffi_library.<locals>.FFILibrarycó:•—‰|¦«t||¦«Sr	)r5)r@rBr¾s  €rÚ__getattr__z1_make_ffi_library.<locals>.FFILibrary.__getattr__‘s#ø€ØˆM˜$ÑÔÐݘ4 Ñ&Ô&Ð&rc󺕗	t|j|¦«}| ||¦«dS#t$r ‰|¦«t	|||¦«YdSwxYwr	)r5Ú	__class__Ú__set__r½r4)r@rBrrƒr¾s    €rÚ__setattr__z1_make_ffi_library.<locals>.FFILibrary.__setattr__”sø€ð
.Ý" 4¤>°4Ñ8Ô8ð
× Ò   uÑ-Ô-Ð-Ð-Ð-øõ	"ð
+ð
+ð
+ؐ
˜dÑ#Ô#Ð#ݘ˜d EÑ*Ô*Ð*Ð*Ð*Ð*ð
+øøøsƒ0°&AÁAcó‚•—‰j5‰¦«‰ ¦«cddd¦«S#1swxYwYdSr	)rÚkeys)r@r¹r•r»s €€€rÚ__dir__z-_make_ffi_library.<locals>.FFILibrary.__dir__œs‹ø€Ø”ð
(ð
(Ø Ð Ñ"Ô"Ð"Ø —~’~Ñ'Ô'ð
(ð
(ð
(ð
(ñ
(ô
(ð
(ð
(ð
(ð
(ð
(ð
(øøøð
(ð
(ð
(ð
(ð
(ð
(s‰4´8»8cóè•—|‰jvr
‰j|S|‰jvr‰|¦«S‰|¦«|‰jvr
‰j|S|‰jvr‰|¦«Std|›d¦«‚)Nz7cffi library has no function or global variable named 'ú')r%r½)r@rBržr¤r–r¾s  €€€€rrØz3_make_ffi_library.<locals>.FFILibrary.__addressof__ s«ø€ØwÔ'Ð'Ð'ØÔ'¨Ô-Ð-ؐzÔ*Ð*Ð*Ø$} TÑ*Ô*Ð*ØˆM˜$ÑÔÐؐwÔ'Ð'Ð'ØÔ'¨Ô-Ð-ؐzÔ*Ð*Ð*Ø$} TÑ*Ô*Ð*Ý .ØAEÀÀð"HñIôIð
Ircób•—‰ ¦«|j ¦«dSr	)Ú	close_libr%rW)r@r”s €rrfz4_make_ffi_library.<locals>.FFILibrary.__cffi_close__¬s/ø€Ø× Ò Ñ"Ô"Ð"ØŒM×ÒÑ!Ô!Ð!Ð!Ð!rN)rçr€rrÂrÆrÉrØrf)ržr¹r¤r”r•r–r¾r»s€€€€€€€€rržrÀs³ø€€€€€ð	'ð	'ð	'ð	'ð	'ð	.ð	.ð	.ð	.ð	.ð	(ð	(ð	(ð	(ð	(ð	(ð	(ð	Ið	Ið	Ið	Ið	Ið	Ið	Ið	Ið	"ð	"ð	"ð	"ð	"ð	"ð	"rržzutf-8z
FFILibrary_%s)
rrrTr
rQrPrSrçÚUnicodeErrorr%)r•Úlibnamer`rAržr§r—rªrŸr¹rºr£r¤r”r–r¾r»s`   @@@@@@@@@@@@@rr_r_@s(øøøøøøøøøøøøøø€ØŒl€GÝ" 7¨G°UÑ;Ô;€Jð'ð'ð'ð'ð'ð'ð'ðEðEðEðEðEðEðEð
(ð
(ð
(ð
(ð
(ð
(ð
(ðPðPðPðBðBðBðBðBðBð€IØ˜ÐØ€Nð1ð1ð1ð1ð1ð1ð1ð1ð1ð1ð1ð1ð."ð"ð"ð"ð"ð"ð"ð"ð"ð"ð"ð"ð"ð"ð"ð"ð"ð"ð"ð"ð"ð"ð"•Vñ"ô"ð"õ@':Ñ&Ô&ðð	ݘg¥sÑ+Ô+ð
2Ø!Ÿ.š.¨Ñ1Ô1Ø"1°GÑ";ˆJÔÐøÝð	ð	ð	ØˆDð	øøøàˆj‰lŒl€GؐGÔ$Ð$Ð$sÂ4CÃ
CÃCcó—ddl}	|j|j}|j}|j}||}|j5| |¦«cddd¦«S#1swxYwYdS#tttf$rYdSwxYw)Nr)
rÚmodulesr€Ú_cffi_original_ffiÚ_cffi_types_of_builtin_funcsrr6rsr½rR)r]rÚmoduler•Útypes_of_builtin_funcsr]s      rrzrzºså€ð€J€J€Jð	-Ø”˜Tœ_Ô-ˆØÔ'ˆØ!'Ô!DÐØ
# DÔ
)ˆðŒYð	-ð	-Ø×(Ò(¨Ñ,Ô,ð	-ð	-ð	-ð	-ñ	-ô	-ð	-ð	-ð	-ð	-ð	-ð	-øøøð	-ð	-ð	-ð	-ð	-ð	-øõ
•n¥iÐ0ððð؈tˆtðøøøs"†(A$µAÁAÁAÁ$A?Á>A?)rr#Úlockrr­rrrrªÚ	NameErrorÚcollectionsrrQrPrTrŸrrr_rzrúrrú<module>rÙsCðØÐÐÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐð1Ø€H€HøØð1ð1ð1à$Ð$Ð$Ð$Ð$Ð$Ø0Ð0€H€H€Hð1øøøð
Ø€J€JøØðððà€J€J€Jðøøøðˆv‰xŒx€ðL+ðL+ðL+ðL+ðL+ˆ&ñL+ôL+ðL+ð^-ð-ð-ð4x%ðx%ðx%ðt
-ð
-ð
-ð
-ð
-sœŸ0¯0´7·AÁA