]> git.cworth.org Git - apitrace/blobdiff - trace_snappyfile.hpp
Remove unused files.
[apitrace] / trace_snappyfile.hpp
index 398ff7900c335a4c7f3b55d8afe0e643c5651e49..33159ec73cc81eb4413158de707940a2c64c5211 100644 (file)
@@ -62,7 +62,8 @@ protected:
     virtual int rawGetc();
     virtual void rawClose();
     virtual void rawFlush();
-    virtual bool rawSkip(unsigned length);
+    virtual bool rawSkip(size_t length);
+    virtual int rawPercentRead();
 
 private:
     inline size_t usedCacheSize() const
@@ -83,7 +84,8 @@ private:
     {
         return m_stream.eof() && freeCacheSize() == 0;
     }
-    void flushCache();
+    void flushWriteCache();
+    void flushReadCache(size_t skipLength = 0);
     void createCache(size_t size);
     void writeCompressedLength(size_t length);
     size_t readCompressedLength();
@@ -96,6 +98,7 @@ private:
     char *m_compressedCache;
 
     File::Offset m_currentOffset;
+    std::streampos m_endPos;
 };
 
 }