Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.133.118.144
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : chunk.cpython-310.opt-2.pyc
o

^b;�@s	Gdd�d�ZdS)c@sZeZdZddd�Zdd�Zdd�Zd	d
�Zdd�Zddd�Zdd�Z	ddd�Z
dd�ZdS)�ChunkTFc	Cs�ddl}d|_||_|rd}nd}||_|�d�|_t|j�dkr#t�z|�|d|�d��d|_	Wn|j
y>td�w|rG|j	d|_	d|_z|j��|_
Wnttfyad|_YdSwd|_dS)	N�F�>�<��L�T)�struct�closed�align�file�read�	chunkname�len�EOFError�unpack_from�	chunksize�error�	size_read�tell�offset�AttributeError�OSError�seekable)�selfrr
Z	bigendianZ
inclheaderrZstrflag�r�./usr/local/python-3.10/lib/python3.10/chunk.py�__init__4s0 ��
zChunk.__init__cC�	|jS�N)r
�rrrr�getnameN�z
Chunk.getnamecCrr)rrrrr�getsizeRr!z
Chunk.getsizecCs(|jsz
|��Wd|_dSd|_wdS)NT)r	�skiprrrr�closeVs

�zChunk.closecCs|jrtd��dS)N�I/O operation on closed fileF)r	�
ValueErrorrrrr�isatty]szChunk.isattyrcCsx	|jrtd��|jstd��|dkr||j}n	|dkr"||j}|dks+||jkr-t�|j�|j	|d�||_dS)Nr%zcannot seek��r)
r	r&rrrr�RuntimeErrorr�seekr)r�pos�whencerrrr+bs

z
Chunk.seekcCs|jrtd��|jS)Nr%)r	r&rrrrrrusz
Chunk.tell���cCs�	|jrtd��|j|jkrdS|dkr|j|j}||j|jkr(|j|j}|j�|�}|jt|�|_|j|jkrR|jrR|jd@rR|j�d�}|jt|�|_|S)Nr%�rr()r	r&rrrrrr
)r�size�data�dummyrrrrzs&��z
Chunk.readcCs�	|jrtd��|jr7z"|j|j}|jr|jd@r|d}|j�|d�|j||_WdSty6Ynw|j|jkrWt	d|j|j�}|�
|�}|sOt�|j|jks=dSdS)Nr%r(i )r	r&rrrr
rr+r�minrr)r�nr2rrrr#�s(�
�z
Chunk.skipN)TTF)r)r.)�__name__�
__module__�__qualname__rr r"r$r'r+rrr#rrrrr3s


rN)rrrrr�<module>s2
© 2025 GrazzMean