fn seek_to(&mut self, idx: &IndexRecord, start: u64) -> io::Result<u64> {
        assert!(start <= idx.len);

        let line_offset = start % idx.line_bases;
        let line_start = start / idx.line_bases * idx.line_bytes;
        let offset = idx.offset + line_start + line_offset;
        self.reader.seek(io::SeekFrom::Start(offset))?;

        Ok(line_offset)
    }
/// Seek to the given position in the specified FASTA record. The position
/// of the cursor on the line that the seek ended on is returned.
Seek to the given position in the specified FASTA record. The position
of the cursor on the line that the seek ended on is returned.
Seek to the given position in the specified FASTA record . The position of the cursor on the line that the seek ended on is returned .
fn seek_to(&mut self, idx: &IndexRecord, start: u64) -> io::Result<u64> {
        assert!(start <= idx.len);
        let line_offset = start % idx.line_bases;
        let line_start = start / idx.line_bases * idx.line_bytes;
        let offset = idx.offset + line_start + line_offset;
        self.reader.seek(io::SeekFrom::Start(offset))?;
        Ok(line_offset)
    }
fn seek_to ( & mut self , idx : & IndexRecord , start : u64 ) -> io :: Result < u64 > { assert ! ( start idx len ) ; let line_offset = start % idx . line_bases ; let line_start = start / idx . line_bases * idx . line_bytes ; let offset = idx . offset + line_start + line_offset ; self . reader . seek ( io :: SeekFrom :: Start ( offset ) ) ? ; Ok ( line_offset ) }
Seek to the given position in the specified FASTA record.
Seek to the given position in the specified FASTA record .
&mut self
idx
&IndexRecord
start
u64
&mut self
idx
&IndexRecord
start
u64