read

suspend fun read(args: IO.ReadParameter, mode: CommandMode = CommandMode.DEFAULT): IO.ReadReturn

Read a chunk of the stream


suspend fun read(handle: String, offset: Int? = null, size: Int? = null): IO.ReadReturn

Read a chunk of the stream

Parameters

handle

Handle of the stream to read.

offset

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

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