[−][src]Trait linux::util::io::BufWrite
Objects that wrap a byte-stream for writing and contain a buffer.
Required methods
fn read_to_eof<R>(&mut self, r: R) -> Result<usize> where
R: Read,
R: Read,
Reads bytes from a Read
object and writes them to the stream until end-of-file.
[argument, r] The object from which to read.
[return_value] Returns the number of bytes written.
= Remarks
If an error occurs, the error is returned immediately and the number of bytes copied is lost. No data is lost even if an error occurs.
fn read<R>(&mut self, r: R, n: usize) -> Result<usize> where
R: Read,
R: Read,
Reads up to a specified number of bytes for a Read
object.
[argument, r] The object from which to read.
[argument, n] The maximum number of bytes to read.