+
    i                     :    ^ RI Ht ^RIHt RtRt ! R R4      tR# )    Struct)UnexpectedEndOfFileError><c                      a a ] tR t^	t oRtRV 3R lltR tRR ltRR ltRR lt	RR lt
RR ltR	 tR
 tR tR tRtVtV ;t# )StreamReaderzWraps a file-like object to provide access to structured data from a binary file.

Byte-order is configurable. `base_offset` is added to any base value provided to
calculate actual location for reads.
c                |   < \         \        V `  4        Wn        V\        8X  d   \        M\
        V n        W0n        R # N)superr	   __init___streamLITTLE_ENDIAN
BIG_ENDIAN_byte_order_base_offset)selfstream
byte_orderbase_offset	__class__s   &&&&Y/Users/agent/.openclaw/workspace/.venv/lib/python3.14/site-packages/docx/image/helpers.pyr   StreamReader.__init__   s,    lD*,,6-,G=Z'    c                8    V P                   P                  V4      # )zAllow pass-through read() call.)r   read)r   counts   &&r   r   StreamReader.read   s    ||  ''r   c                *    RpV P                  W1V4      # )zReturn the int value of the byte at the file position defined by
self._base_offset + `base` + `offset`.

If `base` is None, the byte is read from the current position in the stream.
B)	_read_intr   baseoffsetfmts   &&& r   	read_byteStreamReader.read_byte   s     ~~c00r   c                V    V P                   \        J d   RMRpV P                  W1V4      # )a  Return the int value of the four bytes at the file position defined by
self._base_offset + `base` + `offset`.

If `base` is None, the long is read from the current position in the stream. The
endian setting of this instance is used to interpret the byte layout of the
long.
z<Lz>Lr   r   r!   r"   s   &&& r   	read_longStreamReader.read_long#   s)     &&-7dT~~c00r   c                V    V P                   \        J d   RMRpV P                  W1V4      # )zReturn the int value of the two bytes at the file position determined by
`base` and `offset`, similarly to ``read_long()`` above.s   <Hs   >Hr)   r"   s   &&& r   
read_shortStreamReader.read_short.   s)     ''=8ee~~c00r   c                b    R pV! V4      pV P                  WRV4      pVP                  R4      pV# )z{Return a string containing the `char_count` bytes at the file position
determined by self._base_offset + `base` + `offset`.c                 *    R V ,          p\        V4      # )z%dsr   )
char_countformat_s   & r   
str_struct)StreamReader.read_str.<locals>.str_struct8   s    j(G'?"r   zUTF-8)_unpack_itemdecode)r   r1   r#   r$   r3   structcharsunicode_strs   &&&&    r   read_strStreamReader.read_str4   s9    	# J'!!&7ll7+r   c                p    V P                   V,           V,           pV P                  P                  V4       R # r   )r   r   seek)r   r#   r$   locations   &&& r   r=   StreamReader.seekA   s)    $$t+f4(#r   c                6    V P                   P                  4       # )zAllow pass-through tell() call.)r   tell)r   s   &r   rA   StreamReader.tellE   s    ||  ""r   c                    V P                  W#4       V P                  P                  V4      p\        V4      V8  d   \        hV# r   )r=   r   r   lenr   )r   
byte_countr#   r$   bytes_s   &&&& r   _read_bytesStreamReader._read_bytesI   s9    		$"":.v;#**r   c                <    \        V4      pV P                  WBV4      # r   )r   r5   )r   r%   r#   r$   r7   s   &&&& r   r!   StreamReader._read_intP   s      v66r   c                j    V P                  VP                  W#4      pVP                  V4      ^ ,          # r   )rG   sizeunpack)r   r7   r#   r$   rF   s   &&&& r   r5   StreamReader._unpack_itemT   s,    !!&++t<}}V$Q''r   )r   r   r   rL   )__name__
__module____qualname____firstlineno____doc__r   r   r&   r*   r-   r:   r=   rA   rG   r!   r5   __static_attributes____classdictcell____classcell__)r   __classdict__s   @@r   r	   r	   	   sF     ((1	11$#7( (r   r	   N)r7   r   
exceptionsr   r   r   r	    r   r   <module>r[      s!     0
M( M(r   