o
    sÇ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	   ú_/var/www/html/construction_image-detection-poc/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"   










