HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/pdfminer/__pycache__/runlength.cpython-38.pyc
U

�R�]/�@sddlZdd�ZdS)�NcCs�d}d}|t|�kr�t�||�}|dkr*q�|dkr�|dkr�t|d|d|d�D]}|t�t�||��7}qT|d|d}|dkrt�t�||d��d|}||7}|dd}q|S)a�
    RunLength decoder (Adobe version) implementation based on PDF Reference
    version 1.4 section 3.3.4:
        The RunLengthDecode filter decodes data that has been encoded in a
        simple byte-oriented format based on run length. The encoded data
        is a sequence of runs, where each run consists of a length byte
        followed by 1 to 128 bytes of data. If the length byte is in the
        range 0 to 127, the following length + 1 (1 to 128) bytes are
        copied literally during decompression. If length is in the range
        129 to 255, the following single byte is to be copied 257 - length
        (2 to 128) times during decompression. A length value of 128
        denotes EOD.
    �r��i)�len�sixZ
indexbytes�rangeZint2byte)�dataZdecoded�iZlength�j�run�r�4/usr/lib/python3/dist-packages/pdfminer/runlength.py�rldecodesr)rrrrrr
�<module>	s