tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
Z\¬Qc@sQ
dZddlZddlZdZddlmZmZm    Z    ddlm
Z
ddlm Z ddlmZ ddlmZmZdd    lmZdd
lmZee krÇed ee ƒ‚nejdukréddlmZneZejdkrBejdkrBeejƒdjdƒdƒdkrBeZqBnddlmZmZm Z!m"Z#dd„Z%dd„Z&iZ'd„Z(ejdvkrddlm)Z*ddlm+Z,ejd krÒeZ,niZ-d„Z.e.jr*e(jj/ddƒe._q*n"ejdkr*ddlm0Z*nddlm1Z1m2Z2m3Z3m4Z4m5Z5dd lm6Z6m7Z7dd!lm8Z8dd"„Z9d#e8fd$„ƒYZ:e9e:d%ƒd&e8fd'„ƒYZ;e9e;ƒd(e8fd)„ƒYZ<e9e<ƒd*e8fd+„ƒYZ=e9e=ƒd,e8fd-„ƒYZ>e9e>ƒed.ƒed/ƒkrNe=Z?e>Z@n@d0e8fd1„ƒYZ?e9e?ƒd2e8fd3„ƒYZ@e9e@ƒd4e8fd5„ƒYZAe9eAƒd6e8fd7„ƒYZBe9eBƒd8e8fd9„ƒYZCe1eCƒe1eBƒkreBZCned/ƒed:ƒkr,e=ZDe>ZEn@d;e8fd<„ƒYZDe9eDƒd=e8fd>„ƒYZEe9eEƒd?e8fd@„ƒYZFeFeF_GeF_He9eFƒdAe8fdB„ƒYZIeIeI_GeI_He9eIƒdCe8fdD„ƒYZJeJeJ_GeJ_He9eJƒdEe8fdF„ƒYZKe9eKd%ƒdGe8fdH„ƒYZLeLZMe9eLƒdIe8fdJ„ƒYZNddKlmOZOmPZPmQZQdL„ZRyddMlmSZSWneTk
r§neXejdwkrÇeSdNdOƒn eSdPdQƒdRe8fdS„ƒYZUdTe8fdU„ƒYZVddV„ZWdW„ZXdX„ZYdYeZfdZ„ƒYZ[d[e[fd\„ƒYZ\ejdxkr´d]e[fd^„ƒYZ]dd_lm^Z^m8Z8d`e8fda„ƒYZ_dbe[fdc„ƒYZ`nddeZfde„ƒYZaeae[ƒZbeae\ƒZcejdykr    e\dfdejdƒZen5ejdgkr2e\dhejfd ƒZen e\dƒZeejdzkr·eae]ƒZgeae`ƒZhejd krƒegjijjZjn egjkjjZjddilmlZlmmZmdddj„Znne1e@ƒe1eLƒkrÞe@Zoe?ZpnNe1e>ƒe1eLƒkre>Zoe=Zpn'e1eEƒe1eLƒkr,eEZoeDZpnddklmqZqmrZrmsZsmtZte(eLeLeLeoƒeqƒZue(eLeLe?eoƒerƒZvdl„Zwewe:eLe:e:ƒetƒZxdm„Zyewe:eLe?ƒesƒZzddn„Z{yddolm|Z|WneTk
rün%Xewe:eLe?ƒe|ƒZ}ddp„Z~ejd{krE    dq„Zdr„Z€nddslm‚Z‚mƒZƒeIZ„eFZ…xke;e?e=eDgD]WZ†e1e†ƒdkr›    e†Z‡qz    e1e†ƒdtkr¶    e†Zˆqz    e1e†ƒdkrz    e†Z‰qz    qz    Wxke<e@e>eEgD]WZ†e1e†ƒdkr    
e†ZŠqè    e1e†ƒdtkr$
e†Z‹qè    e1e†ƒdkrè    e†ZŒqè    qè    W[†eRƒdS(|s,create and manipulate C data types in PythoniÿÿÿÿNs1.1.0(tUniont    StructuretArray(t_Pointer(tCFuncPtr(t __version__(t
RTLD_LOCALt RTLD_GLOBAL(t ArgumentError(tcalcsizesVersion number mismatchtnttce(t FormatErrortposixtdarwinit.ii(tFUNCFLAG_CDECLtFUNCFLAG_PYTHONAPItFUNCFLAG_USE_ERRNOtFUNCFLAG_USE_LASTERRORcCst|ttfƒrT|dkr4t|ƒd}nt|}|ƒ}||_|St|ttfƒr€t|}|ƒ}|St    |ƒ‚dS(s¬create_string_buffer(aString) -> character array
    create_string_buffer(anInteger) -> character array
    create_string_buffer(aString, anInteger) -> character array
    iN(
t
isinstancetstrtunicodetNonetlentc_chartvaluetinttlongt    TypeError(tinittsizetbuftypetbuf((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pytcreate_string_buffer4s 
        
    cCs t||ƒS(N(R"(RR((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pytc_bufferFscsÆt‰|jdtƒr%ˆtO‰n|jdtƒrDˆtO‰n|rctd|jƒƒ‚nytˆˆˆfSWnGtk
rÁdt    f‡‡‡fd†ƒY}|tˆˆˆf<|SXdS(sÉCFUNCTYPE(restype, *argtypes,
                 use_errno=False, use_last_error=False) -> function prototype.
 
    restype: the result type
    argtypes: a sequence specifying the argument types
 
    The function prototype can be called in different ways to create a
    callable object:
 
    prototype(integer address) -> foreign function
    prototype(callable) -> create and return a C callable function from callable
    prototype(integer index, method name[, paramflags]) -> foreign function calling a COM method
    prototype((ordinal number, dll object)[, paramflags]) -> foreign function exported by ordinal
    prototype((function name, dll object)[, paramflags]) -> foreign function exported by name
    t    use_errnotuse_last_errors!unexpected keyword argument(s) %st CFunctionTypecseZˆZˆZˆZRS((t__name__t
__module__t
_argtypes_t    _restype_t_flags_((targtypestflagstrestype(sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyR&hsN(
t_FUNCFLAG_CDECLtpoptFalset_FUNCFLAG_USE_ERRNOt_FUNCFLAG_USE_LASTERRORt
ValueErrortkeyst_c_functype_cachetKeyErrort    _CFuncPtr(R.R,tkwR&((R,R-R.sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyt    CFUNCTYPENs   "(t LoadLibrary(tFUNCFLAG_STDCALLcsÆt‰|jdtƒr%ˆtO‰n|jdtƒrDˆtO‰n|rctd|jƒƒ‚nytˆˆˆfSWnGtk
rÁdt    f‡‡‡fd†ƒY}|tˆˆˆf<|SXdS(NR$R%s!unexpected keyword argument(s) %stWinFunctionTypecseZˆZˆZˆZRS((R'R(R)R*R+((R,R-R.(sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyR=ƒs(
t_FUNCFLAG_STDCALLR0R1R2R3R4R5t_win_functype_cacheR7R8(R.R,R9R=((R,R-R.sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyt WINFUNCTYPEws   "R:R@(tdlopen(tsizeoftbyreft    addressoft    alignmenttresize(t    get_errnot    set_errno(t _SimpleCDatacCsmddlm}|dkr(|j}nt|ƒ||ƒ}}||kritd|||fƒ‚ndS(Niÿÿÿÿ(R    s"sizeof(%s) wrong: %d instead of %d(tstructR    Rt_type_RBt SystemError(ttypttypecodeR    tactualtrequired((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyt _check_size“s   t    py_objectcBseZdZd„ZRS(tOcCs=ytt|ƒjƒSWntk
r8dt|ƒjSXdS(Ns
%s(<NULL>)(tsuperRRt__repr__R4ttypeR'(tself((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyRU¡s (R'R(RKRU(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyRRŸstPtc_shortcBseZdZRS(th(R'R(RK(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyRY¨stc_ushortcBseZdZRS(tH(R'R(RK(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyR[¬stc_longcBseZdZRS(tl(R'R(RK(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyR]°stc_ulongcBseZdZRS(tL(R'R(RK(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyR_´stiR^tc_intcBseZdZRS(Ra(R'R(RK(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyRb½stc_uintcBseZdZRS(tI(R'R(RK(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyRcÁstc_floatcBseZdZRS(tf(R'R(RK(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyReÅstc_doublecBseZdZRS(td(R'R(RK(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyRgÉst c_longdoublecBseZdZRS(tg(R'R(RK(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyRiÍstqt
c_longlongcBseZdZRS(Rk(R'R(RK(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyRl×st c_ulonglongcBseZdZRS(tQ(R'R(RK(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyRmÛstc_ubytecBseZdZRS(tB(R'R(RK(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyRoâstc_bytecBseZdZRS(tb(R'R(RK(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyRqésRcBseZdZRS(tc(R'R(RK(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyRîstc_char_pcBs2eZdZejdkr'd„Zn    d„ZRS(tzR
cCsLtjj|dƒs,d|jj|jfSd|jjt|tƒjfS(Niÿÿÿÿs%s(%r)s%s(%s)(twindlltkernel32tIsBadStringPtrAt    __class__R'Rtcasttc_void_p(RW((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyRUöscCs d|jjt|tƒjfS(Ns%s(%s)(RyR'RzR{R(RW((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyRUûs(R'R(RKt_ostnameRU(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyRtós R{cBseZdZRS(RX(R'R(RK(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyR{ÿstc_boolcBseZdZRS(t?(R'R(RK(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyR~s(tPOINTERtpointert_pointer_type_cachecCsutjƒtjƒtjdkr0tjƒntjtt    ƒ_t
jtt ƒ_t td<ttƒd„ƒdS(NR
R cSsdS(N(R(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyt<lambda>s(sntR (R‚tclearR6R|R}R?t    c_wchar_pt
from_paramR€tc_wcharRtRR{RR:Rb(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyt _reset_cache    s
 
 
(tset_conversion_modetmbcstignoretasciitstrictR…cBseZdZRS(tZ(R'R(RK(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyR…#sR‡cBseZdZRS(tu(R'R(RK(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyR‡&scCst|ttfƒrT|dkr4t|ƒd}nt|}|ƒ}||_|St|ttfƒr€t|}|ƒ}|St    |ƒ‚dS(s»create_unicode_buffer(aString) -> character array
        create_unicode_buffer(anInteger) -> character array
        create_unicode_buffer(aString, anInteger) -> character array
        iN(
RRRRRR‡RRRR(RRR R!((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pytcreate_unicode_buffer)s 
        
    cCsptj|dƒdk    r'tdƒ‚nt|ƒtkrHtdƒ‚n|j|ƒ|t|<tt|ƒ=dS(Ns%This type already exists in the cachesWhat's this???(R‚tgetRt RuntimeErrortidtset_type(Rtcls((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pytSetPointerType<s 
cCs||S(N((RMR((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pytARRAYFstCDLLcBsJeZdZeZeZede    e    d„Z
d„Z d„Z d„Z RS(sÆAn instance of this class represents a loaded dll/shared
    library, exporting functions using the standard C calling
    convention (named 'cdecl' on Windows).
 
    The exported functions can be accessed as attributes, or by
    indexing with the function name.  Examples:
 
    <obj>.qsort -> callable object
    <obj>['qsort'] -> callable object
 
    Calling the functions releases the Python GIL during the call and
    reacquires it afterwards.
    cs‘|ˆ_ˆj‰|r%ˆtO‰n|r8ˆtO‰ndtf‡‡fd†ƒY}|ˆ_|dkr„tˆj|ƒˆ_n    |ˆ_dS(Nt_FuncPtrcseZˆZˆjZRS((R'R(R+t_func_restype_R*((R-RW(sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyR™gs(    t_namet _func_flags_R2R3R8R™Rt_dlopent_handle(RWR}tmodethandleR$R%R™((R-RWsW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyt__init__]s               cCsDd|jj|j|jtjdd@t|ƒtjdd@fS(Ns<%s '%s', handle %x at %x>ii(RyR'R›Ržt_systmaxintR“(RW((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyRUqscCsP|jdƒr-|jdƒr-t|ƒ‚n|j|ƒ}t|||ƒ|S(Nt__(t
startswithtendswithtAttributeErrort __getitem__tsetattr(RWR}tfunc((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyt __getattr__ws
cCs:|j||fƒ}t|ttfƒs6||_n|S(N(R™RRRR'(RWtname_or_ordinalRª((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyR¨~s N(R'R(t__doc__R/RœRbRšt DEFAULT_MODERR1R¡RUR«R¨(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyR˜Ls          tPyDLLcBseZdZeeBZRS(s¯This class represents the Python library itself.  It allows to
    access Python API functions.  The GIL is not released, and
    Python exceptions are handled correctly.
    (R'R(R­R/t_FUNCFLAG_PYTHONAPIRœ(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyR¯„stWinDLLcBseZdZeZRS(snThis class represents a dll exporting functions using the
        Windows stdcall calling convention.
        (R'R(R­R>Rœ(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyR±s(t_check_HRESULTRItHRESULTcBseZdZeZRS(R^(R'R(RKR²t_check_retval_(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyR³–s
tOleDLLcBseZdZeZeZRS(sßThis class represents a dll exporting functions using the
        Windows stdcall calling convention, and returning HRESULT.
        HRESULT error values are automatically raised as WindowsError
        exceptions.
        (R'R(R­R>RœR³Rš(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyRµ£st LibraryLoadercBs,eZd„Zd„Zd„Zd„ZRS(cCs ||_dS(N(t_dlltype(RWtdlltype((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyR¡­scCsB|ddkrt|ƒ‚n|j|ƒ}t|||ƒ|S(Nit_(R§R·R©(RWR}tdll((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyR«°s
cCs t||ƒS(N(tgetattr(RWR}((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyR¨·scCs |j|ƒS(N(R·(RWR}((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyR;ºs(R'R(R¡R«R¨R;(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyR¶¬s            s
python dlltcygwinslibpython%d.%d.dll(tget_last_errortset_last_errorcCsF|dkrtƒ}n|dkr9t|ƒjƒ}nt||ƒS(N(Rt GetLastErrorR tstript WindowsError(tcodetdescr((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pytWinErrorÒs
   (t _memmove_addrt _memset_addrt_string_at_addrt
_cast_addrcs#dtf‡‡fd†ƒY}|S(NR&cseZˆZˆZeeBZRS((R'R(R)R*R/R°R+((R,R.(sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyR&îs(R8(R.R,R&((R,R.sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyt
PYFUNCTYPEíscCst|||ƒS(N(t_cast(tobjRM((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyRzõscCs t||ƒS(sAstring_at(addr[, size]) -> string
 
    Return the string at addr.(t
_string_at(tptrR((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyt    string_atùs(t_wstring_at_addrcCs t||ƒS(sFwstring_at(addr[, size]) -> string
 
        Return the string at addr.(t _wstring_at(RÍR((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyt
wstring_atscCsNy"tdtƒtƒdgƒ}Wntk
r6dSX|j|||ƒSdS(Nscomtypes.server.inprocservert*i€(t
__import__tglobalstlocalst ImportErrortDllGetClassObject(trclsidtriidtppvtccom((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyR× s
" cCsAy"tdtƒtƒdgƒ}Wntk
r6dSX|jƒS(Nscomtypes.server.inprocserverRÒi(RÓRÔRÕRÖtDllCanUnloadNow(RÛ((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyRÜs
" (tBigEndianStructuretLittleEndianStructurei(sntsce(sntsce(sntsce(sntsce(sntsce(sntsce(sntsce(R­tosR|tsysR¢Rt_ctypesRRRRRR8t_ctypes_versionRRRRJR    t    _calcsizet    ExceptionR}R R®tplatformRtunametsplitRR/RR°RR2RR3RR"R#R6R:R;RR<R>R?R@treplaceRARBRCRDRERFRGRHRIRQRRRYR[R]R_RbRcReRgRiRlRmRot __ctype_le__t __ctype_be__RqRRtR{tc_voidpR~R€RR‚RˆR‰RÖR…R‡RR–R—tobjectR˜R¯R±R²R³RµR¶tcdlltpydllt    dllhandlet    pythonapit version_infoRvtoledllRwR¿tcoredllR½R¾RÄtc_size_tt    c_ssize_tRÅRÆRÇRÈtmemmovetmemsetRÉRÊRzRÌRÎRÏRÐRÑR×RÜtctypes._endianRÝRÞtc_int8tc_uint8tkindtc_int16tc_int32tc_int64tc_uint16tc_uint32tc_uint64(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/__init__.pyt<module>sJ ) "      !            (  
 
 
 
    
 
 
 
        
 
 
 
 
 
 
           
   8                       "