ReadRequest

data class ReadRequest(handle: StreamHandle, offset: Int?, size: Int?)

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

Read a chunk of the stream

See also

Constructors

ReadRequest
Link copied to clipboard
fun ReadRequest(handle: StreamHandle, offset: Int? = null, size: Int? = null)

Properties

handle
Link copied to clipboard
val handle: StreamHandle
Handle of the stream to read.
offset
Link copied to clipboard
val offset: Int? = null
Seek to the specified offset before reading (if not specificed, proceed with offset following the last read).
size
Link copied to clipboard
val size: Int? = null
Maximum number of bytes to read (left upon the agent discretion if not specified).

Sources

jvm source
Link copied to clipboard