IO Domain
Input/Output operations for streams produced by DevTools.
Methods
Types
Methods
IO.close #
Close the stream, discard any temporary backing storage.
parameters
- handle
-
StreamHandle
Handle of the stream to close.
IO.read #
Read a chunk of the stream
parameters
- handle
-
StreamHandle
Handle of the stream to read.
- offset
-
integer
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.
- size
-
integer
Maximum number of bytes to read (left upon the agent discretion if not specified).
Return Object
- base64Encoded
-
boolean
Set if the data is base64-encoded
- data
-
string
Data that were read.
- eof
-
boolean
Set if the end-of-file condition occurred while reading.
IO.resolveBlob #
Return UUID of Blob object specified by a remote object id.
parameters
- objectId
-
Runtime.RemoteObjectId
Object id of a Blob object wrapper.
Return Object
- uuid
-
string
UUID of the specified Blob.
Types
IO.StreamHandle #
This is either obtained from another method or specified as blob:<uuid>
where
<uuid>
is an UUID of a Blob.
Type: string