pub fn new(reader: R, prefs: Preferences) -> Result<Self> {
        Ok(Self {
            inner: reader,
            comp: Compressor::new(prefs, None)?,
            consumed: 0,
        })
    }
/// Creates a new `BufReadCompressor<R>`.
Creates a new `BufReadCompressor`.
Creates a new ` BufReadCompressor ` .
pub fn new(reader: R, prefs: Preferences) -> Result<Self> {
        Ok(Self {
            inner: reader,
            comp: Compressor::new(prefs, None)?,
            consumed: 0,
        })
    }
pub fn new ( reader : R , prefs : Preferences ) -> Result < Self > { Ok ( Self { inner : reader , comp : Compressor :: new ( prefs , None ) ? , consumed : 0 , } ) }
Creates a new `BufReadCompressor<R>`.
Creates a new ` BufReadCompressor<R > ` .
reader
R
prefs
Preferences
reader
R
prefs
Preferences