ó
«æ2Zc           @` s†   d  Z  d d l m Z m Z m Z m Z d d l m Z d „  Z d d „ Z
 d „  Z d e f d „  ƒ  YZ d	 e f d
 „  ƒ  YZ d S(   u¥   
FFI helper compatibility functions. Exports the following items:

 - LibraryNotFoundError
 - FFIEngineError
 - bytes_from_buffer()
 - buffer_from_bytes()
 - null()
i    (   t   unicode_literalst   divisiont   absolute_importt   print_function(   t   create_string_bufferc         C` s
   t  |  ƒ S(   N(   R   (   t   initializer(    (    s.   lib/python2.7/site-packages/asn1crypto/_ffi.pyt   buffer_from_bytes   s    c         C` s   |  j  S(   N(   t   raw(   t   buffert   maxlen(    (    s.   lib/python2.7/site-packages/asn1crypto/_ffi.pyt   bytes_from_buffer   s    c           C` s   d  S(   N(   t   None(    (    (    s.   lib/python2.7/site-packages/asn1crypto/_ffi.pyt   null   s    t   LibraryNotFoundErrorc           B` s   e  Z d  Z RS(   u;   
    An exception when trying to find a shared library
    (   t   __name__t
   __module__t   __doc__(    (    (    s.   lib/python2.7/site-packages/asn1crypto/_ffi.pyR      s   t   FFIEngineErrorc           B` s   e  Z d  Z RS(   u@   
    An exception when trying to instantiate ctypes or cffi
    (   R   R   R   (    (    (    s.   lib/python2.7/site-packages/asn1crypto/_ffi.pyR   '   s   N(   R   t
   __future__R    R   R   R   t   ctypesR   R   R   R
   R   t	   ExceptionR   R   (    (    (    s.   lib/python2.7/site-packages/asn1crypto/_ffi.pyt   <module>   s   "			