virtual void rawClose();
virtual void rawFlush();
virtual bool rawSkip(size_t length);
+ virtual int rawPercentRead();
private:
inline size_t usedCacheSize() const
return m_stream.eof() && freeCacheSize() == 0;
}
void flushWriteCache();
- void flushReadCache();
+ void flushReadCache(size_t skipLength = 0);
void createCache(size_t size);
void writeCompressedLength(size_t length);
size_t readCompressedLength();
char *m_compressedCache;
File::Offset m_currentOffset;
+ std::streampos m_endPos;
};
}