
    Mh                     &    d Z ddlmZ dedefdZdS )zUUtils for interoperability with other libraries.

Just CFFI pointer casting for now.
    )Anynreturnc                    t          | t                    r| S 	 ddl}|                                }t          | |j                  r#t          |                    d|                     S n# t          $ r Y nw xY wt          d| d          )zZCast an address to a Python int

    This could be a Python integer or a CFFI pointer
    r   Nsize_tzCannot cast z to int)
isinstanceintcffiFFICDatacastImportError
ValueError)r   r
   ffis      Q/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/zmq/utils/interop.pycast_int_addrr      s    
 !S .
 hhjja## 	.sxx!,,---	.     0A000
1
11s   A* *
A76A7N)__doc__typingr   r	   r        r   <module>r      sO          2S 2S 2 2 2 2 2 2r   