/ lib / PIL / _binary.pyc
_binary.pyc
 1  o

 2  Y��ca�@s�dZddlmZmZdd�Zdd�Zddd�Zdd	d
 3  �Zddd�Zdd
d�Z	ddd�Z
 4  ddd�Zddd�Zdd�Z
dd�Zdd�Zdd�ZdS)z%Binary input/output support routines.�)�pack�unpack_fromcCs|jtur|S|dS)Nr)�	__class__�int)�c�r��C:\Users\Jacks.GUTTSPC\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\PIL\_binary.py�i8sr	cCst|d@f�S)N��)�bytes��irrr�o8srcC�td||�dS)z�
 5      Converts a 2-bytes (16 bits) string to an unsigned integer.
 6  
 7      :param c: string containing bytes to convert
 8      :param o: offset of bytes to convert in string
 9      �<Hr�r�r�orrr�i16le�rcCr)z�
10      Converts a 2-bytes (16 bits) string to a signed integer.
11  
12      :param c: string containing bytes to convert
13      :param o: offset of bytes to convert in string
14      z<hrrrrrr�si16le(rrcCr)z�
15      Converts a 2-bytes (16 bits) string to a signed integer, big endian.
16  
17      :param c: string containing bytes to convert
18      :param o: offset of bytes to convert in string
19      z>hrrrrrr�si16be2rrcCr)z�
20      Converts a 4-bytes (32 bits) string to an unsigned integer.
21  
22      :param c: string containing bytes to convert
23      :param o: offset of bytes to convert in string
24      �<Irrrrrr�i32le<rrcCr)z�
25      Converts a 4-bytes (32 bits) string to a signed integer.
26  
27      :param c: string containing bytes to convert
28      :param o: offset of bytes to convert in string
29      z<irrrrrr�si32leFrrcCr)N�>Hrrrrrr�i16beP�rcCr)N�>Irrrrrr�i32beTrrcC�
30  td|�S)Nr�rrrrr�o16leY�
31  r"cCr )Nrr!rrrr�o32le]r#r$cCr )Nrr!rrrr�o16bear#r%cCr )Nrr!rrrr�o32beer#r&N)r)�__doc__�structrrr	rrrrrrrrr"r$r%r&rrrr�<module>s
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43