HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.10/__pycache__/_compression.cpython-310.opt-2.pyc
o

�i1�@s@	ddlZddlZejZGdd�dej�ZGdd�dej�ZdS)�Nc@s.eZdZ	dd�Zdd�Zdd�Zdd�Zd	S)
�
BaseStreamcCs|jrtd��dS)NzI/O operation on closed file)�closed�
ValueError��self�r�)/usr/local/lib/python3.10/_compression.py�_check_not_closeds�zBaseStream._check_not_closedcC�|��s	t�d��dS)NzFile not open for reading)�readable�io�UnsupportedOperationrrrr�_check_can_read�
�zBaseStream._check_can_readcCr
)NzFile not open for writing)�writablerr
rrrr�_check_can_writerzBaseStream._check_can_writecCs(|��s	t�d��|��st�d��dS)Nz3Seeking is only supported on files open for readingz3The underlying file object does not support seeking)rrr
�seekablerrrr�_check_can_seeks


�zBaseStream._check_can_seekN)�__name__�
__module__�__qualname__r	rrrrrrrr	srcspeZdZ	dd�Zddd�Z�fdd�Zdd	�Zd
d�Zdd
d�Zdd�Z	dd�Z
ejfdd�Z
dd�Z�ZS)�DecompressReadercCsdS)NTrrrrrr$szDecompressReader.readablercKsB||_d|_d|_d|_||_||_|jdi|j��|_||_dS)NFr���r)�_fp�_eof�_pos�_size�_decomp_factory�_decomp_args�
_decompressor�_trailing_error)r�fp�decomp_factory�trailing_error�decomp_argsrrr�__init__'s
zDecompressReader.__init__csd|_t���S�N)r�super�closer��	__class__rrr(;s
zDecompressReader.closecCs
|j��Sr&)rrrrrrr?s
zDecompressReader.seekablec	Cs�t|��9}|�d��}|�t|��}||dt|��<Wd�n1s$wYWd�t|�SWd�t|�S1s@wYt|�S)N�B)�
memoryview�cast�read�len)r�b�view�	byte_view�datarrr�readintoBs(���zDecompressReader.readintorcCs�|dkr|��S|r
|jrdSd}	|jjrA|jjp|j�t�}|s#n<|jdi|j	��|_z	|j�
||�}Wn$|jy@Ynw|jjrR|j�t�}|sQt
d��nd}|j�
||�}|r^nq|sjd|_|j|_dS|jt|�7_|S)Nr�TzACompressed file ended before the end-of-stream marker was reachedr)�readallrr�eof�unused_datarr.�BUFFER_SIZErr�
decompressr �needs_input�EOFErrorrrr/)r�sizer3�rawblockrrrr.HsH

�����zDecompressReader.readcCs8g}|�tj�}r|�|�|�tj�}s
d�|�S)Nr5)r.�sys�maxsize�append�join)r�chunksr3rrrr6qs

�
zDecompressReader.readallcCs0|j�d�d|_d|_|jdi|j��|_dS)NrFr)r�seekrrrrrrrrr�_rewind|szDecompressReader._rewindcCs�|tjkrn/|tjkr|j|}n$|tjkr.|jdkr(|�tj�r(	|�tj�s!|j|}ntd�	|���||jkr?|�
�n||j8}|dkra|�ttj|��}|sW	|jS|t|�8}|dksH|jS)NrzInvalid value for whence: {})
r�SEEK_SET�SEEK_CURr�SEEK_ENDrr.�DEFAULT_BUFFER_SIZEr�formatrE�minr/)r�offset�whencer3rrrrD�s,



�


��zDecompressReader.seekcCs	|jSr&)rrrrr�tell�szDecompressReader.tell)r)r)rrrrr%r(rr4r.r6rErrFrDrN�
__classcell__rrr)rr!s

)r)rr?rIr9�BufferedIOBaser�	RawIOBaserrrrr�<module>s