Ashet OS

async_call: ashet.pipe.Write

Documentation

Writes elements from data into the given pipe.

Inputs

handle: Pipe
data: bytestr

Pointer to the first element. Length defines how many elements are to be transferred.

stride: usize

Distance between each element in data. 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 write should operate.

Outputs

count: usize

Numbert of elements written into the pipe.