Trait method lrs::io::Read::scatter_read

Reads from the byte-stream into multiple buffers.

Syntax

fn scatter_read(&mut self, buf: &mut [&mut [u8]]) -> Result<usize, Errno>

Arguments

NameDescription
buf

The buffers that will be filled.

Return value

Returns the total number of bytes read.

Remarks

The method starts at the first buffer and fills a buffer completely before moving to the next one. A 0 return value usually signals end-of-file unless the implementation documentation says something else. Many functions and structures will assume the 0 <-> end-of-file equivalence.