samio.cc
//updates b with next read; returns >=0 on success
updates b with next read; returns >=0 on success
updates b with next read ; returns > = 0 on success
int SamReader::next(bam1_t* b){
	if (this->has_region()){
		return sam_itr_next(this->in, this->iter, b);
	}
	else{
		return sam_read1(this->in, this->header, b);
	}
}
int SamReader :: next ( bam1_t * b ) { if ( this -> has_region ( ) ) { return sam_itr_next ( this -> in , this -> iter , b ) ; } else { return sam_read1 ( this -> in , this -> header , b ) ; } }
updates b with next read; returns >=0 on success
updates b with next read ; returns > = 0 on success