Objects that wrap a byte-stream for reading and contain a buffer.
trait BufRead : Read {
/* Required methods */
fn consume(&mut self, num: usize) -> usize
fn copy_until<W>(&mut self, dst: &mut W, b: u8) -> Result<usize, Errno>
where W: Write,
}| Receiver | Name | Description |
|---|---|---|
&mut self | consume | Removes a certain number of bytes from the buffer. |
&mut self | copy_until | Copies bytes from the stream to a writer until a certain byte occurs. |