
    f                     $    d Z ddlmZ dedefdZy)zUUtils for interoperability with other libraries.

Just CFFI pointer casting for now.
    )Anynreturnc                     t        | t              r| S 	 ddl}|j                         }t        | |j                        rt        |j                  d|             S t        d| d      # t        $ r Y w xY w)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      L/var/www/cvtools/html/venv/lib/python3.12/site-packages/zmq/utils/interop.pycast_int_addrr      st    
 !S.
 hhja#sxx!,--
|A50
11  s   A( (	A43A4N)__doc__typingr   r	   r        r   <module>r      s"    2S 2S 2r   