[−][src]Trait genio::bufio::BufRead
A BufRead
is a type of Read
er which has an internal buffer, allowing it to perform extra ways
of reading.
Required methods
fn fill_buf(&mut self) -> Result<&[u8], Self::ReadError>
Fills the internal buffer of this object, returning the buffer contents. This function is a lower-level call. It needs to be paired with the consume() method to function properly.
fn consume(&mut self, amount: usize)
Tells this buffer that amount
bytes have been consumed from the buffer, so they should no
longer be returned in calls to read
.