OwlCyberSecurity - MANAGER
Edit File: _compression.cpython-312.opt-1.pyc
� ������h1����������������������������d�Z�ddlZddlZej������������������Z�G�d��dej �������������������������Z�G�d��dej�������������������������Zy)z7Internal classes used by the gzip, lzma and bz2 modules�����Nc��������������������(�����e�Zd�ZdZd��Zd��Zd��Zd��Zy)� BaseStreamzMode-checking helper functions.c������������������2�����|�j�������������������rt��������d��������y�)NzI/O operation on closed file)�closed� ValueError��selfs��� �3/opt/alt/python312/lib64/python3.12/_compression.py�_check_not_closedzBaseStream._check_not_closed���s�������;�;��;�<�<�������c������������������N�����|�j��������������������������st��������j������������������d��������y�)NzFile not open for reading)�readable�io�UnsupportedOperationr���s��� r ����_check_can_readzBaseStream._check_can_read����"�������}�}���)�)�*E�F�F��r���c������������������N�����|�j��������������������������st��������j������������������d��������y�)NzFile not open for writing)�writabler���r���r���s��� r ����_check_can_writezBaseStream._check_can_write���r���r���c�����������������������|�j��������������������������st��������j������������������d��������|�j��������������������������st��������j������������������d��������y�)Nz3Seeking is only supported on files open for readingz3The underlying file object does not support seeking)r���r���r����seekabler���s��� r ����_check_can_seekzBaseStream._check_can_seek���sO�������}�}���)�)��+F��G�� G��}�}���)�)��+E��F�� F��r���N)�__name__� __module__�__qualname__�__doc__r���r���r���r�����r���r ���r���r��� ���s������)�=�G�G�Fr���r���c��������������������t�������e�Zd�ZdZd��Zdd�Z��fd�Zd��Zd��Zd d�Z d��Z d ��Zej������������������fd �Zd��Z��xZS�)�DecompressReaderz5Adapts the decompressor API to a RawIOBase reader APIc������������������������y)NTr���r���s��� r ���r���zDecompressReader.readable$���s������r���c�����������������������||�_���������d|�_��������d|�_��������d|�_��������||�_��������||�_���������|�j������������������di�|�j ��������������������|�_��������||�_��������y�)NFr������r���)�_fp�_eof�_pos�_size�_decomp_factory�_decomp_args� _decompressor�_trailing_error)r ����fp�decomp_factory�trailing_error�decomp_argss��� r ����__init__zDecompressReader.__init__'���sZ����������� ��� ���� �� .���'���1�T�1�1�F�D�4E�4E�F���� .��r���c������������������.������d�|�_���������t���������|�� ����������S��N)r)����super�close)r ���� __class__s��� �r ���r3���zDecompressReader.close;���s�������!����w�}��r���c������������������6�����|�j�������������������j��������������������������S�r1���)r#���r���r���s��� r ���r���zDecompressReader.seekable?���s�������x�x� � �"�"r���c����������������������t��������|�������5�}|j������������������d�������5�}|�j������������������t��������|��������������}||d�t��������|��������d�d�d���������d�d�d���������t���������������S�#�1�sw�Y����xY�w#�1�sw�Y���t���������������S�xY�w)N�B)� memoryview�cast�read�len)r ����b�view� byte_view�datas��� r ����readintozDecompressReader.readintoB���sc������ ��]�d�D�I�I�c�N�i��9�9�S��^�,�D�$(�I�j�s�4�y�!��%3�]���4�y���%3�N��]���4�y��s"����A.�)A"�A.�"A+ �'A.�.Bc�����������������������|dk��r|�j��������������������������S�|r|�j������������������ryd�} �|�j������������������j������������������ry|�j������������������j������������������xs�|�j ������������������j ������������������t���������������}|sn��|�j������������������di�|�j��������������������|�_�������� �|�j������������������j������������������||�������}n`|�j������������������j������������������r,|�j ������������������j ������������������t���������������}|s t��������d��������d}|�j������������������j������������������||�������}|rn��|sd|�_��������|�j������������������|�_��������y|�xj������������������t!��������|�������z ��c_��������|S�#�|�j������������������$�r�Y��Lw�xY�w)Nr���r���TzACompressed file ended before the end-of-stream marker was reachedr���)�readallr$���r)����eof�unused_datar#���r:����BUFFER_SIZEr'���r(���� decompressr*����needs_input�EOFErrorr%���r&���r;���)r ����sizer?����rawblocks��� r ���r:���zDecompressReader.readH���sY������!�8��<�<�>�!��t�y�y�������!�!�%�%� �.�.�:�:��7� �H�H�M�M�+�6�����%9�T�%9�%9��&)��'�'�&)��"���-�-�8�8��4�H�D� ��%�%�1�1�#�x�x�}�}�[�9�H�#�&��(J��K��K�� #�H��)�)�4�4�X�t�D����1��2���D�I����D�J��� � �S��Y�� ����'��+�+�����s����E��E(�'E(c������������������������g�}|�j������������������t��������j�������������������������x}r3|j������������������|��������|�j������������������t��������j�������������������������x}r�3dj ������������������|�������S�)Nr���)r:����sys�maxsize�append�join)r ����chunksr?���s��� r ���rB���zDecompressReader.readallq���sX����������i�i����,�,�d�,��M�M�$����i�i����,�,�d�,���x�x���r���c�����������������������|�j�������������������j������������������d��������d|�_��������d|�_���������|�j������������������di�|�j ��������������������|�_��������y�)Nr���Fr���)r#����seekr$���r%���r'���r(���r)���r���s��� r ����_rewindzDecompressReader._rewind|���s>��������� � �a���� ��� �1�T�1�1�F�D�4E�4E�F��r���c����������������������|t���������j������������������k(��rn�|t���������j������������������k(��r|�j������������������|z���}n�|t���������j������������������k(��r_|�j ������������������dk��r@|�j ������������������t���������j�������������������������r! �|�j ������������������t���������j�������������������������r�!|�j ������������������|z���}nt��������dj������������������|���������������||�j������������������k��r|�j���������������������������n||�j������������������z��}|dkD��rL|�j ������������������t��������t���������j������������������|��������������}|s �|�j������������������S�|t��������|�������z��}|dkD��r�L|�j������������������S�)Nr���zInvalid value for whence: {}) r����SEEK_SET�SEEK_CURr%����SEEK_ENDr&���r:����DEFAULT_BUFFER_SIZEr����formatrS����minr;���)r ����offset�whencer?���s��� r ���rR���zDecompressReader.seek����s������R�[�[� �� �r�{�{� "��Y�Y��'�F� �r�{�{� "��z�z�A�~��i�i�� 6� 6�7����i�i�� 6� 6�7��Z�Z�&�(�F��;�B�B�6�J�K�K���D�I�I���L�L�N��d�i�i��F���q�j��9�9�S��!7�!7��@�A�D�����y�y��� �c�$�i��F� ��q�j���y�y�r���c�����������������������|�j�������������������S�)z!Return the current file position.)r%���r���s��� r ����tellzDecompressReader.tell����s�������y�y�r���)r���)r"���)r���r���r���r���r���r/���r3���r���r@���r:���rB���rS���r���rU���rR���r^���� __classcell__)r4���s���@r ���r���r���!���sC�������?��.�(�#��'�R �G��#%�+�+���<r���r���) r���r���rL���rX���rE����BufferedIOBaser���� RawIOBaser���r���r���r ����<module>rb������s?������=�� �� ��$�$��F��"�"��F�0A�r�|�|��Ar���