Skip to content

Commit

Permalink
bgzf/multithreaded_reader: Add position getter
Browse files Browse the repository at this point in the history
  • Loading branch information
zaeleus committed Aug 29, 2023
1 parent f8b0a01 commit 5bfd362
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions noodles-bgzf/src/multithreaded_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ impl MultithreadedReader {
}
}

/// Returns the current position of the stream.
pub fn position(&self) -> u64 {
self.position
}

/// Shuts down the reader and inflate workers.
pub fn finish(&mut self) -> io::Result<()> {
self.recycle_tx.take();
Expand Down

0 comments on commit 5bfd362

Please sign in to comment.