o
    h	                     @  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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	   M/var/www/html/optinet_system/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   )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   r	   r	   r
   si32beP   r   r   c                 C  r   )N>Hr   r   r   r	   r	   r
   i16beZ      r   c                 C  r   )N>Ir   r   r   r	   r	   r
   i32be^   r   r!   c                 C  
   t d| S )Nr   r   r   r	   r	   r
   o16lec      
r$   c                 C  r"   )Nr   r#   r   r	   r	   r
   o32leg   r%   r&   c                 C  r"   )Nr   r#   r   r	   r	   r
   o16bek   r%   r'   c                 C  r"   )Nr    r#   r   r	   r	   r
   o32beo   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	   r
   <module>   s"   










