pub fn new(inner: W) -> Self {
        Self {
            inner: Some(inner),
            buf: Vec::with_capacity(block::MAX_UNCOMPRESSED_DATA_LENGTH),
        }
    }
/// Creates a writer with a default compression level.
///
/// # Examples
///
/// ```
/// use noodles_bgzf as bgzf;
/// let writer = bgzf::Writer::new(Vec::new());
/// ```
Creates a writer with a default compression level.
Creates a writer with a default compression level .
pub fn new(inner: W) -> Self {
        Self {
            inner: Some(inner),
            buf: Vec::with_capacity(block::MAX_UNCOMPRESSED_DATA_LENGTH),
        }
    }
pub fn new ( inner : W ) -> Self { Self { inner : Some ( inner ) , buf : Vec :: with_capacity ( block :: MAX_UNCOMPRESSED_DATA_LENGTH ) , } }
Creates a writer with a default compression level.
Creates a writer with a default compression level .
inner
W
inner
W
examples
```
use noodles_bgzf as bgzf;
let writer = bgzf::Writer::new(Vec::new());
```
` ` ` use noodles_bgzf as bgzf ; let writer = bgzf :: Writer :: new ( Vec :: new () ) ; ` ` `