HEX
Server: Apache
System: Linux vmi1259262.contaboserver.net 5.15.0-170-generic #180-Ubuntu SMP Fri Jan 9 16:10:31 UTC 2026 x86_64
User: aqarnomics (1008)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/PIL/__pycache__/_binary.cpython-310.pyc
o

Z#�a��@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�-/usr/lib/python3/dist-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