Struct noodles_cram::crai::AsyncReader [−][src]
pub struct AsyncReader<R> { /* fields omitted */ }
Expand description
An async CRAM index reader.
Implementations
Creates an async CRAM index reader.
Examples
use noodles_cram::crai; let data = []; let reader = crai::AsyncReader::new(&data[..]);
Reads a CRAM index.
The position of the stream is expected to be at the start.
Examples
use noodles_cram::crai; use tokio::fs::File; let mut reader = File::open("sample.cram.crai") .await .map(crai::AsyncReader::new)?; let index = reader.read_index().await?;