pub fn new(inner: R) -> Self {
        Self {
            inner: BufReader::new(GzipDecoder::new(BufReader::new(inner))),
        }
    }
/// Creates an async CRAM index reader.
///
/// # Examples
///
/// ```
/// use noodles_cram::crai;
/// let data = [];
/// let reader = crai::AsyncReader::new(&data[..]);
/// ```
Creates an async CRAM index reader.
Creates an async CRAM index reader .
pub fn new(inner: R) -> Self {
        Self {
            inner: BufReader::new(GzipDecoder::new(BufReader::new(inner))),
        }
    }
pub fn new ( inner : R ) -> Self { Self { inner : BufReader :: new ( GzipDecoder :: new ( BufReader :: new ( inner ) ) ) , } }
Creates an async CRAM index reader.
Creates an async CRAM index reader .
inner
R
inner
R
examples
```
use noodles_cram::crai;
let data = [];
let reader = crai::AsyncReader::new(&data[..]);
```
` ` ` use noodles_cram :: crai ; let data = [] ; let reader = crai :: AsyncReader :: new ( &data [ .. ] ) ; ` ` `