File: //opt/alt/python38/lib/python3.8/site-packages/asn1crypto/__pycache__/_ffi.cpython-38.opt-1.pyc
U
B�W� � @ sf d Z ddlmZmZmZmZ ddlmZ dd� Zddd�Z d d
� Z
G dd� de�ZG d
d� de�Z
dS )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 )Zinitializer� r �/_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 @ s e Zd ZdZdS )�LibraryNotFoundErrorz;
An exception when trying to find a shared library
N��__name__�
__module__�__qualname__�__doc__r r r r
r s r c @ s e Zd ZdZdS )�FFIEngineErrorz@
An exception when trying to instantiate ctypes or cffi
Nr r r r r
r '