| 21 | |
| 22 | |
| 23 | PipeReader::PipeReader(HANDLE pipe, QObject* parent) |
| 24 | : QThread(parent), |
| 25 | m_pipe(pipe), |
| 26 | m_bufEnd(m_buf + BufSize), |
| 27 | m_start(m_buf), |
| 28 | m_end(m_buf), |
| 29 | m_freeBytes(BufSize), |
| 30 | m_usedBytes(0), |
| 31 | m_lastNewLine(1) |
| 32 | { |
| 33 | Q_ASSERT(m_pipe != INVALID_HANDLE_VALUE); |
| 34 | } |
| 35 | |
| 36 | qint64 PipeReader::bytesAvailable() const |
| 37 | { |
nothing calls this directly
no outgoing calls
no test coverage detected