File: //lib64/python3.6/site-packages/zmq/utils/__pycache__/interop.cpython-36.pyc
3
VS�_� � @ s2 d Z ye W n ek
r$ eZY nX dd� ZdS )zUUtils for interoperability with other libraries.
Just CFFI pointer casting for now.
c C sh t | ttf�r| S yddl}W n tk
r2 Y n&X |j� }t | |j�rXt|jd| ��S td| ��dS )z^Cast an address to a Python int
This could be a Python integer or a CFFI pointer
� NZsize_tzCannot cast %r to int) �
isinstance�int�long�cffi�ImportErrorZFFIZCData�cast�
ValueError)�nr Zffi� r
�/usr/lib64/python3.6/interop.py�
cast_int_addr s r N)�__doc__r � NameErrorr r r
r
r
r �<module> s