Files
Trancribe/venv/lib/python3.12/site-packages/cffi/__pycache__/api.cpython-312.pyc

333 lines
49 KiB
Plaintext
Raw Normal View History

<EFBFBD>
%n!j<><6A><00><00><><00>ddlZddlZddlmZddlmZddlmZ e e e<0E>ZGd<08>d e<0E>Zd
<EFBFBD>Zd <0B>Zd <0C>Zy#e $r ddl
m Z d<07>ZY<00>/wxYw#e $re Z Y<00>9wxYw) <0A>N<>)<01> allocate_lock)<01> CDefError)<01>model)<01>Callablec<00>"<00>t|t<00>S<00>N)<02>
isinstancer)<01>xs <20>J/home/jean/linux-transcriber/venv/lib/python3.12/site-packages/cffi/api.py<70><lambda>r s <00><00><1A>A<EFBFBD>x<EFBFBD>0<><00>c<00>p<00>eZdZdZd4d<03>Zd5d<05>Zd6d<06>Zd7d<07>Zd8d<08>Zd <09>Z d
<EFBFBD>Z
d7d <0B>Z d <0C>Z d <0A>Z d<0E>Zd<0F>Zd4d<10>Z d9d<11>Zd<12>Zd:d<13>Zd<14>Zedfd<15>Zd<16>Zd;d<17>Zd<d<18>Zd8d<19>Zd<1A>Zd=d<1B>Zd<1C>Zd<1D>Zeeedd<1E>Z d:d<1F>Z!d <20>Z"d!<21>Z#d"<22>Z$d#<23>Z%d$<24>Z&d%<25>Z'd&<26>Z(d'<27>Z)d(<28>Z*d)<29>Z+d>d*<2A>Z, d>d+<2B>Z-d?d,<2C>Z.d-<2D>Z/d.<2E>Z0d@d/<2F>Z1d0<64>Z2d1<64>Z3d2<64>Z4d3<64>Z5y)A<>FFIa<49>
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 <00><><00>|<01>xddl}ddlm}|j|k7r_t|d<05>r0t d|<02>dt
<00>d|j<00>d|j
<00>d <09> <09><00>t d|<02>dt
<00>d
|j<00>d <09><07><00>dd lm}||_t<00>|_ |j<00>|_ i|_ tjd <0C>j|_tjd <0A>j|_g|_g|_g|_g|_d|_i|_d|_d|_t5j6|<01>|_t|d<0E>r|j;|<00>t=|j<00>D]+}|j?d<0F>s<01>tA||tC||<04><00><00>-|j5|jEt4jF<00>|_$|jEt4jJ<00>|_&ddd<01>tO|tj<00>r[ttPd<10>s<>|jS|jHd<02>tP_*|jW<00>\tP_,tP_-n>|jS|jHd<02>|_*|jW<00>\|_,|_-|j\|_.y#1swY<00><>xYw)z{Create an FFI instance. The 'backend' argument is used to
select a non-default backend, mostly for tests.
Nrr)<01> __version__<5F>__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 )<01>cparser<65> parsed_types<65> new_types<65>set_ffi<66>RTLD_<44>NULL)/<2F> _cffi_backend<6E>r<00>hasattr<74> Exceptionrr<00>_backendr<00>_lock<63>Parser<65>_parser<65>_cached_btypes<65>types<65>
ModuleType<EFBFBD>__dict__<5F> _parsed_types<65>
_new_types<EFBFBD>_function_caches<65>
_libraries<EFBFBD> _cdefsources<65>_included_ffis<69>_windows_unicode<64>_init_once_cache<68> _cdef_version<6F>
_embeddingr<00> get_typecache<68>
_typecacher<00>list<73>
startswith<EFBFBD>setattr<74>getattr<74>_get_cached_btype<70>
voidp_type<EFBFBD>BVoidP<64>char_array_type<70>BCharAr
r<00>castr<00>
_get_types<EFBFBD>CData<74>CType<70>buffer)<05>self<6C>backendrr<00>names r <00>__init__z FFI.__init__)sG<00><00> <13>?<3F> ,<2C> %<25><16>"<22>"<22>k<EFBFBD>1<><1A>7<EFBFBD>J<EFBFBD>/<2F>#<23>#<23>X<EFBFBD><1F>+<2B>+<2B>W<EFBFBD>-=<3D>-=<3D>%?<3F>@<01>@<01>
$<24>#<23>X<EFBFBD>w<EFBFBD>/B<>/B<>%D<01>E<01>E<01> <1E><1F><04> <0A>"<22>_<EFBFBD><04>
<EFBFBD><1E>~<7E>~<7E>'<27><04> <0C> <20><04><1B>"<22>-<2D>-<2D>n<EFBFBD>=<3D>F<>F<><04><1A><1F>*<2A>*<2A>;<3B>7<>@<40>@<40><04><0F> "<22><04><1D><1C><04><0F><1E><04><19> <20><04><1B> $<24><04><1D> "<22><04><1D>!<21><04><1A><1E><04><0F><1F>-<2D>-<2D>g<EFBFBD>6<><04><0F> <12>7<EFBFBD>I<EFBFBD> &<26> <13>O<EFBFBD>O<EFBFBD>D<EFBFBD> !<21><18><17>)<29>)<29>*<2A> <<3C>D<EFBFBD><13><EFBFBD><EFBFBD>w<EFBFBD>'<27><17><04>d<EFBFBD>G<EFBFBD>G<EFBFBD>T<EFBFBD>$:<3A>;<3B> <<3C><12>Z<EFBFBD>Z<EFBFBD> H<01><1E>0<>0<><15>1A<31>1A<31>B<>D<EFBFBD>K<EFBFBD><1E>0<>0<><15>1F<31>1F<31>G<>D<EFBFBD>K<EFBFBD> H<01> <16>g<EFBFBD>u<EFBFBD>/<2F>/<2F> 0<><1A>3<EFBFBD><06>'<27><1F>9<EFBFBD>9<EFBFBD>T<EFBFBD>[<5B>[<5B>!<21>4<><03><08>'.<2E>'9<>'9<>';<3B>$<24><03> <09>3<EFBFBD>9<EFBFBD><1D> <09> <09>$<24>+<2B>+<2B>q<EFBFBD>1<>D<EFBFBD>I<EFBFBD>%,<2C>%7<>%7<>%9<> "<22>D<EFBFBD>J<EFBFBD><04>
<EFBFBD><1D>n<EFBFBD>n<EFBFBD><04> <0B> H<01> H<01>s <00>9A K<03>KFc<00>.<00>|j||||<04><01>y)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).
)<03>override<64>packed<65>packN)<01>_cdef)r@<00>csourcerErFrGs r <00>cdefzFFI.cdefes<00><00> <0A>
<EFBFBD>
<EFBFBD>7<EFBFBD>X<EFBFBD>f<EFBFBD>4<EFBFBD>
<EFBFBD>Hrc<00>V<00>|j|||d<01><02>|j<00>d|_yy)NT)rFrG<00> dllexportr)rHr/)r@rIrFrGs r <00> embedding_apizFFI.embedding_apirs,<00><00> <0C>
<EFBFBD>
<EFBFBD>7<EFBFBD>6<EFBFBD><04><04>
<EFBFBD>E<> <0F>?<3F>?<3F> "<22> <20>D<EFBFBD>O<EFBFBD> #rc <00><00>t|t<00>s,t|t<00>s td<01><00>|j d<02>}|j
5t <00>|_|jj|fd|i|<03><01>|jj|<01>|r!|jD]}|j<00><00>|jj}|r*g|j_|D]}|j||<05><00>ddd<00>y#1swYyxYw)Nz cdef() argument must be a string<6E>asciirE)r
<00>str<74>
basestring<EFBFBD> TypeError<6F>encoder<00>objectr.r!<00>parser*<00>appendr(<00>clear<61> _recomplete<74>finish_backend_type)r@rIrE<00>options<6E>cache<68>
finishlist<EFBFBD>tps r rHz FFI._cdefws<><00><00><19>'<27>3<EFBFBD>'<27><1D>g<EFBFBD>z<EFBFBD>2<><1F> B<>C<>C<><1D>n<EFBFBD>n<EFBFBD>W<EFBFBD>-<2D>G<EFBFBD> <11>Z<EFBFBD>Z<EFBFBD> =<3D>!'<27><18>D<EFBFBD> <1E> <1E>D<EFBFBD>L<EFBFBD>L<EFBFBD> <1E> <1E>w<EFBFBD> E<><18> E<>W<EFBFBD> E<> <10> <1D> <1D> $<24> $<24>W<EFBFBD> -<2D><17>!<21>2<>2<>"<22>E<EFBFBD><19>K<EFBFBD>K<EFBFBD>M<EFBFBD>"<22><1D><1C><1C>1<>1<>J<EFBFBD><19>+-<2D><04> <0C> <0C>(<28>$<24>=<3D>B<EFBFBD><16>*<2A>*<2A>4<EFBFBD><1A><<3C>=<3D> =<3D> =<3D> =<3D>s <00> B/D<03>D
c<00><<00>t|t<00>s#|<01>!t||j<00>s td<02><00>|j5t |||<02>\}}|j j|<04>|jj|<03>ddd<01>|S#1swYSxYw)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<00>_make_ffi_libraryr(rVr))r@rB<00>flags<67>lib<69>function_caches r <00>dlopenz
FFI.dlopen<65>s<><00><00><1B>4<EFBFBD><1A>,<2C><14> <0C><1A>4<EFBFBD><14><1A><1A>,<2C><1B>C<01>D<01> D<01> <11>Z<EFBFBD>Z<EFBFBD> (<28>"3<>D<EFBFBD>$<24><05>"F<> <1F>C<EFBFBD><1E> <10> !<21> !<21> (<28> (<28><1E> 8<> <10>O<EFBFBD>O<EFBFBD> "<22> "<22>3<EFBFBD> '<27> (<28><13>
<EFBFBD>  (<28><13>
<EFBFBD>s <00>AB<03>Bc<00>8<00>t|<01>j|<01>y)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)<02>type<70>__cffi_close__)r@ras r <00>dlclosez FFI.dlclose<73>s<00><00>
<0A>S<EFBFBD> <09> <20> <20><13>%rc<00>@<00>|}||jvr|j|St|t<00>s|jd<01>}|jj |<01>}|j }|r|j<00>}|j|<03>}||f}||j|<|S)NrO) r&r
rPrSr!<00>
parse_type<EFBFBD>is_raw_function<6F>as_function_pointerr6)r@<00>cdecl<63>keyre<00>really_a_function_type<70>btype<70>results r <00>_typeof_lockedzFFI._typeof_locked<65>s<><00><00><13><03> <0E>$<24>$<24>$<24> $<24><17>%<25>%<25>c<EFBFBD>*<2A> *<2A><19>%<25><13>%<25><19>L<EFBFBD>L<EFBFBD><17>)<29>E<EFBFBD><13>|<7C>|<7C>&<26>&<26>u<EFBFBD>-<2D><04>!%<25>!5<>!5<><1E> !<21><17>+<2B>+<2B>-<2D>D<EFBFBD><14>&<26>&<26>t<EFBFBD>,<2C><05><16>.<2E>.<2E><06>"(<28><04><1A><1A>3<EFBFBD><1F><15> rc<00><><00> |j|}\}}|r|st d|<01>d<02><03><00>|S#t$r6|j5|j|<01>}ddd<00>n #1swYnxYwY<00>XwxYw)Nz the type z3 is a function type, not a pointer-to-function type)r&<00>KeyErrorrrqr)r@rl<00>consider_function_as_funcptrrprorns r <00>_typeofz FFI._typeof<6F>s<><00><00> 4<><19>'<27>'<27><05>.<2E>F<EFBFBD>
)/<2F>%<25><05>%<25> !<21>*F<><1B>:?<3F>B<01>C<01> C<01><14> <0C><><18> 4<><15><1A><1A> 4<><1D>,<2C>,<2C>U<EFBFBD>3<><06> 4<> 4<> 4<><34> 4<>s'<00>+<00>A*<03>A<05> A*<03>A$ <09> A*<03>)A*c<00><><00>t|t<00>r|j|<01>St||j<00>r|jj |<01>St|t j<00>rt|<01>}|<02>|St|t j<00>r=t|d<02>r1|j5|j|j<00>cddd<01>Stt|<01><00><00>#1swY<00>xYw)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<00>typeofr#<00>BuiltinFunctionType<70>_builtin_function_type<70> FunctionTyperrr6rwrRre)r@rl<00>ress r rxz
FFI.typeof<6F>s<><00><00>
<16>e<EFBFBD>Z<EFBFBD> (<28><17><<3C><<3C><05>&<26> &<26> <15>e<EFBFBD>T<EFBFBD>Z<EFBFBD>Z<EFBFBD> (<28><17>=<3D>=<3D>'<27>'<27><05>.<2E> .<2E> <15>e<EFBFBD>U<EFBFBD>6<>6<> 7<>(<28><15>/<2F>C<EFBFBD><12><EFBFBD><1A>
<EFBFBD> <16>u<EFBFBD>e<EFBFBD>0<>0<> 1<><1B>E<EFBFBD>#4<>5<><15><1A><1A> E<01><1B>-<2D>-<2D>e<EFBFBD>.C<>.C<>D<> E<01> E<01><17><04>U<EFBFBD> <0B>$<24>$<24> E<01> E<01>s <00>.C'<03>'C0c<00><><00>t|t<00>r,|j|<01>}|jj |<02>S|jj |<01>S)zvReturn the size in bytes of the argument. It can be a
string naming a C type, or a 'cdata' instance.
)r
rQrur<00>sizeof)r@rl<00>BTypes r r~z
FFI.sizeof<6F>sF<00><00> <16>e<EFBFBD>Z<EFBFBD> (<28><18>L<EFBFBD>L<EFBFBD><15>'<27>E<EFBFBD><17>=<3D>=<3D>'<27>'<27><05>.<2E> .<2E><17>=<3D>=<3D>'<27>'<27><05>.<2E> .rc<00>z<00>t|t<00>r|j|<01>}|jj |<01>S)z\Return the natural alignment size in bytes of the C type
given as a string.
)r
rQrur<00>alignof)r@rls r r<>z FFI.alignof<6F>s1<00><00> <16>e<EFBFBD>Z<EFBFBD> (<28><18>L<EFBFBD>L<EFBFBD><15>'<27>E<EFBFBD><13>}<7D>}<7D>$<24>$<24>U<EFBFBD>+<2B>+rc<00>p<00>t|t<00>r|j|<01>}|j|g|<02><01><06>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<00> _typeoffsetof)r@rl<00>fields_or_indexess r <00>offsetofz FFI.offsetof<6F>s:<00><00> <16>e<EFBFBD>Z<EFBFBD> (<28><18>L<EFBFBD>L<EFBFBD><15>'<27>E<EFBFBD>!<21>t<EFBFBD>!<21>!<21>%<25><<3C>*;<3B><<3C>Q<EFBFBD>?<3F>?rc<00>|<00>t|t<00>r|j|<01>}|jj ||<02>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<00>newp)r@rl<00>inits r <00>newzFFI.new<65>s3<00><00>. <16>e<EFBFBD>Z<EFBFBD> (<28><18>L<EFBFBD>L<EFBFBD><15>'<27>E<EFBFBD><13>}<7D>}<7D>!<21>!<21>%<25><14>.<2E>.rc<00>r<00><00><06><00>jj<00>}|j|||<03><00>d<02><06>fd<01> }|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.
c<00>X<00><02>t|t<00>r<11>j|<00>}<00>||<01>Sr <00>r
rQru)rlr<><00> allocatorr@s <20><>r <00>allocatez#FFI.new_allocator.<locals>.allocates(<00><><00><19>%<25><1A>,<2C><1C> <0C> <0C>U<EFBFBD>+<2B><05><1C>U<EFBFBD>D<EFBFBD>)<29> )rr )rr<00> new_allocator)r@<00>alloc<6F>free<65>should_clear_after_alloc<6F> compiled_ffir<69>r<>s` @r r<>zFFI.new_allocator s;<00><><00><1C>}<7D>}<7D>(<28>(<28>*<2A> <0C> <20>.<2E>.<2E>u<EFBFBD>d<EFBFBD>/G<>I<01> <09> *<2A><18>rc<00>|<00>t|t<00>r|j|<01>}|jj ||<02>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<00>sources r r;zFFI.cast%s3<00><00>
<16>e<EFBFBD>Z<EFBFBD> (<28><18>L<EFBFBD>L<EFBFBD><15>'<27>E<EFBFBD><13>}<7D>}<7D>!<21>!<21>%<25><16>0<>0rc<00>:<00>|jj||<02>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<00>string)r@<00>cdata<74>maxlens r r<>z
FFI.string.s<00><00> <14>}<7D>}<7D>#<23>#<23>E<EFBFBD>6<EFBFBD>2<>2rc<00>:<00>|jj||<02>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<00>unpack)r@r<><00>lengths r r<>z
FFI.unpack@s<00><00><14>}<7D>}<7D>#<23>#<23>E<EFBFBD>6<EFBFBD>2<>2rc<00><><00>|tur|j|}}n!t|t<00>r|j |<01>}|j
j |||<03>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[]'.
)<07> _unspecifiedr:r
rQrur<00> from_buffer)r@rl<00> python_buffer<65>require_writables r r<>zFFI.from_buffer^sO<00><00> <19>L<EFBFBD> (<28>#'<27>;<3B>;<3B><05>=<3D>E<EFBFBD> <17><05>z<EFBFBD> *<2A><18>L<EFBFBD>L<EFBFBD><15>'<27>E<EFBFBD><13>}<7D>}<7D>(<28>(<28><15> <0A>)9<>;<3B> ;rc<00><<00>|jj|||<03>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<00>memmove)r@<00>dest<73>src<72>ns r r<>z FFI.memmoveps<00><00><14>}<7D>}<7D>$<24>$<24>T<EFBFBD>3<EFBFBD><01>2<>2rc<00>x<00><00><01><03><04><00><01><03><04>fd<01>}t<00>t<00>r<13>j<00>d<02><03><00>|<02>|S||<02>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<00>l<00><04>t|<00>s td<01><00><01>jj<00>|<00><02><03>S)Nz.the 'python_callable' argument is not callable)<04>callablerRr<00>callback)<05>python_callablerl<00>error<6F>onerrorr@s <20><><EFBFBD><EFBFBD>r <00>callback_decorator_wrapz-FFI.callback.<locals>.callback_decorator_wrap<61>s=<00><><00><1B>O<EFBFBD>,<2C><1F>!2<>3<>3<><17>=<3D>=<3D>)<29>)<29>%<25><1F>*/<2F><17>:<3A> :rT)rtr<>)r@rlr<>r<>r<>r<>s`` `` r r<>z FFI.callback<63>s=<00><><00> :<3A> <16>e<EFBFBD>Z<EFBFBD> (<28><18>L<EFBFBD>L<EFBFBD><15>T<EFBFBD>L<EFBFBD>J<>E<EFBFBD> <1A> "<22>*<2A> *<2A>*<2A>?<3F>;<3B> ;rc<00>"<00>t|t<00>r|j|<01>}|j<00>}|j d<01>r$d|j
j |d<03>vrd|z}n|r |ddvrd|z}|j
j ||<02>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'.
<20>*z&[<5B>&z(%s)rz[(<28> )r
rQru<00>stripr3r<00>getcname)r@rl<00> replace_withs r <00>getctypez FFI.getctype<70>s<><00><00> <16>e<EFBFBD>Z<EFBFBD> (<28><18>L<EFBFBD>L<EFBFBD><15>'<27>E<EFBFBD>#<23>)<29>)<29>+<2B> <0C> <18> #<23> #<23>C<EFBFBD> (<28><18>D<EFBFBD>M<EFBFBD>M<EFBFBD>2<>2<>5<EFBFBD>#<23>><3E>><3E>!<21>L<EFBFBD>0<>L<EFBFBD> <19>,<2C>q<EFBFBD>/<2F>T<EFBFBD>"9<><1E><1C>-<2D>L<EFBFBD><13>}<7D>}<7D>%<25>%<25>e<EFBFBD>\<5C>:<3A>:rc<00><<00>|jj|||<03>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<00>gcp)r@r<><00>
destructor<EFBFBD>sizes r <00>gczFFI.gc<67>s<00><00><14>}<7D>}<7D> <20> <20><15>
<EFBFBD>D<EFBFBD>9<>9rc<00><><00>|jjd<01>dusJ<00> |j|}|S#t$r1g}|j ||<03>}|D]}|j ||<03><00>Y|SwxYw)NF)r<00>acquirer"rs<00>get_cached_btyperY)r@rerr\s r r6zFFI._get_cached_btype<70>s<><00><00><13>z<EFBFBD>z<EFBFBD>!<21>!<21>%<25>(<28>E<EFBFBD>1<>1<>1<> ;<3B><18>'<27>'<27><04>-<2D>E<EFBFBD> <15> <0C><> <18> ;<3B><1B>J<EFBFBD><18>)<29>)<29>$<24>
<EFBFBD>;<3B>E<EFBFBD>"<22> ;<3B><04><14>(<28>(<28><14>z<EFBFBD>:<3A> ;<3B><14> <0C>  ;<3B>s<00>2<00>6A,<03>+A,c <00><><00>ddlm}m}|jr|j |<03>|xs|<05>}||||fi|<03><01>|_|jj <00>}|j j|<06>|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)<02>Verifier<65>_caller_dir_pycache)<08>verifierr<72>r<>r,<00>_apply_windows_unicode<64> load_libraryr)rV)r@r<><00>tmpdir<69>kwargsr<73>r<>ras r <00>verifyz
FFI.verify<66>sr<00><00> <<3C> <10> <20> <20> <10> '<27> '<27><06> /<2F>
<18>0<>.<2E>0<><06>!<21><14>v<EFBFBD>v<EFBFBD>@<40><16>@<40><04> <0A><12>m<EFBFBD>m<EFBFBD>(<28>(<28>*<2A><03> <0A><0F><0F><1E><1E>s<EFBFBD>#<23><12>
rc<00>6<00>|jj<00>Sr )r<00> get_errno)r@s r <00>
_get_errnozFFI._get_errno<6E>s<00><00><13>}<7D>}<7D>&<26>&<26>(<28>(rc<00>:<00>|jj|<01>yr )r<00> set_errno)r@<00>errnos r <00>
_set_errnozFFI._set_errno<6E>s<00><00> <0C> <0A> <0A><1F><1F><05>&rz(the value of 'errno' from/to the C callsc<00>8<00>|jj|<01>Sr )r<00> getwinerror)r@<00>codes r r<>zFFI.getwinerror<6F>s<00><00><13>}<7D>}<7D>(<28>(<28><14>.<2E>.rc<00>r<00>|j5tj||<01>cddd<00>S#1swYyxYwr )rr<00> pointer_cache)r@<00>ctypes r <00> _pointer_tozFFI._pointer_to<74>s.<00><00> <11>Z<EFBFBD>Z<EFBFBD> 4<><18>&<26>&<26>t<EFBFBD>U<EFBFBD>3<> 4<> 4<> 4<>s<00>-<03>6c<00><><00> |jj|<01>}|r|j |g|<02><01><06>\}}n|jdk(r td<03><00>d}|j|<03>}|jj|||<04>S#t$r7dt|<01>jvrt|<01>j
|g|<02><01><06>cYS<00>wxYw)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.
<20> __addressof__<5F>pointerzaddressof(pointer)r)
rrxrRrer%r<>r<><00>kindr<64><00> rawaddressof)r@r<>r<>r<><00>offset<65>ctypeptrs r <00> addressofz FFI.addressof<6F>s<><00><00>  <12><18>M<EFBFBD>M<EFBFBD>(<28>(<28><15>/<2F>E<EFBFBD>
<1D>.<2E>D<EFBFBD>.<2E>.<2E>u<EFBFBD>I<>7H<37>I<>M<EFBFBD>E<EFBFBD>6<EFBFBD><14>z<EFBFBD>z<EFBFBD>Y<EFBFBD>&<26><1F> 4<>5<>5<><16>F<EFBFBD><17>#<23>#<23>E<EFBFBD>*<2A><08><13>}<7D>}<7D>)<29>)<29>(<28>E<EFBFBD>6<EFBFBD>B<>B<><42><19> <12><1E>$<24>u<EFBFBD>+<2B>"6<>"6<>6<>0<>t<EFBFBD>E<EFBFBD>{<7B>0<>0<><15>K<>9J<39>K<>K<> <11> <12>s<00>B<00><C<03>>Cc<00><><00>|jj||<02>\}}|D]'}|jj||d<01>\}}||z }<04>)||fS)Nr)r<00> typeoffsetof)r@r<><00>field_or_indexr<78>r<><00>field1<64>offset1s r r<>zFFI._typeoffsetof<6F>s]<00><00><1C> <0A> <0A>2<>2<>5<EFBFBD>.<2E>I<> <0A><05>v<EFBFBD>'<27> <1E>F<EFBFBD>!<21>]<5D>]<5D>7<>7<><05>v<EFBFBD>q<EFBFBD>I<>N<EFBFBD>E<EFBFBD>7<EFBFBD> <12>g<EFBFBD> <1D>F<EFBFBD> <1E><15>f<EFBFBD>}<7D>rc<00>><00>t|t<00>s!tdt|<01>j<00><02><02><00>||ur t d<02><00>|j 5|j 5|jj|j<00>|jjd<03>|jj|j<00>|jjd<04>|jj|<01>ddd<05>ddd<05>y#1swY<00>xYw#1swYyxYw)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)<29>[<5B>]N) r
rrRre<00>__name__<5F>
ValueErrorrr!<00>includer*rV<00>extendr+)r@<00>ffi_to_includes r r<>z FFI.includes<><00><00><1A>.<2E>#<23>.<2E><1B> $<24>^<5E> 4<> =<3D> =<3D>@<01>A<01> A<01> <1A>T<EFBFBD> !<21><1C>1<>2<> 2<> <1B> !<21> !<21> ;<3B><15><1A><1A> ;<3B><14> <0C> <0C>$<24>$<24>^<5E>%;<3B>%;<3B><<3C><14>!<21>!<21>(<28>(<28><13>-<2D><14>!<21>!<21>(<28>(<28><1E>)D<>)D<>E<><14>!<21>!<21>(<28>(<28><13>-<2D><14>#<23>#<23>*<2A>*<2A>><3E>:<3A>  ;<3B> ;<3B> ;<3B> ;<3B> ;<3B><> ;<3B> ;<3B>s%<00> D<03>BD<05>6D<03>D <09> D<03>Dc<00>N<00>|jj|j|<01>Sr )r<00> newp_handler8<00>r@r s r <00>
new_handlezFFI.new_handles<00><00><13>}<7D>}<7D>(<28>(<28><14><1B><1B>a<EFBFBD>8<>8rc<00>8<00>|jj|<01>Sr )r<00> from_handler<65>s r r<>zFFI.from_handles<00><00><13>}<7D>}<7D>(<28>(<28><11>+<2B>+rc<00>:<00>|jj|<01>yr )r<00>releaser<65>s r r<>z FFI.release"s<00><00> <0C> <0A> <0A><1D><1D>a<EFBFBD> rc<00><><00>|j<00> td<02><00>t|<01>}|r|jd<03>||_y|jd<04>||_y)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<65>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<><00>boolrJ)r@<00> enabled_flags r <00> set_unicodezFFI.set_unicode%sa<00><00> <10> <20> <20> ,<2C><1C>D<>E<> E<><1B>L<EFBFBD>)<29> <0C> <17> <10>I<EFBFBD>I<EFBFBD>/<2F> 0<>"!-<2D><04><1D> <11>I<EFBFBD>I<EFBFBD>/<2F> 0<>!-<2D><04>rc<00><><00>|jdd<02>}t|ttf<02>s t d<03><00>t|<02>ddgz}||d<y)N<> define_macros<6F>z''define_macros' must be a list or tuple)<02>UNICODE<44>1)<02>_UNICODEr<45>)<05>getr
r2<00>tuplerR)r@<00>kwds<64> defmacross r r<>zFFI._apply_windows_unicodeCsO<00><00><18>H<EFBFBD>H<EFBFBD>_<EFBFBD>b<EFBFBD>1<> <09><19>)<29>d<EFBFBD>E<EFBFBD>]<5D>3<><1B>E<>F<> F<><18><19>O<EFBFBD>'7<>'8<>':<3A>:<3A> <09> )<29><04>_<EFBFBD>rc<00> <00><01><00>fd<01>}dtjv<00>rddl}tjdk(radj tj
<00>}t td<06>r<>|d|jjtjd<08><00>nYtj
d krd
}nd }t td<06>r1|d|jjtjd <0C><00>t td<06>r<>|d|jjtjd d<0E><00>n<>tjdk(rd}t td<10>r2|dz }n, ddl
}d}|jd<14>r||jd<14>z }|tjdz tjdz dzfz}t td<18>r|tjz }|d|<04>tjdk(r
|dd<1B>yy#t$r ddl m
}Y<00><>wxYw)Nc<00>V<00><01><00>j|g<00>}||vr|j|<01>yyr )<02>
setdefaultrV)rm<00>value<75>lstr<74>s <20>r <00>ensurez(FFI._apply_embedding_fix.<locals>.ensureMs,<00><><00><16>/<2F>/<2F>#<23>r<EFBFBD>*<2A>C<EFBFBD><14>C<EFBFBD><1F><13>
<EFBFBD>
<EFBFBD>5<EFBFBD>!<21> r<00>__pypy__r<00>win32zpython{0[0]}{0[1]}<7D>prefix<69> library_dirs<72>libs<62><01>zpypy-czpypy3-c<>bin<69>pypy<70>goalz
python%d%d<>gettotalrefcount<6E>_d)<01> sysconfigz python%d.%d<> DEBUG_EXT<58><00><00><><00>abiflags<67> libraries<65>extra_link_argsz /MANIFEST)<10>sys<79>builtin_module_names<65>os<6F>platform<72>format<61> version_infor<00>path<74>joinr r<00> ImportError<6F>cffi._shimmed_dist_utils<6C>get_config_var<61>
hexversionr)r@r<>rr<00> pythonlib<69>templaters ` r <00>_apply_embedding_fixzFFI._apply_embedding_fixKs<><00><><00> "<22>
<16><13>1<>1<> 1<> <15><12>|<7C>|<7C>w<EFBFBD>&<26>1<>7<>7<><03>8H<38>8H<38>I<> <09><1A>3<EFBFBD><08>)<29><1A>><3E>2<EFBFBD>7<EFBFBD>7<EFBFBD><<3C><<3C><03>
<EFBFBD>
<EFBFBD>F<EFBFBD>+K<>L<>
<17>#<23>#<23>d<EFBFBD>*<2A> (<28>I<EFBFBD> )<29>I<EFBFBD><1A>3<EFBFBD><08>)<29><1A>><3E>2<EFBFBD>7<EFBFBD>7<EFBFBD><<3C><<3C><03>
<EFBFBD>
<EFBFBD>E<EFBFBD>+J<>K<><17>s<EFBFBD>H<EFBFBD>%<25><16>~<7E>r<EFBFBD>w<EFBFBD>w<EFBFBD>|<7C>|<7C>C<EFBFBD>J<EFBFBD>J<EFBFBD><06><06>'O<>P<><12>|<7C>|<7C>w<EFBFBD>&<26>'<27><08><1A>3<EFBFBD> 2<>3<><1C><04>$<24>H<EFBFBD>C<01>$<24>)<29><08><1C>+<2B>+<2B>K<EFBFBD>8<><1C> <09> 8<> 8<><1B> E<>E<>H<EFBFBD>!<21><18>^<5E>^<5E>r<EFBFBD>)<29>C<EFBFBD>N<EFBFBD>N<EFBFBD>b<EFBFBD>,@<40>D<EFBFBD>+H<>I<>J<01>I<EFBFBD><16>s<EFBFBD>J<EFBFBD>'<27><19>S<EFBFBD>\<5C>\<5C>)<29> <09><0E>{<7B>I<EFBFBD>&<26> <0E><<3C><<3C>7<EFBFBD> "<22> <12>$<24>k<EFBFBD> 2<> #<23><>#<23>C<01>B<>C<01>s<00>G;<00>;H <03> H c <00><><00>ddl}t|d<02>r td<03><00>t|t<00>s t d<04><00>|j |vs|jr|j|vr td<05><00>t|<01>|||f|_ y)Nr<00>_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<00>sep<65>altseprPr+)r@<00> module_namer<65><00>source_extensionr<6E>rs r <00>
set_sourcezFFI.set_source}s<><00><00><11> <12>4<EFBFBD>+<2B> ,<2C><1C>.<2E>/<2F> /<2F><19>+<2B>z<EFBFBD>2<><1B><<3C>=<3D> =<3D> <0A>6<EFBFBD>6<EFBFBD>[<5B> <20>R<EFBFBD>Y<EFBFBD>Y<EFBFBD>2<EFBFBD>9<EFBFBD>9<EFBFBD> <0B>3K<33><1C>H<01>I<01> I<01>!$<24>[<5B>!1<>6<EFBFBD>!1<>4<EFBFBD>!9<><04>rc <00><><00>ddlm}t|t<00>s t d<03><00>|j |<02>}|j ||<07>|j|||fi|<05><01>y)Nr)<01> pkgconfigz;the pkgconfig_libs argument must be a list of package names)rr2r
r2rR<00>flags_from_pkgconfig<69> merge_flagsr0)r@r.<00>pkgconfig_libsr<73>r/r<>r2<00>kwds2s r <00>set_source_pkgconfigzFFI.set_source_pkgconfig<69>sY<00><00><1F><19>.<2E>$<24>/<2F><1B>/<2F>0<> 0<><19>.<2E>.<2E>~<7E>><3E><05><11><1D><1D>d<EFBFBD>E<EFBFBD>*<2A><17><04><0F><0F> <0B>V<EFBFBD>-=<3D>F<><14>Frc<00><><00>ddlm}ddlm}t |d<05>s1t |d<06>r|j
j <00>Std<07><00>|j\}}}}|<06> td<08><00>||<01>||||f|||d d
<EFBFBD>|<08><01>\} }
|rd|
r2tjjd | jd<00>d <0C><03>| Stjjd | jd<00>d <0C><03>| S)Nr)<01>mkpathr<00><01> 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<><00>extradirr/<00>call_c_compilerz regenerated: <20>
znot modified: )r$r9<00>
recompilerr;rr<><00> get_extensionr<6E>r+rRr<00>stderr<72>write<74>sources) r@r<><00>verboser9r;r.r<>r/r<><00>ext<78>updateds r <00>distutils_extensionzFFI.distutils_extension<6F>s<><00><00>3<>)<29><16>t<EFBFBD>/<2F>0<><16>t<EFBFBD>Z<EFBFBD>(<28><1B>}<7D>}<7D>2<>2<>4<>4<><1C>6<>7<> 7<>6:<3A>6K<36>6K<36>3<> <0B>V<EFBFBD>-<2D>t<EFBFBD> <11>><3E><1B>&<26>'<27> '<27> <0F>v<EFBFBD><0E> <20><14>{<7B>!'<27>@<01>06<30><16>2B<32>16<31>@<01>;?<3F>@<01> <0C><03>W<EFBFBD> <13><16><13>
<EFBFBD>
<EFBFBD> <20> <20><03> <0B> <0B>A<EFBFBD><0E>!H<>I<><13>
<EFBFBD><14>
<EFBFBD>
<EFBFBD> <20> <20><13><1B><1B>Q<EFBFBD><1E>!I<>J<><12>
rc<00><><00>ddlm}t|d<03>s td<04><00>|j\}}}}|<04> t d<05><00>||||f|ddd<07>|<06><01>y)Nrr:r+<00>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<73><03>c_filer=<00>uses_ffiplatform<72>r?r;rr<>r+rR<00>r@<00>filenamer;r.r<>r/r<>s r <00> emit_c_codezFFI.emit_c_code<64>sn<00><00>)<29><16>t<EFBFBD>/<2F>0<><1C>O<>P<> P<>6:<3A>6K<36>6K<36>3<> <0B>V<EFBFBD>-<2D>t<EFBFBD> <11>><3E><1B>I<01>J<01> J<01><11>$<24> <0B>V<EFBFBD> 2<>!<21>5<EFBFBD>#(<28> 2<>,0<> 2rc<00><><00>ddlm}t|d<03>s td<04><00>|j\}}}}|<04> t d<05><00>||||f|ddd<07>|<06><01>y)Nrr:r+rIz^emit_python_code() is only for dlopen()-style pure Python modules, not for C extension modulesFrJrMrNs r <00>emit_python_codezFFI.emit_python_code<64>so<00><00>)<29><16>t<EFBFBD>/<2F>0<><1C>O<>P<> P<>6:<3A>6K<36>6K<36>3<> <0B>V<EFBFBD>-<2D>t<EFBFBD> <11> <1D><1B>O<01>P<01> P<01><11>$<24> <0B>V<EFBFBD> 2<>!<21>5<EFBFBD>#(<28> 2<>,0<> 2rc <00><><00>ddlm}t|d<03>s td<04><00>|j\}}}} ||||f|||||d<05>| <09><01>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<><00>targetr/<00>compiler_verbose<73>debug)r?r;rr<>r+)
r@r<>rDrTrVr;r.r<>r/r<>s
r <00>compilez FFI.compile<6C>sd<00><00> *<2A><16>t<EFBFBD>/<2F>0<><1C>K<>L<> L<>6:<3A>6K<36>6K<36>3<> <0B>V<EFBFBD>-<2D>t<EFBFBD><18><14>{<7B>F<EFBFBD>H<01>6<EFBFBD> &<26>9I<39>*1<><15>H<01>BF<42>H<01> Hrc<00>N<00> |j|}|dr|dS|d5|j|}|dr|dcddd<00>S|<01>}d|f|j|<ddd<00>|S#t$r)|jj|dt<00>f<02>}Y<00><>wxYw#1swYSxYw)NFrrT)r-rsrr)r@<00>func<6E>tagr rps r <00> init_oncez FFI.init_once<63>s<><00><00>  P<01><14>%<25>%<25>c<EFBFBD>*<2A>A<EFBFBD> <0A>Q<EFBFBD>4<EFBFBD><14>Q<EFBFBD>4<EFBFBD>K<EFBFBD> <0E>q<EFBFBD>T<EFBFBD> 8<><14>%<25>%<25>c<EFBFBD>*<2A>A<EFBFBD><10><11>t<EFBFBD><18><11>t<EFBFBD>  8<> 8<> <1A>V<EFBFBD>F<EFBFBD>*.<2E><06><1E>D<EFBFBD> !<21> !<21>#<23> &<26> 8<><16> <0A><><18> P<01><14>%<25>%<25>0<>0<><13>u<EFBFBD>m<EFBFBD>o<EFBFBD>6N<36>O<>A<EFBFBD> P<01><>  8<><16> <0A>s"<00>A%<00>B<03>B<03>%/B<03>B<03>B$c<00>><00>|jr td<01><00>ddl}|jd|<01>}|r||j <00>d}|j <00>xsdg}|jd|d<00>j <00>}tdt|<04><00>D]A}||}|j<00>s<01>|j|<05>r<01>+|dd}|j|<05>s<01><17>Ct|<05>}|D<00>cgc]
}||ddz<00><02> }}dj|<04>}t|d d
<EFBFBD>||_ycc}w) Nz-embedding_init_code() can only be called oncerz\s*\nrz\s*r<00><><EFBFBD><EFBFBD><EFBFBD>r><00> cffi_init<69>exec) r/r<><00>re<72>match<63>end<6E>
splitlines<EFBFBD>group<75>range<67>len<65>rstripr3r"rW)r@<00>pysourcer`ra<00>linesr <00>i<>lines r <00>embedding_init_codezFFI.embedding_init_code<64>s<00><00> <0F>?<3F>?<3F><1C>L<>M<> M<>
<12><12><08><08><18>8<EFBFBD>,<2C><05> <10><1F><05> <09> <09> <0B> <0C>-<2D>H<EFBFBD><18>#<23>#<23>%<25>-<2D>"<22><14><05><13><18><18>&<26>%<25><01>(<28>+<2B>1<>1<>3<><06><16>q<EFBFBD>#<23>e<EFBFBD>*<2A>%<25> )<29>A<EFBFBD><18><11>8<EFBFBD>D<EFBFBD><13>{<7B>{<7B>}<7D><1E>/<2F>/<2F>&<26>1<>#<23>C<EFBFBD>R<EFBFBD>[<5B>F<EFBFBD><1F>/<2F>/<2F>&<26>1<> )<29>
<10><06>K<EFBFBD><01>+0<>1<>4<EFBFBD><14>a<EFBFBD>b<EFBFBD><18>$<24><1D>1<><05>1<><15>7<EFBFBD>7<EFBFBD>5<EFBFBD>><3E><08><0F><08>+<2B>v<EFBFBD>.<2E>"<22><04><0F><> 2s<00>#Dc<00><00>td<01><00>)Nz:ffi.def_extern() is only available on API-mode FFI objects)r<>)r@<00>argsr<73>s r <00>
def_externzFFI.def_extern s<00><00><18>#<23>$<24> $rc<00><><00>g}g}g}|jjD]t}|jd<01>r|j|dd<00><00>)|jd<04>r|j|dd<00><00>O|jd<06>s<01>a|j|dd<00><00>v|j <00>|j <00>|j <00>|||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 <20>Nzstruct <20>zunion <20>)r!<00> _declarationsr3rV<00>sort)r@<00>typedefs<66>structs<74>unionsrms r <00>
list_typeszFFI.list_typess<><00><00>
<16><08><14><07><13><06><17><<3C><<3C>-<2D>-<2D> '<27>C<EFBFBD><12>~<7E>~<7E>j<EFBFBD>)<29><18><0F><0F><03>A<EFBFBD>B<EFBFBD><07>(<28><14><1E><1E> <09>*<2A><17><0E><0E>s<EFBFBD>1<EFBFBD>2<EFBFBD>w<EFBFBD>'<27><14><1E><1E><08>)<29><16> <0A> <0A>c<EFBFBD>!<21>"<22>g<EFBFBD>&<26>  '<27> <11> <0A> <0A><0F><0F> <0C> <0C><0E><0E> <0B> <0B> <0A><18>'<27>6<EFBFBD>*<2A>*rr )FFN)FN)F)r)NNT)r])NNN)r)rN)z.c)<02>buildT)<04>.rNN)6r<36><00>
__module__<EFBFBD> __qualname__<5F>__doc__rCrJrMrHrcrgrqrurxr~r<>r<>r<>r<>r;r<>r<>r<>r<>r<>r<>r<>r<>r6r<>r<>r<><00>propertyr<79>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r)r0r7rGrPrRrWr[rlroryr<>rr rrs"<00><00><08>":%<25>x I<01>!<21>
=<3D>$<13>$&<26><16>$ <15>%<25>&/<2F>,<2C> @<01>/<2F>6.2<EFBFBD>/3<><18>01<>3<>$3<><0<<3C>%*<2A>;<3B>$3<> <<3C>*;<3B>
:<3A>
<15><13><)<29>'<27> <14>Z<EFBFBD><1A>T<EFBFBD>?<3F> A<01>E<EFBFBD>/<2F>4<>C<01>*<1D>;<3B>.9<>,<2C>!<21>-<2D><*<2A>03<>d 9<>/3<>G<01><13>4 2<> 2<>H<01>&<16>0#<23>4$<24>+rrc<00><00>ddl}t|t<00>s)tjdk7s|<01>|j ||<02>Sd}d}d|vsd|vs|j |vr |j ||<02>Sddl}|jj|<01>}|<07>O|dk(r1tjdk(rtjdk\r td<07><00>d|<01><02>}|<04>|<04>d |<08><01>}t|<08><00>|j ||<02>S#t$r }|}Yd}~<05><>d}~wwxYw)
Nrr<00>cr{<00>/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,<00>OSError<6F> ctypes.util<69>util<69> find_libraryr ) rArBr`r<00> first_error<6F>e<>ctypesr!<00>msgs r <00>_load_backend_libr<62>&s<00><00> <0A> <15>d<EFBFBD>J<EFBFBD> '<27> <0E><<3C><<3C>7<EFBFBD> "<22>d<EFBFBD>&6<><1A>'<27>'<27><04>e<EFBFBD>4<> 4<><12><04><16>K<EFBFBD>
<EFBFBD>d<EFBFBD>{<7B>c<EFBFBD>T<EFBFBD>k<EFBFBD>R<EFBFBD>V<EFBFBD>V<EFBFBD>t<EFBFBD>^<5E> <1C><1A>'<27>'<27><04>e<EFBFBD>4<> 4<><17> <11>;<3B>;<3B> #<23> #<23>D<EFBFBD> )<29>D<EFBFBD> <0B>|<7C> <0F>3<EFBFBD>;<3B>3<EFBFBD><<3C><<3C>7<EFBFBD>2<>s<EFBFBD>7G<37>7G<37>4<EFBFBD>7O<37><19>D<01>E<01> E<01><>37<33>9<><03> <16> "<22>-8<>#<23>><3E>C<EFBFBD><15>c<EFBFBD>l<EFBFBD><1A> <12> <1F> <1F><04>e<EFBFBD> ,<2C>,<2C><><17> <1C><1B>K<EFBFBD><4B> <1C>s<00>C+<00>+ D<03>4C;<03>;Dc
<00><><00><00><04><05><06><07><08> <09>
<EFBFBD> <0B> <0C> <0A><0E><0F><10><00>j}t|||<02><00> <0A> <0A><00>fd<01><08><06><04> <0A>fd<02><08><08> <0B> <0A>fd<03><08> d<04><00><05><00>fd<05><08>i<00> dg<01>
i<00> <0B><05><06><07><08> <09>
<EFBFBD><00>fd<07><08><10><04> <09><00><0E>fd<08><08>G<00><04> <09> <0C> <0A><00><0E><0F>fd <09>d
t<00><00>t|t<00>r, t|t
<00>s|j d <0B>}d |z<00>_<00><04><00><0E><0E>jfS#t$rY<00> wxYw) Nc<00><><00><03>d|z}<01>jj|\}}<03>j|<02>}<04>j||<00>}|<05>j|<y)Nz function )r!rtr6<00> load_functionr%) rBrmr]<00>_rr<00>
backendlib<EFBFBD>ffi<66>librarys <20><><EFBFBD>r <00>accessor_functionz,_make_ffi_library.<locals>.accessor_functionDsW<00><><00><19>D<EFBFBD> <20><03><13> <0B> <0B>)<29>)<29>#<23>.<2E><05><02>A<EFBFBD><13>%<25>%<25>b<EFBFBD>)<29><05><1A>(<28>(<28><15><04>5<><05>!&<26><07><18><18><14>rc
<00><><00><03><00><04><05><06>d<01>z}<01> jj|\}}<03> j|<02><00><04>j<00><05>j<00>t <00><07>t <00><04><00>fd<02><08><04><00>fd<03><08><00>y)N<> variable c<00><00><03><00><03><01><02>Sr r<>)r@rrB<00> read_variables <20><><EFBFBD>r r z>_make_ffi_library.<locals>.accessor_variable.<locals>.<lambda>Rs<00><><00><1D>u<EFBFBD>d<EFBFBD>3<>rc<00><00><03><00><04><02>|<01>Sr r<>)r@rrrB<00>write_variables <20><><EFBFBD>r r z>_make_ffi_library.<locals>.accessor_variable.<locals>.<lambda>Ss<00><><00><0E>u<EFBFBD>d<EFBFBD>E<EFBFBD> B<>r)r!rtr6r<>r<>r4r)
rBrmr]r<>rr<>r<><00>
FFILibraryr<EFBFBD>r<>s
` @@@<40><><EFBFBD>r <00>accessor_variablez,_make_ffi_library.<locals>.accessor_variableKsf<00><><00><19>D<EFBFBD> <20><03><13> <0B> <0B>)<29>)<29>#<23>.<2E><05><02>A<EFBFBD><13>%<25>%<25>b<EFBFBD>)<29><05>"<22>0<>0<> <0A>#<23>2<>2<><0E><0F>
<EFBFBD>D<EFBFBD>(<28> 3<> B<>#D<01> Erc<00>`<00><03> <00>|S#t$r<><00>j5|<00>vrnd|z}<01>jj|\}}<03>j |<02>}|j
dk7rt j<00>|<04>}<04>j||<00>}|<05>|<ddd<00>n #1swYnxYw<01>|cYSwxYw)Nr<4E><00>array) rsrr!rtr6r<>rr<>r<>) rBrmr]r<>r<00>p<>addr_variablesr<73>r<>s <20><><EFBFBD>r <00> addressof_varz(_make_ffi_library.<locals>.addressof_varUs<><00><><00> (<28>!<21>$<24>'<27> '<27><><17>
(<28><14><19><19> -<2D><17>~<7E>-<2D>%<25><04>,<2C>C<EFBFBD><1F>K<EFBFBD>K<EFBFBD>5<>5<>c<EFBFBD>:<3A>E<EFBFBD>B<EFBFBD><01><1F>1<>1<>"<22>5<>E<EFBFBD><1C>z<EFBFBD>z<EFBFBD>W<EFBFBD>,<2C> %<25> 3<> 3<>C<EFBFBD><15> ?<3F><05>"<22>0<>0<><15><04>=<3D>A<EFBFBD>+,<2C>N<EFBFBD>4<EFBFBD>(<28> -<2D> -<2D> -<2D><>"<22>$<24>'<27> '<27>
(<28>s'<00><00>B-<03>A3B<05> B-<03>B" <09> B-<03>,B-c<00> <00>td|<00>d<02><03><00>)Nznon-integer constant 'z,' cannot be accessed from a dlopen() library)<01>NotImplementedError)rBs r <00>accessor_constantz,_make_ffi_library.<locals>.accessor_constantds<00><00>!<21>HL<48>#O<01>P<01> Prc<00>R<00><02><00>jj|<00>j|<yr )r!<00>_int_constantsr%)rBr<>r<>s <20><>r <00>accessor_int_constantz0_make_ffi_library.<locals>.accessor_int_constanths"<00><><00>!$<24><1B><1B>!;<3B>!;<3B>D<EFBFBD>!A<><07><18><18><14>rFc<00><><00><08><00> d<00>jury<00>jjj<00>D]<5D>\}\}}t |t
j <00>s7|jdd<03>\}}|dk(r<06> <09> |<<00>C|dk(r<06> <0B> |<<00>N|dk(s<01>T<EFBFBD><08> |<<00>Zt|j<00>D]\}}||f<02>fd<07> }|<07> |<<00><00><><00>jjD]}<04> j|<04>
<EFBFBD><00><00>j<00> d<y)Nrr<>r<00>function<6F>variable<6C>constantc<00>^<00><01>|j<00>|j|<00>j|<yr )<03>check_not_partial<61>
enumvaluesr%)rBr]rjr<>s <20>r <00> accessor_enumzB_make_ffi_library.<locals>.update_accessors.<locals>.accessor_enum~s(<00><><00><1A>,<2C>,<2C>.<2E>13<31><1D><1D>q<EFBFBD>1A<31><07>(<28>(<28><14>.r) r.r!rt<00>itemsr
r<00>EnumType<70>split<69> enumerate<74> enumeratorsr<73>r)rmr]r<>rZrBrj<00>enumnamer<65>r<>r<>r<>r<><00> accessors<72>accessors_versionr<6E>r<>s <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>r <00>update_accessorsz+_make_ffi_library.<locals>.update_accessorsos<00><><00> <1C>Q<EFBFBD> <1F>3<EFBFBD>#4<>#4<> 4<> <12><1F>K<EFBFBD>K<EFBFBD>5<>5<>;<3B>;<3B>=<3D> 8<>L<EFBFBD>C<EFBFBD><17>"<22>a<EFBFBD><1D>b<EFBFBD>%<25>.<2E>.<2E>1<><1F>I<EFBFBD>I<EFBFBD>c<EFBFBD>1<EFBFBD>-<2D> <09><03>T<EFBFBD><16>*<2A>$<24>&7<>I<EFBFBD>d<EFBFBD>O<EFBFBD><18>J<EFBFBD>&<26>&7<>I<EFBFBD>d<EFBFBD>O<EFBFBD><18>J<EFBFBD>&<26>&7<>I<EFBFBD>d<EFBFBD>O<EFBFBD>#,<2C>R<EFBFBD>^<5E>^<5E>#<<3C>8<>K<EFBFBD>A<EFBFBD>x<EFBFBD>/1<>Q<EFBFBD>B<01>+8<>I<EFBFBD>h<EFBFBD>'<27> 8<> 8<><18>K<EFBFBD>K<EFBFBD>.<2E>.<2E> ><3E>D<EFBFBD> <15> <20> <20><14>'<<3C> =<3D> ><3E>"<22>0<>0<><19>!<21>rc<00><><00><05><00>j5|<00>jvs|<00>jvr
ddd<00>y|<00>vr<00><05>|<00>vr t|<00><00><00>||<00>ddd<00>y#1swYyxYwr )rr%<00>AttributeError)rBr<>r<>r<>r<>r<>s <20><><EFBFBD><EFBFBD><EFBFBD>r <00> make_accessorz(_make_ffi_library.<locals>.make_accessor<6F>sx<00><><00> <10>Y<EFBFBD>Y<EFBFBD> "<22><13>w<EFBFBD>'<27>'<27>'<27>4<EFBFBD>:<3A>3F<33>3F<33>+F<><16> "<22> "<22><14>9<EFBFBD>$<24> <20>"<22><17>y<EFBFBD>(<28>(<28><14>.<2E>.<2E> <1B>I<EFBFBD>d<EFBFBD>O<EFBFBD>D<EFBFBD> !<21> "<22> "<22> "<22>s<00>A#<03>%A#<03>#A,c<00>J<00><08>eZdZ<02>fd<01>Z<03>fd<02>Z<04><01><04>fd<03>Z<05><00><02><05>fd<04>Z<06>fd<05>Zy)<07>%_make_ffi_library.<locals>.FFILibraryc<00>,<00><01><00>|<01>t||<01>Sr )r5)r@rBr<>s <20>r <00> __getattr__z1_make_ffi_library.<locals>.FFILibrary.__getattr__<5F>s<00><><00> <19>$<24> <1F><1A>4<EFBFBD><14>&<26> &rc<00><><00><01> t|j|<01>}|j||<02>y#t$r<00>|<01>t |||<02>YywxYwr )r5<00> __class__<5F>__set__r<5F>r4)r@rBrrr<>s <20>r <00> __setattr__z1_make_ffi_library.<locals>.FFILibrary.__setattr__<5F>sO<00><><00> .<2E>"<22>4<EFBFBD>><3E>><3E>4<EFBFBD>8<><08>
<19> <20> <20><14>u<EFBFBD>-<2D><> "<22> +<2B><1D>d<EFBFBD>#<23><17><04>d<EFBFBD>E<EFBFBD>*<2A> +<2B>s<00>,<00>A <03> A c<00>v<00><03><00>j5<00><03><00>j<00>cddd<00>S#1swYyxYwr )r<00>keys)r@r<>r<>r<>s <20><><EFBFBD>r <00>__dir__z-_make_ffi_library.<locals>.FFILibrary.__dir__<5F>s/<00><><00><14><19><19> (<28> <20>"<22> <20>~<7E>~<7E>'<27> (<28> (<28> (<28>s<00>/<03>8c<00><><00><04>|<01>jvr<0F>j|S|<01>jvr<00>|<01>S<00>|<01>|<01>jvr<0F>j|S|<01>jvr<00>|<01>Std|<01>d<02><03><00>)Nz7cffi library has no function or global variable named '<27>')r%r<>)r@rBr<>r<>r<>r<>s <20><><EFBFBD><EFBFBD>r r<>z3_make_ffi_library.<locals>.FFILibrary.__addressof__<5F>s<><00><><00><13>w<EFBFBD>'<27>'<27>'<27><1E>'<27>'<27><04>-<2D>-<2D><13>z<EFBFBD>*<2A>*<2A>*<2A>$<24>T<EFBFBD>*<2A>*<2A> <19>$<24> <1F><13>w<EFBFBD>'<27>'<27>'<27><1E>'<27>'<27><04>-<2D>-<2D><13>z<EFBFBD>*<2A>*<2A>*<2A>$<24>T<EFBFBD>*<2A>*<2A> <20>AE<41>"H<01>I<01> Irc<00>Z<00><01><00>j<00>|jj<00>yr )<03> close_libr%rW)r@r<>s <20>r rfz4_make_ffi_library.<locals>.FFILibrary.__cffi_close__<5F>s<00><><00> <16> <20> <20> "<22> <10>M<EFBFBD>M<EFBFBD> <1F> <1F> !rN)r<>r|r}r<>r<>r<>r<>rf)r<>r<>r<>r<>r<>r<>r<>r<>s<00><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>r r<>r<><00>s<00><><00> '<27> .<2E> (<28> I<01> "rr<>zutf-8z FFILibrary_%s)
rr<>rTr
rQrPrSr<><00> UnicodeErrorr%)r<><00>libnamer`rAr<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>s` @@@@@@@@@@@@@r r_r_@s<><00><><EFBFBD><00><11>l<EFBFBD>l<EFBFBD>G<EFBFBD>"<22>7<EFBFBD>G<EFBFBD>U<EFBFBD>;<3B>J<EFBFBD>'<27>E<01> (<28>P<01>B<01><13>I<EFBFBD><1E><07><15><17>N<EFBFBD>1<>1<>."<22>"<22>"<22>"<22>V<EFBFBD>"<22>@<12>'<27>:<3A>&<26> <11><1D>g<EFBFBD>s<EFBFBD>+<2B>!<21>.<2E>.<2E><17>1<><07>"1<>G<EFBFBD>";<3B>J<EFBFBD> <1F><19>l<EFBFBD>G<EFBFBD> <12>G<EFBFBD>$<24>$<24> $<24>$<24><><1C> <11> <10> <11>s<00> +C <00> C<03>Cc<00><00>ddl} |j|j}|j}|j}||}|j
5|j |<05>cddd<00>S#1swYyxYw#tttf$rYywxYw)Nr)
r<00>modulesr|<00>_cffi_original_ffi<66>_cffi_types_of_builtin_funcsrr6rsr<>rR)rYr<00>moduler<65><00>types_of_builtin_funcsr]s r rzrz<00>s<><00><00><0F> -<2D><14><1B><1B>T<EFBFBD>_<EFBFBD>_<EFBFBD>-<2D><06><14>'<27>'<27><03>!'<27>!D<>!D<><1E> #<23>D<EFBFBD> )<29><02><11>Y<EFBFBD>Y<EFBFBD> -<2D><16>(<28>(<28><12>,<2C> -<2D> -<2D> -<2D><> <15>n<EFBFBD>i<EFBFBD> 0<><14><13><14>s<00>6A/<00>A#<03>#A,<07>/B<03>B)rr#<00>lockrr<>rrrr<><00> NameError<6F> collectionsrrQrPrTr<>rr<>r_rzr<>rr <00><module>r<>sy<00><01><11><1F><1C><13>1<> <0C> <15><0E>
<16>x<EFBFBD> <0C>L +<2B>&<26>L +<2B>^-<2D>4x%<25>t -<2D><>e<11>1<>$<24>0<>H<EFBFBD>1<><31><11><15><14>J<EFBFBD><15>s <00>=<00>A<00>A<03> A<03>A<03>A