文件操作 - _binary.cpython-311.pyc
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3/dist-packages/PIL/__pycache__/_binary.cpython-311.pyc
编辑文件内容
� �"�c� � �v � d Z ddlmZmZ d� Zd� Zdd�Zdd�Zdd�Zdd�Z dd �Z dd �Zdd�Zd� Z d � Zd� Zd� ZdS )z%Binary input/output support routines.� )�pack�unpack_fromc �2 � | j t u r| n| d S )Nr )� __class__�int)�cs �-/usr/lib/python3/dist-packages/PIL/_binary.py�i8r s � ���s�"�"�1�1��!��,� c �( � t | dz f� � S )N� )�bytes��is r �o8r s � ��!�c�'����r c �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 �os 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 <