42 const char *qname,
size_t qname_len,
55 static const char L[256] = {
56 15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
57 15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
58 15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
59 15,15,15,15,15,15,15,15,15,15,15,15,15, 0,15,15,
60 15, 1,14, 2,13,15,15, 4,11,15,15,12,15, 3,15,15,
61 15,15, 5, 6, 8,15, 7, 9,15,10,15,15,15,15,15,15,
62 15, 1,14, 2,13,15,15, 4,11,15,15,12,15, 3,15,15,
63 15,15, 5, 6, 8,15, 7, 9,15,10,15,15,15,15,15,15,
64 15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
65 15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
66 15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
67 15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
68 15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
69 15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
70 15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
71 15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15
79 bam_len = qname_len + 1 + ncigar*4 + (len+1)/2 + len + extra_len;
103 strncpy((
char *)cp, qname, qname_len);
106 memcpy(cp, cigar, ncigar*4);
109 for (i = 0; i+1 < len; i+=2) {
110 *cp++ = (L[(uc)seq[i]]<<4) + L[(uc)seq[i+1]];
113 *cp++ = L[(uc)seq[i]]<<4;
115 memcpy(cp, qual, len);
134 for (i = 0; i < h->
nref; i++) {