Function rust_htslib::htslib::bam_endpos [] [src]

pub unsafe extern "C" fn bam_endpos(b: *const bam1_t) -> i32

@abstract Calculate the rightmost base position of an alignment on the reference genome.

@param b pointer to an alignment @return the coordinate of the first base after the alignment, 0-based

@discussion For a mapped read, this is just b->core.pos + bam_cigar2rlen. For an unmapped read (either according to its flags or if it has no cigar string), we return b->core.pos + 1 by convention.