]> git.cworth.org Git - apitrace/blobdiff - trace_snappyfile.hpp
Show thumbnail of the color buffer in tooltips.
[apitrace] / trace_snappyfile.hpp
index f1623b9c737f11d800b16120df302b95bcda8279..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
@@ -84,7 +85,7 @@ private:
         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();
@@ -97,6 +98,7 @@ private:
     char *m_compressedCache;
 
     File::Offset m_currentOffset;
+    std::streampos m_endPos;
 };
 
 }