X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bam.h;h=34b27958d38bde898bf0315847f9115f0394e80c;hb=80658e4d152b53bd55927c432ceece7702ab49d7;hp=87e3de326fea144e10323ad8229309b6b31136a4;hpb=19bf588b6b3425b1e925a2f837f0b8f351d057d7;p=samtools.git diff --git a/bam.h b/bam.h index 87e3de3..34b2795 100644 --- a/bam.h +++ b/bam.h @@ -40,7 +40,7 @@ @copyright Genome Research Ltd. */ -#define BAM_VERSION "0.1.15 (r949:203)" +#define BAM_VERSION "0.1.16-dev (r969:252)" #include #include @@ -746,4 +746,13 @@ static inline bam1_t *bam_dup1(const bam1_t *src) return b; } +static inline int bam_aux_type2size(int x) +{ + if (x == 'C' || x == 'c' || x == 'A') return 1; + else if (x == 'S' || x == 's') return 2; + else if (x == 'I' || x == 'i' || x == 'f') return 4; + else return 0; +} + + #endif