File: //lib/python3/dist-packages/PIL/__pycache__/_binary.cpython-38.pyc
U
g�
^� � @ s� d dl mZmZ dd� Zdd� Zddd�Zddd �Zdd
d�Zddd
�Zddd�Z d dd�Z
dd� Zdd� Zdd� Z
dd� ZdS )!� )�pack�unpack_fromc C s | j tkr| S | d S )Nr )� __class__�int)�c� r �-/usr/lib/python3/dist-packages/PIL/_binary.py�i8 s r c C s t | d@ f�S )N� )�bytes��ir r r �o8 s r c C s t d| |�d S )z�
Converts a 2-bytes (16 bits) string to an unsigned integer.
:param c: string containing bytes to convert
:param o: offset of bytes to convert in string
�<Hr �r �r �or r r �i16le s r c C s t d| |�d S )z�
Converts a 2-bytes (16 bits) string to a signed integer.
:param c: string containing bytes to convert
:param o: offset of bytes to convert in string
z<hr r r r r r �si16le$ s r c C s t d| |�d S )z�
Converts a 4-bytes (32 bits) string to an unsigned integer.
:param c: string containing bytes to convert
:param o: offset of bytes to convert in string
�<Ir r r r r r �i32le. s r c C s t d| |�d S )z�
Converts a 4-bytes (32 bits) string to a signed integer.
:param c: string containing bytes to convert
:param o: offset of bytes to convert in string
z<ir r r r r r �si32le8 s r c C s t d| |�d S )N�>Hr r r r r r �i16beB s r c C s t d| |�d S )N�>Ir r r r r r �i32beF s r c C s
t d| �S )Nr �r r r r r �o16leK s r c C s
t d| �S )Nr r r r r r �o32leO s r c C s
t d| �S )Nr r r r r r �o16beS s r c C s
t d| �S )Nr r r r r r �o32beW s r N)r )r )r )r )r )r )Zstructr r r r r r r r r r r r r r r r r r �<module> s