1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
U
[±dÚ ã@sŽddlmZddlmZmZddlmZddlZddlZddl    m
Z
Gdd„de ƒZ dd    d
œd d „Z ddd d ddœdd„Zdddœdd„ZdS)é)Ú annotationsé)Ú event_classÚ T_JSON_DICT)Ú    dataclassN)ÚruntimecsBeZdZdZddœdd„Zedddœdd„ƒZ‡fd    d
„Z‡ZS) Ú StreamHandlezŠ
    This is either obtained from another method or specifed as ``blob:<uuid>`` where
    ``<uuid&gt`` is an UUID of a Blob.
    Ústr)ÚreturncCs|S©N©©Úselfr r ú`d:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\selenium/webdriver/common/devtools/v85/io.pyÚto_jsonszStreamHandle.to_json)Újsonr
cCs||ƒSr r )Úclsrr r rÚ    from_jsonszStreamHandle.from_jsoncsd tƒ ¡¡S)NzStreamHandle({}))ÚformatÚsuperÚ__repr__r ©Ú    __class__r rrszStreamHandle.__repr__)    Ú__name__Ú
__module__Ú __qualname__Ú__doc__rÚ classmethodrrÚ __classcell__r r rrrs
rz0typing.Generator[T_JSON_DICT, T_JSON_DICT, None])Úhandler
ccs&tƒ}| ¡|d<d|dœ}|V}dS)zu
    Close the stream, discard any temporary backing storage.
 
    :param handle: Handle of the stream to close.
    rzIO.close©ÚmethodÚparamsN)Údictr)rr"Úcmd_dictrr r rÚcloses  þr%ztyping.Optional[int]zZtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.Tuple[typing.Optional[bool], str, bool]])rÚoffsetÚsizer
ccsptƒ}| ¡|d<|dk    r"||d<|dk    r2||d<d|dœ}|V}d|krVt|dƒndt|dƒt|d    ƒfS)
a…
    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 specificed, 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 occured while reading.
    rNr&r'zIO.readr Z base64EncodedÚdataÚeof)r#rÚboolr    )rr&r'r"r$rr r rÚread0s þ
 
ýr+zruntime.RemoteObjectIdz/typing.Generator[T_JSON_DICT, T_JSON_DICT, str])Ú    object_idr
ccs.tƒ}| ¡|d<d|dœ}|V}t|dƒS)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.
    ZobjectIdzIO.resolveBlobr Úuuid)r#rr    )r,r"r$rr r rÚ resolve_blobSs     þr.)NN)Ú
__future__rÚutilrrZ dataclassesrÚenumÚtypingÚrr    rr%r+r.r r r rÚ<module>s   ý#