]> git.cworth.org Git - apitrace/blobdiff - trace_file.cpp
Time scanning of the file and a few frame reads.
[apitrace] / trace_file.cpp
index 4c170a6043fcf7d2276ea5f0205e7f0f6af03020..d4e74b9ab45a6ff54b748b6eddb44ccabd27fb4b 100644 (file)
@@ -56,6 +56,16 @@ File::~File()
     close();
 }
 
+
+File::Offset File::currentOffset()
+{
+    return File::Offset();
+}
+
+void File::setCurrentOffset(const File::Offset &offset)
+{
+}
+
 bool File::isZLibCompressed(const std::string &filename)
 {
     std::fstream stream(filename.c_str(),
@@ -129,7 +139,13 @@ void ZLibFile::rawClose()
     }
 }
 
-void ZLibFile::rawFlush(FlushType type)
+void ZLibFile::rawFlush()
 {
     gzflush(m_gzFile, Z_SYNC_FLUSH);
 }
+
+
+bool ZLibFile::supportsOffsets() const
+{
+    return false;
+}