36 : m_buffer( buffer_size ), m_buffer_size( 0 ), m_buffer_pos( 0 )
38 m_file =
gzopen( filename,
"r" );
73 template <
typename Writer>
78 bool read_sequence =
false;
82 while ((c =
get()) != 255)
100 for (c =
get(); c !=
' ' && c !=
'\n'; c =
get())
105 while (c !=
'\n') { c =
get(); }
107 read_sequence =
true;
111 if (read_sequence && c !=
'\n' && c !=
' ')
125 if (m_buffer_pos >= m_buffer_size)
127 m_buffer_size =
uint32(
gzread( m_file, &m_buffer[0], (
unsigned int)m_buffer.size() ) );
130 return (m_buffer_pos < m_buffer_size) ? m_buffer[ m_buffer_pos++ ] : 255u;
137 : m_buffer( buffer_size ), m_buffer_size( 0 ), m_buffer_pos( 0 )
139 m_file =
gzopen( filename,
"r" );
181 template <
typename Writer>
186 bool read_sequence =
false;
188 while ((c =
get()) != 255)
208 m_id.erase( m_id.begin(), m_id.end() );
209 for (c =
get(); c !=
' ' && c !=
'\n'; c =
get())
210 m_id.push_back(
char(c) );
212 m_id.push_back(
'\0');
215 while (c !=
'\n') { c =
get(); }
218 m_read.erase( m_read.begin(), m_read.end() );
220 read_sequence =
true;
224 if (read_sequence && c !=
'\n' && c !=
' ')
225 m_read.push_back( c );
243 if (m_buffer_pos >= m_buffer_size)
245 m_buffer_size =
uint32(
gzread( m_file, &m_buffer[0], (
unsigned int)m_buffer.size() ) );
248 return (m_buffer_pos < m_buffer_size) ? m_buffer[ m_buffer_pos++ ] : 255u;