⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
PIL
/
__pycache__
/
View File Name :
ContainerIO.cpython-310.pyc
o Z#ûaC ã @ s d dl Z G dd„ dƒZdS )é Nc @ sP e Zd ZdZdd„ Zdd„ Zejfdd„Zdd „ Z ddd„Z d d„ Zdd„ ZdS )ÚContainerIOzm A file object that provides read access to a part of an existing file (for example a TAR file). c C s( || _ d| _|| _|| _| j |¡ dS )z Create file object. :param file: Existing file. :param offset: Start of region, in bytes. :param length: Size of region, in bytes. r N)ÚfhÚposÚoffsetÚlengthÚseek)ÚselfÚfiler r © r ú1/usr/lib/python3/dist-packages/PIL/ContainerIO.pyÚ__init__ s zContainerIO.__init__c C s dS )NFr ©r r r r Úisatty, s zContainerIO.isattyc C s` |dkr| j | | _ n|dkr| j| | _ n|| _ tdt| j | jƒƒ| _ | j | j| j ¡ dS )a Move file pointer. :param offset: Offset in bytes. :param mode: Starting position. Use 0 for beginning of region, 1 for current offset, and 2 for end of region. You cannot move the pointer outside the defined region. é é r N)r r ÚmaxÚminr r r )r r Úmoder r r r / s zContainerIO.seekc C s | j S )ze Get current file pointer. :returns: Offset from start of region, in bytes. )r r r r r ÚtellB s zContainerIO.tellr c C sT |rt || j| j ƒ}n| j| j }|sd| jjv rdS dS | j| | _| j |¡S )z¥ Read data. :param n: Number of bytes to read. If omitted or zero, read until end of region. :returns: An 8-bit string. Úbó Ú )r r r r r Úread)r Únr r r r J s zContainerIO.readc C sV d| j jv rdnd}d| j jv rdnd} | d¡}|s |S || }||kr* |S q)zJ Read a line of text. :returns: An 8-bit string. r r r ó Ú Tr )r r r )r ÚsÚnewline_characterÚcr r r Úreadline[ s ýùzContainerIO.readlinec C s$ g } | ¡ }|s |S | |¡ q)zZ Read multiple lines of text. :returns: A list of 8-bit strings. )r Úappend)r Úlinesr r r r Ú readlinesl s ÿüzContainerIO.readlinesN)r ) Ú__name__Ú __module__Ú__qualname__Ú__doc__r r ÚioÚSEEK_SETr r r r r" r r r r r s r )r' r r r r r Ú
s