o
    q¨Êhâ  ã                   @   sf   d Z ddlmZmZmZmZ ddlmZ dd„ Zddd„Z	d	d
„ Z
G dd„ deƒZG dd„ deƒZdS )z¥
FFI helper compatibility functions. Exports the following items:

 - LibraryNotFoundError
 - FFIEngineError
 - bytes_from_buffer()
 - buffer_from_bytes()
 - null()
é    )Úunicode_literalsÚdivisionÚabsolute_importÚprint_function©Úcreate_string_bufferc                 C   s   t | ƒS ©Nr   )Úinitializer© r
   úA/var/www/html/env/lib/python3.10/site-packages/asn1crypto/_ffi.pyÚbuffer_from_bytes   s   r   Nc                 C   s   | j S r   )Úraw)ÚbufferÚmaxlenr
   r
   r   Úbytes_from_buffer   s   r   c                   C   s   d S r   r
   r
   r
   r
   r   Únull   s   r   c                   @   ó   e Zd ZdZdS )ÚLibraryNotFoundErrorz;
    An exception when trying to find a shared library
    N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   r
   r
   r   r      ó    r   c                   @   r   )ÚFFIEngineErrorz@
    An exception when trying to instantiate ctypes or cffi
    Nr   r
   r
   r
   r   r   '   r   r   r   )r   Ú
__future__r   r   r   r   Úctypesr   r   r   r   Ú	Exceptionr   r   r
   r
   r
   r   Ú<module>   s   

	