53 if (m_buffer.size() - lineLength < CHUNK_SIZE) {
54 m_buffer.resize(m_buffer.size() + CHUNK_SIZE);
57 fileHandle.getline(m_buffer.data() + lineLength, CHUNK_SIZE);
58 lineLength = strlen(m_buffer.data());
61 if (fileHandle.good() || fileHandle.eof() || fileHandle.bad()) {
63 }
else if (fileHandle.fail()) {
68 setg(m_buffer.data(), m_buffer.data(), m_buffer.data() + lineLength);
70 if ((fileHandle.eof() || fileHandle.bad()) && lineLength == 0) {