forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdomain_io.pdl
More file actions
24 lines (23 loc) · 885 Bytes
/
Copy pathdomain_io.pdl
File metadata and controls
24 lines (23 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Partial support for IO domain of ChromeDevTools Protocol.
# https://github.com/ChromeDevTools/devtools-protocol/blob/master/pdl/domains/IO.pdl
domain IO
type StreamHandle extends string
# Read a chunk of the stream
command read
parameters
# Handle of the stream to read.
StreamHandle handle
# 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.
optional integer offset
# Maximum number of bytes to read (left upon the agent discretion if not specified).
optional integer size
returns
# Data that were read.
string data
# Set if the end-of-file condition occurred while reading.
boolean eof
command close
parameters
# Handle of the stream to close.
StreamHandle handle