
    zvg	                        d Z ddlmZ ddlmZmZ ddZdd
ZdddZdddZ	dddZ
dddZdddZdddZdddZdddZddZddZddZddZdS )z%Binary input/output support routines.    )annotations)packunpack_fromcbytesreturnintc                    | d         S )Nr    )r   s    H/var/www/pixelcanvas.ch/venv/lib/python3.11/site-packages/PIL/_binary.pyi8r      s    Q4K    ic                (    t          | dz  f          S )N   )r   r   s    r   o8r      s    !c'r   oc                0    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   r   s     r   i16ler           tQ""1%%r   c                0    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   s     r   si16ler   (   r   r   c                0    t          d| |          d         S )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>hr   r   r   s     r   si16ber   2   r   r   c                0    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   s     r   i32ler!   <   r   r   c                0    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   s     r   si32ler#   F   r   r   c                0    t          d| |          d         S )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>ir   r   r   s     r   si32ber%   P   r   r   c                0    t          d| |          d         S )N>Hr   r   r   s     r   i16ber(   Z       tQ""1%%r   c                0    t          d| |          d         S )N>Ir   r   r   s     r   i32ber,   ^   r)   r   c                "    t          d|           S )Nr   r   r   s    r   o16ler/   c       a==r   c                "    t          d|           S )Nr    r.   r   s    r   o32ler2   g   r0   r   c                "    t          d|           S )Nr'   r.   r   s    r   o16ber4   k   r0   r   c                "    t          d|           S )Nr+   r.   r   s    r   o32ber6   o   r0   r   N)r   r   r   r	   )r   r	   r   r   )r   )r   r   r   r	   r   r	   )__doc__
__future__r   structr   r   r   r   r   r   r   r!   r#   r%   r(   r,   r/   r2   r4   r6   r   r   r   <module>r:      s   , + " " " " " " $ $ $ $ $ $ $ $      
& & & & && & & & && & & & && & & & && & & & && & & & && & & & && & & & &
              r   