
    +g                        S SK Jr  SSKJrJr  S SKJr  S SKrS SKrSSK	J
r
   " S S\5      r    SS	 jr  S       SS
 jjr    SS jrg)    )annotations   )event_classT_JSON_DICT)	dataclassN)runtimec                  J   ^  \ rS rSrSrSS jr\SS j5       rU 4S jrSr	U =r
$ )	StreamHandle   zt
This is either obtained from another method or specified as ``blob:<uuid>`` where
``<uuid>`` is an UUID of a Blob.
c                    U $ N )selfs    r/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/selenium/webdriver/common/devtools/v132/io.pyto_jsonStreamHandle.to_json   s        c                    U " U5      $ r   r   )clsjsons     r   	from_jsonStreamHandle.from_json   s    4yr   c                >   > SR                  [        TU ]	  5       5      $ )NzStreamHandle({}))formatsuper__repr__)r   	__class__s    r   r   StreamHandle.__repr__   s    !(()9);<<r   r   )returnstr)r   r    r   r
   )__name__
__module____qualname____firstlineno____doc__r   classmethodr   r   __static_attributes____classcell__)r   s   @r   r
   r
      s+      = =r   r
   c              #  X   #    [        5       nU R                  5       US'   SUS.nUv ng7f)zi
Close the stream, discard any temporary backing storage.

:param handle: Handle of the stream to close.
handlezIO.closemethodparamsN)dictr   )r*   r-   cmd_dictr   s       r   closer0      s5      &F~~'F8H >Ds   (*c              #     #    [        5       nU R                  5       US'   Ub  XS'   Ub  X#S'   SUS.nUv nSU;   a  [        US   5      OS[        US   5      [        US	   5      4$ 7f)
aa  
Read a chunk of the stream

:param handle: Handle of the stream to read.
:param offset: *(Optional)* Seek to the specified offset before reading (if not specified, proceed with offset following the last read). Some types of streams may only support sequential reads.
:param size: *(Optional)* Maximum number of bytes to read (left upon the agent discretion if not specified).
:returns: A tuple with the following items:

    0. **base64Encoded** - *(Optional)* Set if the data is base64-encoded
    1. **data** - Data that were read.
    2. **eof** - Set if the end-of-file condition occurred while reading.
r*   NoffsetsizezIO.readr+   base64Encodeddataeof)r.   r   boolr    )r*   r2   r3   r-   r/   r   s         r   readr8   0   s     " &F~~'F8!xvH >D'6$'>T/"#DDLT%[ s   A&A(c              #  r   #    [        5       nU R                  5       US'   SUS.nUv n[        US   5      $ 7f)z
Return UUID of Blob object specified by a remote object id.

:param object_id: Object id of a Blob object wrapper.
:returns: UUID of the specified Blob.
objectIdzIO.resolveBlobr+   uuid)r.   r   r    )	object_idr-   r/   r   s       r   resolve_blobr=   S   sF      &F"**,F:"H >DtF|s   57)r*   r
   r   z0typing.Generator[T_JSON_DICT, T_JSON_DICT, None])NN)r*   r
   r2   typing.Optional[int]r3   r>   r   zZtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.Tuple[typing.Optional[bool], str, bool]])r<   zruntime.RemoteObjectIdr   z/typing.Generator[T_JSON_DICT, T_JSON_DICT, str])
__future__r   utilr   r   dataclassesr   enumtyping r   r    r
   r0   r8   r=   r   r   r   <module>rE      s    # * !   =3 = 	7& (,%)  $  #  
b	 F)	6r   