
    ,h/                         d dl Z d Zy)    Nc                    d}d}|t        |       k  rt        j                  | |      }|dk(  r	 |S |dk\  rY|dk  rTt        |dz   |dz   |dz   z         D ].  }|t        j                  t        j                  | |            z  }0 |dz   |dz   z   }|dkD  r?t        j                  t        j                  | |dz               d|z
  z  }||z  }|dz   dz   }|t        |       k  r|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six
indexbytesrangeint2byte)datadecodedilengthjruns         T/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/pdfminer/runlength.pyrldecoder      s     G	A
c$i-Q'S= N Q;6C<1Q3!fQh/0 >cnnT!&<==> 1"AC<,,s~~d1Q378#f*ECSLG1	A c$i-  Nr   )r   r    r   r   <module>r      s     r   