1
2
3
4
5
6
7
8
9
10
11
12
13
mod accreader;

pub use self::accreader::AccReader;

use std::io::{BufRead, Seek};

/// Used to interact with a buffer.
pub trait Buffered: BufRead + Seek + Send + Sync {
    /// Returns the data contained in a buffer as a sequence of bytes.
    fn data(&self) -> &[u8];
    /// Increases the size of a buffer.
    fn grow(&mut self, len: usize);
}