pl.wendigo.chrome.api.io / ReadRequest

ReadRequest

data class ReadRequest (source)

Represents request frame that can be used with IO#read operation call.

Read a chunk of the stream

Link
IO#read method documentation.

See Also

IOOperations.read

Constructors

<init>

ReadRequest(handle: StreamHandle, offset: Int? = null, size: Int? = null)

Represents request frame that can be used with IO#read operation call.

Properties

handle

val handle: StreamHandle

Handle of the stream to read.

offset

val offset: Int?

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.

size

val size: Int?

Maximum number of bytes to read (left upon the agent discretion if not specified).