aboutsummaryrefslogtreecommitdiff
path: root/common/stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/stream.h')
-rw-r--r--common/stream.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/stream.h b/common/stream.h
index ca2ad6721e..1294929149 100644
--- a/common/stream.h
+++ b/common/stream.h
@@ -388,6 +388,13 @@ public:
* err() or eos() to determine whether an exception occurred.
*/
virtual String readLine();
+
+ /**
+ * Return the beginning offset in the stream, which defaults to 0.
+ *
+ * @return the beginning offset of the stream
+ */
+ virtual uint32 getBeginOffset() { return 0; }
};
@@ -447,6 +454,7 @@ public:
virtual int32 pos() const { return _pos - _begin; }
virtual int32 size() const { return _end - _begin; }
+ virtual uint32 getBeginOffset() { return _begin; }
virtual bool seek(int32 offset, int whence = SEEK_SET);
};