Trait teehistorian::ThBufRead[][src]

pub trait ThBufRead {
    fn get_buf(&self) -> &[u8];
fn fill_buf(&mut self) -> Result<usize>;
fn consume(&mut self, amount: usize); }

Required methods

fn get_buf(&self) -> &[u8][src]

returns current buffer

fn fill_buf(&mut self) -> Result<usize>[src]

returns the number of extra bytes read, 0 indicates eof

fn consume(&mut self, amount: usize)[src]

number of bytes to discard from the buffer. must be no more than the buffer len from get_buf

Loading content...

Implementations on Foreign Types

impl ThBufRead for &[u8][src]

Loading content...

Implementors

impl<R: Read> ThBufRead for ThBufReader<R>[src]

Loading content...