📂 FileMgr
📍
/
usr
/
lib
/
python3
/
dist-packages
/
httplib2
/
__pycache__
✏️ /usr/lib/python3/dist-packages/httplib2/__pycache__/decode.cpython-312.pyc
✕ Tutup
� ��PjX � � � d dl mZ d dlZ G d� de� Z G d� de� Z G d� de� Z G d � d e� Zdefd�Z G d � de� Z y)� )�ProtocolNc � � e Zd ZdZy)�DecodeRatioErrorzBOutput-to-input amplification ratio exceeded the configured limit.N��__name__� __module__�__qualname__�__doc__� � �1/usr/lib/python3/dist-packages/httplib2/decode.pyr r s � �Lr r c � � e Zd ZdZy)�DecodeLimitErrorz,Total output length exceeded the hard limit.Nr r r r r r s � �6r r c �T � e Zd Zedefd�� Zdedefd�Zdefd�Zd dede defd�Z y )�DecoderProtocol�returnc � � y �Nr ��selfs r �needs_inputzDecoderProtocol.needs_input s � �r �bc � � y r r �r r s r �decodezDecoderProtocol.decode � � �r c � � y r r r s r �flushzDecoderProtocol.flush r r �data� chunk_sizec � � t � }|dk( rt |� }t dt |� |� D ]* }||||z }|j | j |� � �, |j | j � � t |� S )Nr )� bytearray�len�range�extendr r �bytes)r r r �out�i�chunks r � consume_byteszDecoderProtocol.consume_bytes sx � ��k����?��T��J��q�#�d�)�Z�0� +�A���Q��^�,�E��J�J�t�{�{�5�)�*� +� � � �4�:�:�<� ��S�z�r N)� )r r r �property�boolr r&