diff options
author | Max Horn | 2006-04-26 10:54:32 +0000 |
---|---|---|
committer | Max Horn | 2006-04-26 10:54:32 +0000 |
commit | 7383f81d2fef5af29243c68c9b818f1a43b08d4f (patch) | |
tree | 4731844577b1c30fe9438e8ac6528bf786b4494e | |
parent | e78185aeb82790adc638d1f7c260a0ecd9d01792 (diff) | |
download | scummvm-rg350-7383f81d2fef5af29243c68c9b818f1a43b08d4f.tar.gz scummvm-rg350-7383f81d2fef5af29243c68c9b818f1a43b08d4f.tar.bz2 scummvm-rg350-7383f81d2fef5af29243c68c9b818f1a43b08d4f.zip |
Added a 'skip' method to SeekableReadStream (just an alias for seek(X, SEEK_CUR))
svn-id: r22178
-rw-r--r-- | common/stream.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/stream.h b/common/stream.h index 43e41af7ff..16b129d9c4 100644 --- a/common/stream.h +++ b/common/stream.h @@ -216,7 +216,9 @@ public: virtual uint32 pos() const = 0; virtual uint32 size() const = 0; - virtual void seek(int32 offs, int whence = SEEK_SET) = 0; + virtual void seek(int32 offset, int whence = SEEK_SET) = 0; + + void skip(uint32 offset) { seek(offset, SEEK_CUR); } /** * Read one line of text from a CR or CR/LF terminated plain text file. |