o
    Tæ«dg  ã                   @   sJ   d Z ddlmZ ddlmZ ddlmZ edƒZe dej	¡dd„ ƒZ
d	S )
z'
Implementation of some CFFI functions
é    )ÚRegistry)Útypes)ÚarrayobjÚcffiimplzffi.from_bufferc                 C   sZ   t |jƒdks	J ‚t |ƒdksJ ‚|j\}|\}|j|jjks!J ‚t |¡| ||ƒ}|jS )Né   )ÚlenÚargsÚdtypeÚreturn_typer   Ú
make_arrayÚdata)ÚcontextÚbuilderÚsigr   ÚfromtyÚvalÚary© r   úf/home/ncw/WWW/www-new/content/articles/pi-bbp/venv/lib/python3.10/site-packages/numba/misc/cffiimpl.pyÚfrom_buffer   s   r   N)Ú__doc__Únumba.core.imputilsr   Ú
numba.corer   Únumba.npr   ÚregistryÚlowerÚBufferr   r   r   r   r   Ú<module>   s    