@param fp BGZF file being written @param b Alignment record to write @return number of bytes written on success -1 on error
This function can only write BAM format files. Most code should use sam_write1() instead, which can be used with BAM, SAM and CRAM formats.
See Implementation
@param fp BGZF file being written @param b Alignment record to write @return number of bytes written on success -1 on error
This function can only write BAM format files. Most code should use sam_write1() instead, which can be used with BAM, SAM and CRAM formats.