Sindbad~EG File Manager

Current Path : /proc/2568807/root/usr/local/lib/python3.12/site-packages/PIL/__pycache__/
Upload File :
Current File : //proc/2568807/root/usr/local/lib/python3.12/site-packages/PIL/__pycache__/_binary.cpython-312.pyc

�

&ٜg�	���dZddlmZddlmZmZdd�Zdd�Zddd�Zddd�Z	ddd�Z
ddd	�Zddd
�Zddd�Z
ddd�Zddd
�Zdd�Zdd�Zdd�Zdd�Zy)z%Binary input/output support routines.�)�annotations)�pack�unpack_fromc��|dS)Nr�)�cs �6/usr/local/lib/python3.12/site-packages/PIL/_binary.py�i8r
s���Q�4�K�c� �t|dzf�S)N�)�bytes��is r	�o8rs���!�c�'���rc�"�td||�dS)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�os  r	�i16ler����t�Q��"�1�%�%rc�"�td||�dS)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<hrrrs  r	�si16ler(rrc�"�td||�dS)z�
    Converts a 2-bytes (16 bits) string to a signed integer, big endian.

    :param c: string containing bytes to convert
    :param o: offset of bytes to convert in string
    z>hrrrs  r	�si16ber2rrc�"�td||�dS)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
    �<Irrrs  r	�i32ler<rrc�"�td||�dS)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<irrrs  r	�si32ler!Frrc�"�td||�dS)z�
    Converts a 4-bytes (32 bits) string to a signed integer, big endian.

    :param c: string containing bytes to convert
    :param o: offset of bytes to convert in string
    z>irrrs  r	�si32ber#Prrc�"�td||�dS)N�>Hrrrs  r	�i16ber&Z����t�Q��"�1�%�%rc�"�td||�dS)N�>Irrrs  r	�i32ber*^r'rc��td|�S)Nr�rrs r	�o16ler-c�����a�=�rc��td|�S)Nrr,rs r	�o32ler0gr.rc��td|�S)Nr%r,rs r	�o16ber2kr.rc��td|�S)Nr)r,rs r	�o32ber4or.rN)rr�return�int)rr6r5r)r)rrrr6r5r6)�__doc__�
__future__r�structrrr
rrrrrr!r#r&r*r-r0r2r4rrr	�<module>r:sV��,�"�$���
&�&�&�&�&�&�&�&�
���r

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists