MCPcopy Create free account
hub / github.com/cutechess/cutechess / PipeReader

Method PipeReader

projects/lib/src/pipereader_win.cpp:23–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22
23PipeReader::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
36qint64 PipeReader::bytesAvailable() const
37{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected