]> git.cworth.org Git - apitrace/blobdiff - trace_snappyfile.hpp
Cleanup that file.
[apitrace] / trace_snappyfile.hpp
index 7fab8351d42711958644d33be1c30251ae3b6fa6..c8c415bf57b47dacf0ee47e4138fdd6f25063ab0 100644 (file)
@@ -68,6 +68,10 @@ private:
         else
             return 0;
     }
+    inline bool endOfData() const
+    {
+        return m_stream.eof() && freeCacheSize() == 0;
+    }
     void flushCache();
     void createCache(size_t size);
     void writeCompressedLength(uint32_t  num);