uawdijnntqw1x1x1
IP : 3.12.147.12
Hostname : host45.registrar-servers.com
Kernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
jackpotjunglegam
/
..
/
..
/
lib64
/
python3.8
/
xmlrpc
/
..
/
ctypes
/
__pycache__
/
__init__.cpython-38.pyc
/
/
U e5d�E�@s dZddlZddlZdZddlmZmZm Z ddlm Z ddlmZddlmZ ddlmZmZdd lmZdd lmZee kr�edee ��ejdkr�dd lmZeZejdkr�ejdkr�ee��j�d�d�dkr�eZddlmZmZ m!Z"m#Z$d}dd�Z%d~dd�Z&iZ'dd�Z(ejdk�r\ddlm)Z*ddlm+Z,iZ-dd�Z.e.j�rte(j�/dd�e._nejdk�rtddlm0Z*ddlm1Z1m2Z2m3Z3m4Z4m5Z5ddlm6Z6m7Z7dd lm8Z8dd!d"�Z9Gd#d$�d$e8�Z:e9e:d%�Gd&d'�d'e8�Z;e9e;�Gd(d)�d)e8�Z<e9e<�Gd*d+�d+e8�Z=e9e=�Gd,d-�d-e8�Z>e9e>�ed.�ed/�k�rLe=Z?e>Z@n0Gd0d1�d1e8�Z?e9e?�Gd2d3�d3e8�Z@e9e@�Gd4d5�d5e8�ZAe9eA�Gd6d7�d7e8�ZBe9eB�Gd8d9�d9e8�ZCe1eC�e1eB�k�r�eBZCed/�ed:�k�r�e=ZDe>ZEn0Gd;d<�d<e8�ZDe9eD�Gd=d>�d>e8�ZEe9eE�Gd?d@�d@e8�ZFeFeF_GeF_He9eF�GdAdB�dBe8�ZIeIeI_GeI_He9eI�GdCdD�dDe8�ZJeJeJ_GeJ_He9eJ�GdEdF�dFe8�ZKe9eKd%�GdGdH�dHe8�ZLeLZMe9eL�GdIdJ�dJe8�ZNddKlmOZOmPZPmQZQGdLdM�dMe8�ZRGdNdO�dOe8�ZSdPdQ�ZTd�dRdS�ZUdTdU�ZVdVdW�ZWGdXdY�dYeX�ZYGdZd[�d[eY�ZZejdk�r�Gd\d]�d]eY�Z[dd^lm\Z\m8Z8Gd_d`�d`e8�Z]Gdadb�dbeY�Z^Gdcdd�ddeX�Z_e_eY�Z`e_eZ�Zaejdk�r�eZdedejb�Zcn,ejdfk�r�eZdgejdddh��ZcneZd�Zcejdk�r8e_e[�Zee_e^�ZfeejgjhZhddilmiZimjZjd�djdk�Zke1e@�e1eL�k�rTe@Zle?Zmn6e1e>�e1eL�k�rpe>Zle=Zmne1eE�e1eL�k�r�eEZleDZmddllmnZnmoZompZpmqZqe(eLeLeLel�en�Zre(eLeLe?el�eo�Zsdmdn�Ztete:eLe:e:�eq�Zudodp�Zvete:eLe?�ep�Zwd�drds�ZxzddtlmyZyWnezk �r(YnXete:eLe?�ey�Z{d�dudv�Z|ejdk�r`dwdx�Z}dydz�Z~dd{lm�Z�m�Z�eIZ�eFZ�e;e?e=eDfD]@Z�e1e��dhk�r�e�Z�n&e1e��d|k�r�e�Z�ne1e��dk�r�e�Z��q�e<e@e>eEfD]@Z�e1e��dhk�r�e�Z�n&e1e��d|k�r�e�Z�ne1e��dk�r�e�Z��q�[�eT�dS)�z,create and manipulate C data types in Python�Nz1.1.0)�Union� Structure�Array)�_Pointer)�CFuncPtr)�__version__)� RTLD_LOCAL�RTLD_GLOBAL)� ArgumentError��calcsizezVersion number mismatch�nt)�FormatError�posix�darwin�.�)�FUNCFLAG_CDECL�FUNCFLAG_PYTHONAPI�FUNCFLAG_USE_ERRNO�FUNCFLAG_USE_LASTERRORcCszt|t�rD|dkrt|�d}t�d||�t|}|�}||_|St|t�rnt�dd|�t|}|�}|St|��dS)z�create_string_buffer(aBytes) -> character array create_string_buffer(anInteger) -> character array create_string_buffer(aBytes, anInteger) -> character array N�zctypes.create_string_buffer) � isinstance�bytes�len�_sys�audit�c_char�value�int� TypeError��init�sizeZbuftypeZbuf�r$�'/usr/lib64/python3.8/ctypes/__init__.py�create_string_buffer/s r&cCs t||�S�N)r&)r"r#r$r$r%�c_bufferCsr(cs�t�|�dd�r�tO�|�dd�r,�tO�|r@td|����zt���fWStk r�G���fdd�dt�}|t���f<|YSXdS)a�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 � use_errnoF�use_last_error�!unexpected keyword argument(s) %scseZdZ�Z�Z�ZdS)z CFUNCTYPE.<locals>.CFunctionTypeN��__name__� __module__�__qualname__� _argtypes_� _restype_�_flags_r$��argtypes�flags�restyper$r%� CFunctionTypeesr7N) �_FUNCFLAG_CDECL�pop�_FUNCFLAG_USE_ERRNO�_FUNCFLAG_USE_LASTERROR� ValueError�keys�_c_functype_cache�KeyError� _CFuncPtr)r6r4�kwr7r$r3r%� CFUNCTYPEKsrB)�LoadLibrary)�FUNCFLAG_STDCALLcs�t�|�dd�r�tO�|�dd�r,�tO�|r@td|����zt���fWStk r�G���fdd�dt�}|t���f<|YSXdS)Nr)Fr*r+cseZdZ�Z�Z�ZdS)z$WINFUNCTYPE.<locals>.WinFunctionTypeNr,r$r3r$r%�WinFunctionType}srE) �_FUNCFLAG_STDCALLr9r:r;r<r=�_win_functype_cacher?r@)r6r4rArEr$r3r%�WINFUNCTYPEqsrH)�dlopen)�sizeof�byref� addressof� alignment�resize)� get_errno� set_errno)�_SimpleCDatacCsJddlm}|dkr|j}t|�||�}}||krFtd|||f��dS)Nrrz"sizeof(%s) wrong: %d instead of %d)�structr�_type_rJ�SystemError)�typ�typecoderZactualZrequiredr$r$r%�_check_size�s�rWcs eZdZdZ�fdd�Z�ZS)� py_object�Ocs4zt���WStk r.dt|�jYSXdS)Nz %s(<NULL>))�super�__repr__r<�typer-��self�� __class__r$r%r[�szpy_object.__repr__)r-r.r/rSr[� __classcell__r$r$r_r%rX�srX�Pc@seZdZdZdS)�c_short�hN�r-r.r/rSr$r$r$r%rc�srcc@seZdZdZdS)�c_ushort�HNrer$r$r$r%rf�srfc@seZdZdZdS)�c_long�lNrer$r$r$r%rh�srhc@seZdZdZdS)�c_ulong�LNrer$r$r$r%rj�srj�iric@seZdZdZdS)�c_intrlNrer$r$r$r%rm�srmc@seZdZdZdS)�c_uint�INrer$r$r$r%rn�srnc@seZdZdZdS)�c_float�fNrer$r$r$r%rp�srpc@seZdZdZdS)�c_double�dNrer$r$r$r%rr�srrc@seZdZdZdS)�c_longdouble�gNrer$r$r$r%rt�srt�qc@seZdZdZdS)� c_longlongrvNrer$r$r$r%rw�srwc@seZdZdZdS)�c_ulonglong�QNrer$r$r$r%rx�srxc@seZdZdZdS)�c_ubyte�BNrer$r$r$r%rz�srzc@seZdZdZdS)�c_byte�bNrer$r$r$r%r|�sr|c@seZdZdZdS)r�cNrer$r$r$r%r�src@seZdZdZdd�ZdS)�c_char_p�zcCsd|jjt�|�jfS�Nz%s(%s)�r`r-�c_void_pZfrom_bufferrr]r$r$r%r[�szc_char_p.__repr__N�r-r.r/rSr[r$r$r$r%r�src@seZdZdZdS)r�rbNrer$r$r$r%r��sr�c@seZdZdZdS)�c_bool�?Nrer$r$r$r%r��sr�)�POINTER�pointer�_pointer_type_cachec@seZdZdZdd�ZdS)� c_wchar_p�ZcCsd|jjt�|�jfSr�r�r]r$r$r%r[�szc_wchar_p.__repr__Nr�r$r$r$r%r��sr�c@seZdZdZdS)�c_wchar�uNrer$r$r$r%r�sr�cCsFt��t��tjdkr"t��tjtt �_t jtt�_ttd<dS)Nr ) r��clearr>�_os�namerGr�Z from_paramr�r�rrr�r$r$r$r%�_reset_caches r�cCs�t|t�rh|dkrBtt�dkr6tdd�|D��d}nt|�d}t�d||�t|}|�}||_|St|t �r�t�dd|�t|}|�}|St |��dS)z�create_unicode_buffer(aString) -> character array create_unicode_buffer(anInteger) -> character array create_unicode_buffer(aString, anInteger) -> character array N�css"|]}t|�dkrdndVqdS)i��r�rN)�ord)�.0r~r$r$r%� <genexpr>sz(create_unicode_buffer.<locals>.<genexpr>rzctypes.create_unicode_buffer)r�strrJr��sumrrrrrr r!r$r$r%�create_unicode_buffers r�cCsLt�|d�dk rtd��t|�tkr,td��|�|�|t|<tt|�=dS)Nz%This type already exists in the cachezWhat's this???)r��get�RuntimeError�idZset_type)r��clsr$r$r%�SetPointerType.s r�cCs||Sr'r$)rUrr$r$r%�ARRAY8sr�c@sPeZdZdZeZeZdZdZ dZ eddddfdd�Zdd �Z d d�Zdd �ZdS)�CDLLa�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. z<uninitialized>rNFc s�|�_�j�|r�tO�|r$�tO�tj�d�rV|rV|�d�rVd|krV|tj tj BO}tjdkr�|dk rn|}n6ddl}|j }d|ks�d|kr�|��j��_||jO}G��fdd �d t�}|�_|dkr�t�j|��_n|�_dS) NZaix�)z.a(r r�/�\cseZdZ�Z�jZdS)zCDLL.__init__.<locals>._FuncPtrN)r-r.r/r2�_func_restype_r1r$�r5r^r$r%�_FuncPtrosr�)�_name�_func_flags_r:r;r�platform� startswith�endswithr�ZRTLD_MEMBER�RTLD_NOWr�r Z!_LOAD_LIBRARY_SEARCH_DEFAULT_DIRSZ_getfullpathnameZ!_LOAD_LIBRARY_SEARCH_DLL_LOAD_DIRr@r��_dlopen�_handle) r^r��modeZhandler)r*Zwinmoder r�r$r�r%�__init__Ss, z CDLL.__init__cCs8d|jj|j|jtjdd@t|�tjdd@fS)Nz<%s '%s', handle %x at %#x>r�r)r`r-r�r�r�maxsizer�r]r$r$r%r[ys ��z CDLL.__repr__cCs6|�d�r|�d�rt|��|�|�}t|||�|S)N�__)r�r��AttributeError�__getitem__�setattr)r^r��funcr$r$r%�__getattr__s zCDLL.__getattr__cCs"|�||f�}t|t�s||_|Sr')r�rrr-)r^Zname_or_ordinalr�r$r$r%r��s zCDLL.__getitem__)r-r.r/�__doc__r8r�rmr�r�r�r��DEFAULT_MODEr�r[r�r�r$r$r$r%r�>s � &r�c@seZdZdZeeBZdS)�PyDLLz�This class represents the Python library itself. It allows accessing Python API functions. The GIL is not released, and Python exceptions are handled correctly. N)r-r.r/r�r8�_FUNCFLAG_PYTHONAPIr�r$r$r$r%r��sr�c@seZdZdZeZdS)�WinDLLznThis class represents a dll exporting functions using the Windows stdcall calling convention. N)r-r.r/r�rFr�r$r$r$r%r��sr�)�_check_HRESULTrQc@seZdZdZeZdS)�HRESULTriN)r-r.r/rSr�Z_check_retval_r$r$r$r%r��s r�c@seZdZdZeZeZdS)�OleDLLz�This class represents a dll exporting functions using the Windows stdcall calling convention, and returning HRESULT. HRESULT error values are automatically raised as OSError exceptions. N)r-r.r/r�rFr�r�r�r$r$r$r%r��sr�c@s,eZdZdd�Zdd�Zdd�Zdd�Zd S) � LibraryLoadercCs ||_dSr'��_dlltype)r^Zdlltyper$r$r%r��szLibraryLoader.__init__cCs.|ddkrt|��|�|�}t|||�|S)Nr�_)r�r�r�)r^r�Zdllr$r$r%r��s zLibraryLoader.__getattr__cCs t||�Sr')�getattr�r^r�r$r$r%r��szLibraryLoader.__getitem__cCs |�|�Sr'r�r�r$r$r%rC�szLibraryLoader.LoadLibraryN)r-r.r/r�r�r�rCr$r$r$r%r��sr�z python dll�cygwinzlibpython%d.%d.dllr�)�get_last_error�set_last_errorcCs0|dkrt�}|dkr"t|���}td|d|�Sr')�GetLastErrorr�strip�OSError)�codeZdescrr$r$r%�WinError�s r�)� _memmove_addr�_memset_addr�_string_at_addr� _cast_addrcsG��fdd�dt�}|S)NcseZdZ�Z�ZeeBZdS)z!PYFUNCTYPE.<locals>.CFunctionTypeN)r-r.r/r0r1r8r�r2r$�r4r6r$r%r7�sr7)r@)r6r4r7r$r�r%� PYFUNCTYPE�sr�cCst|||�Sr')�_cast)�objrUr$r$r%�cast�sr����cCs t||�S)zAstring_at(addr[, size]) -> string Return the string at addr.)� _string_at�Zptrr#r$r$r%� string_at�sr�)�_wstring_at_addrcCs t||�S)zFwstring_at(addr[, size]) -> string Return the string at addr.)�_wstring_atr�r$r$r%� wstring_at sr�cCsBztdt�t�dg�}Wntk r.YdSX|�|||�SdS)N�comtypes.server.inprocserver�*i�)� __import__�globals�locals�ImportError�DllGetClassObject)ZrclsidZriidZppv�ccomr$r$r%r�s r�cCs8ztdt�t�dg�}Wntk r.YdSX|��S)Nr�r�r)r�r�r�r��DllCanUnloadNow)r�r$r$r%r�s r�)�BigEndianStructure�LittleEndianStructure�)N)N)N)N)NN)r�)r�)�r��osr��sysrrZ_ctypesrrrrrr@Z_ctypes_versionrr r rRrZ _calcsize� Exceptionr�rr�r�r�uname�release�splitrr8rr�rr:rr;r&r(r>rBrCr�rDrFrGrH�replacerIrJrKrLrMrNrOrPrQrWrXrcrfrhrjrmrnrprrrtrwrxrzZ__ctype_le__Z__ctype_be__r|rrr�Zc_voidpr�r�r�r�r�r�r�r�r�r��objectr�r�r�r�r�r�r�ZcdllZpydllZ dllhandleZ pythonapi�version_infoZwindllZoledllZkernel32r�r�r�r�Zc_size_tZ c_ssize_tr�r�r�r�ZmemmoveZmemsetr�r�r�r�r�r�r�r�r�r�r�Zctypes._endianr�r�Zc_int8Zc_uint8ZkindZc_int16Zc_int32Zc_int64Zc_uint16Zc_uint32Zc_uint64r$r$r$r%�<module>s4 ! N
/home/jackpotjunglegam/../../lib64/python3.8/xmlrpc/../ctypes/__pycache__/__init__.cpython-38.pyc