HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/env/lib/python3.10/site-packages/PIL/__pycache__/_binary.cpython-310.pyc
o

we��@s�dZddlmZmZdd�Zdd�Zddd�Zdd	d
�Zddd�Zdd
d�Z	ddd�Z
ddd�Zddd�Zdd�Z
dd�Zdd�Zdd�ZdS)z%Binary input/output support routines.�)�pack�unpack_fromcCs|jtur|S|dS)Nr)�	__class__�int)�c�r�D/home/arjun/projects/env/lib/python3.10/site-packages/PIL/_binary.py�i8sr	cCst|d@f�S)N�)�bytes��irrr�o8srcC�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�orrr�i16le�rcCr)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<hrrrrrr�si16le(rrcCr)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>hrrrrrr�si16be2rrcCr)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
    �<Irrrrrr�i32le<rrcCr)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<irrrrrr�si32leFrrcCr)N�>Hrrrrrr�i16beP�rcCr)N�>Irrrrrr�i32beTrrcC�
td|�S)Nr�rrrrr�o16leY�
r"cCr )Nrr!rrrr�o32le]r#r$cCr )Nrr!rrrr�o16bear#r%cCr )Nrr!rrrr�o32beer#r&N)r)�__doc__�structrrr	rrrrrrrrr"r$r%r&rrrr�<module>s