]> git.cworth.org Git - apitrace/blobdiff - trace_file.cpp
Some initial thoughts on the on-demand loading api.
[apitrace] / trace_file.cpp
index e20685812c5c6230c9e6f582f7ea2441bf5dfede..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(),
@@ -133,3 +143,9 @@ void ZLibFile::rawFlush()
 {
     gzflush(m_gzFile, Z_SYNC_FLUSH);
 }
+
+
+bool ZLibFile::supportsOffsets() const
+{
+    return false;
+}