o
    >e                     @  s   d Z ddlmZ ddlmZmZ d%dd	Zd&ddZd'd(ddZd'd(ddZ	d'd(ddZ
d'd(ddZd'd(ddZd'd(ddZd'd(ddZd&ddZd&ddZd&d d!Zd&d"d#Zd$S ))z%Binary input/output support routines.    )annotations)packunpack_fromcbytesreturnintc                 C  s   | d S )Nr    )r   r	   r	   L/var/www/html/humari/django-venv/lib/python3.10/site-packages/PIL/_binary.pyi8   s   r   ic                 C  s   t | d@ fS )N   )r   r   r	   r	   r
   o8   s   r   oc                 C     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   r	   r	   r
   i16le      r   c                 C  r   )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   r	   r	   r
   si16le(   r   r   c                 C  r   )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   r	   r	   r
   si16be2   r   r   c                 C  r   )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   r	   r	   r
   i32le<   r   r   c                 C  r   )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   r	   r	   r
   si32leF   r   r   c                 C  r   )N>Hr   r   r   r	   r	   r
   i16beP      r   c                 C  r   )N>Ir   r   r   r	   r	   r
   i32beT   r   r    c                 C  
   t d| S )Nr   r   r   r	   r	   r
   o16leY      
r#   c                 C  r!   )Nr   r"   r   r	   r	   r
   o32le]   r$   r%   c                 C  r!   )Nr   r"   r   r	   r	   r
   o16bea   r$   r&   c                 C  r!   )Nr   r"   r   r	   r	   r
   o32bee   r$   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%   r&   r'   r	   r	   r	   r
   <module>   s    









