HEX
Server: Apache/2.4.62 (Debian)
System: Linux MIA-VPS-VM01781 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64
User: webmaster (1001)
PHP: 8.2.29
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //lib/python3.7/__pycache__/_compression.cpython-37.pyc
B

U��e��@s:dZddlZejZGdd�dej�ZGdd�dej�ZdS)z7Internal classes used by the gzip, lzma and bz2 modules�Nc@s0eZdZdZdd�Zdd�Zdd�Zdd	�Zd
S)�
BaseStreamzMode-checking helper functions.cCs|jrtd��dS)NzI/O operation on closed file)�closed�
ValueError)�self�r�"/usr/lib/python3.7/_compression.py�_check_not_closedszBaseStream._check_not_closedcCs|��st�d��dS)NzFile not open for reading)�readable�io�UnsupportedOperation)rrrr�_check_can_readszBaseStream._check_can_readcCs|��st�d��dS)NzFile not open for writing)�writabler
r)rrrr�_check_can_writeszBaseStream._check_can_writecCs(|��st�d��|��s$t�d��dS)Nz3Seeking is only supported on files open for readingz3The underlying file object does not support seeking)r	r
r�seekable)rrrr�_check_can_seeks
zBaseStream._check_can_seekN)�__name__�
__module__�__qualname__�__doc__rrrrrrrrr	s
rcsjeZdZdZdd�Zddd�Z�fdd�Zd	d
�Zdd�Zddd�Z	dd�Z
ejfdd�Z
dd�Z�ZS)�DecompressReaderz5Adapts the decompressor API to a RawIOBase reader APIcCsdS)NTr)rrrrr	$szDecompressReader.readablercKs>||_d|_d|_d|_||_||_|jf|j�|_||_dS)NFr���)�_fp�_eof�_pos�_size�_decomp_factory�_decomp_args�
_decompressor�_trailing_error)r�fpZdecomp_factoryZtrailing_errorZdecomp_argsrrr�__init__'szDecompressReader.__init__csd|_t���S)N)r�super�close)r)�	__class__rrr";szDecompressReader.closecCs
|j��S)N)rr)rrrrr?szDecompressReader.seekablec
CsPt|��:}|�d��$}|�t|��}||dt|��<WdQRXWdQRXt|�S)N�B)�
memoryview�cast�read�len)r�bZviewZ	byte_view�datarrr�readintoBs$zDecompressReader.readintorcCs�|dkr|��S|r|jrdSd}x�|jjr�|jjp>|j�t�}|sFP|jf|j	�|_y|j�
||�}Wq�|jk
r�PYq�Xn4|jjr�|j�t�}|s�t
d��nd}|j�
||�}|r$Pq$W|s�d|_|j|_dS|jt|�7_|S)Nr�zACompressed file ended before the end-of-stream marker was reachedT)�readallrrZeofZunused_datarr'�BUFFER_SIZErrZ
decompressrZneeds_input�EOFErrorrrr()r�sizer*Zrawblockrrrr'Hs>



zDecompressReader.readcCs,|j�d�d|_d|_|jf|j�|_dS)NrF)r�seekrrrrr)rrrr�_rewindrszDecompressReader._rewindcCs�|tjkrnV|tjkr"|j|}n@|tjkrT|jdkrHx|�tj�rFq8W|j|}ntd�	|���||jkrv|�
�n
||j8}x0|dkr�|�ttj|��}|s�P|t|�8}q�W|jS)NrzInvalid value for whence: {})
r
�SEEK_SET�SEEK_CURr�SEEK_ENDrr'�DEFAULT_BUFFER_SIZEr�formatr2�minr()r�offset�whencer*rrrr1xs&







zDecompressReader.seekcCs|jS)z!Return the current file position.)r)rrrr�tell�szDecompressReader.tell)r)r)rrrrr	r r"rr+r'r2r
r3r1r;�
__classcell__rr)r#rr!s

*r)rr
r6r.�BufferedIOBaser�	RawIOBaserrrrr�<module>s