Ashet OS

async_call: ashet.pipe.Read

Documentation

Reads elements from a pipe into buffer.

Inputs

handle: Pipe
buffer: bytebuf

Points to the first element to be received.

stride: usize

Distance between each element in buffer. Can be different from the pipes element size to allow sparse data to be transferred. If 0, it will use the object_size property of the pipe.

mode: PipeMode

Defines how the read should operate.

Outputs

count: usize

Number of elements read.