�
B�g� � � � d Z ddlmZ ddlmZmZ dd�Zdd
�Zddd�Zddd
�Z ddd�Z
ddd�Zddd�Zddd�Z
ddd�Zddd�Zdd�Zdd�Zdd�Zdd�ZdS )z%Binary input/output support routines.� )�annotations)�pack�unpack_from�c�bytes�return�intc � � | d S )Nr � )r s �[/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/PIL/_binary.py�i8r
s � ��Q�4�K� �ic �( � t | dz f� � S )N�� )r �r s r �o8r s � ��!�c�'����r �oc �0 � 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 s r �i16ler � � � �t�Q��"�"�1�%�%r c �0 � 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 �0 � 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 �0 � 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! <