Your IP : 216.73.216.213


Current Path : /opt/alt/python35/lib64/python3.5/site-packages/PIL/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/site-packages/PIL/__pycache__/_binary.cpython-35.pyc



�ʴW��@s�ddlmZmZeekr=dd�Zdd�Zndd�Zdd�Zddd	�Zdd
d�Zddd
�Z	ddd�Z
dd�Zdd�Zdd�Z
dd�ZdS)�)�unpack�packcCs
t|�S)N)�ord)�c�r�>/opt/alt/python35/lib64/python3.5/site-packages/PIL/_binary.py�i8srcCst|d@�S)N�)�chr)�irrr�o8srcCs|jtkr|S|dS)Nr)�	__class__�int)rrrrrscCst|d@f�S)Nr	)�bytes)rrrrrscCstd|||d��dS)z�
    Converts a 2-bytes (16 bits) string to an integer.

    c: string containing bytes to convert
    o: offset of bytes to convert in string
    z<H�r)r)r�orrr�i16le srcCstd|||d��dS)z�
    Converts a 4-bytes (32 bits) string to an integer.

    c: string containing bytes to convert
    o: offset of bytes to convert in string
    z<I�r)r)rrrrr�i32le*srcCstd|||d��dS)Nz>Hrr)r)rrrrr�i16be4srcCstd|||d��dS)Nz>Irr)r)rrrrr�i32be8srcCs
td|�S)Nz<H)r)rrrr�o16le=srcCs
td|�S)Nz<I)r)rrrr�o32leAsrcCs
td|�S)Nz>H)r)rrrr�o16beEsrcCs
td|�S)Nz>I)r)rrrr�o32beIsrN)�structrrr�strrrrrrrrrrrrrrr�<module>s