Struct resol_vbus::BlobReader
[−]
[src]
pub struct BlobReader<R: Read> { /* fields omitted */ }
A buffering reader.
Methods
impl<R: Read> BlobReader<R>
[src]
fn new(reader: R) -> BlobReader<R>
Constructs a new BlobReader<T>
.
fn read(&mut self) -> Result<usize>
Reads additional data to the internal buffer.
fn consume(&mut self, length: usize)
Consume the given amount of data from the internal buffer.
fn as_bytes(&self) -> &[u8]
Returns the byte slice of the internal buffer.