Trait noodles_bgzf::io::Seek

source ·
pub trait Seek {
    // Required methods
    fn seek_to_virtual_position(
        &mut self,
        pos: VirtualPosition,
    ) -> Result<VirtualPosition>;
    fn seek_with_index(&mut self, index: &Index, pos: SeekFrom) -> Result<u64>;
}
Expand description

A seekable BGZF reader.

Required Methods§

source

fn seek_to_virtual_position( &mut self, pos: VirtualPosition, ) -> Result<VirtualPosition>

Seeks the stream to the given virtual position.

source

fn seek_with_index(&mut self, index: &Index, pos: SeekFrom) -> Result<u64>

Seeks the stream to the given position using an index.

Implementors§

source§

impl<R> Seek for Reader<R>
where R: Read + Seek,

source§

impl<R> Seek for MultithreadedReader<R>
where R: Read + Send + Seek + 'static,