Skip to content

Commit 9a070f4

Browse files
replacing pubsetbuf with built-in iss parsing
1 parent 04e4cce commit 9a070f4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sam_record.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,10 @@ operator<<(std::ostream &the_stream, const sam_rec &r) {
108108
}
109109

110110
sam_rec::sam_rec(const string &line) {
111-
111+
/*
112112
istringstream iss; // ADS: change to set the buffer from "line"
113-
iss.rdbuf()->pubsetbuf(const_cast<char*>(line.c_str()), line.size());
113+
iss.rdbuf()->pubsetbuf(const_cast<char*>(line.c_str()), line.size());*/
114+
istringstream iss(line);
114115
uint32_t will_become_mapq = 0; // to not read mapq as character
115116
// since it's uint8_t
116117
if (!(iss >>

0 commit comments

Comments
 (0)