o
    g                     @   s   d 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 Zdd Zdd Zdd ZdS )z%Binary input/output support routines.    )packunpack_fromc                 C   s   | j tu r| S | d S )Nr   )	__class__int)c r   I/home/ubuntu/cloudmapper/venv/lib/python3.10/site-packages/PIL/_binary.pyi8   s   r	   c                 C   s   t | d@ fS )N   )bytesir   r   r   o8   s   r   c                 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   or   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   )__doc__structr   r   r	   r   r   r   r   r   r   r   r   r"   r$   r%   r&   r   r   r   r   <module>   s   











