Builder

class Builder(val handle: StreamHandle)

A builder for ReadRequest, which allows setting the optional parameters of the IODomain.read command via a lambda.

Constructors

Link copied to clipboard
constructor(handle: StreamHandle)

Properties

Link copied to clipboard

Handle of the stream to read.

Link copied to clipboard
var offset: Int?

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.

Link copied to clipboard
var size: Int?

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

Functions

Link copied to clipboard