Make HashedBlockStream::atEnd report EOF correctly

This commit is contained in:
angelsl
2017-11-12 21:48:53 +08:00
committed by Jonathan White
parent 663b8dcb08
commit a5ec7fc704
2 changed files with 6 additions and 0 deletions

View File

@@ -256,3 +256,7 @@ bool HashedBlockStream::writeHashedBlock()
return true;
}
bool HashedBlockStream::atEnd() const {
return m_eof;
}

View File

@@ -34,6 +34,8 @@ public:
bool reset() override;
void close() override;
bool atEnd() const override;
protected:
qint64 readData(char* data, qint64 maxSize) override;
qint64 writeData(const char* data, qint64 maxSize) override;