
    &Th                     t    d Z ddlmZmZ d Zd ZddZddZddZddZ	dd	Z
dd
ZddZd Zd Zd Zd Zy)z%Binary input/output support routines.    )packunpack_fromc                 4    | j                   t        u r| S | d   S )Nr   )	__class__int)cs    S/home/stella.sw7ft.com/public_html/venv/lib/python3.12/site-packages/PIL/_binary.pyi8r
      s    s"1,!,    c                      t        | dz  f      S )N   )bytesis    r	   o8r      s    !c'r   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   os     r	   i16ler           tQ"1%%r   c                 "    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                 "    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                 "    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                 "    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                 "    t        d| |      d   S )N>Hr   r   r   s     r	   i16ber$   P       tQ"1%%r   c                 "    t        d| |      d   S )N>Ir   r   r   s     r	   i32ber(   T   r%   r   c                     t        d|       S )Nr   r   r   s    r	   o16ler+   Y       a=r   c                     t        d|       S )Nr   r*   r   s    r	   o32ler.   ]   r,   r   c                     t        d|       S )Nr#   r*   r   s    r	   o16ber0   a   r,   r   c                     t        d|       S )Nr'   r*   r   s    r	   o32ber2   e   r,   r   N)r   )__doc__structr   r   r
   r   r   r   r   r   r!   r$   r(   r+   r.   r0   r2    r   r	   <module>r6      sP    , %-
&&&&&&&
r   