Reads from the byte-stream into multiple buffers.
fn scatter_read(&mut self, buf: &mut [&mut [u8]]) -> Result<usize, Errno>
| Name | Description |
|---|---|
| buf | The buffers that will be filled. |
Returns the total number of bytes read.
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.