diff options
author | Max Horn | 2010-11-23 22:33:10 +0000 |
---|---|---|
committer | Max Horn | 2010-11-23 22:33:10 +0000 |
commit | 1cc80de1d912ecbc962d0d660f282c916a140c50 (patch) | |
tree | f278b0fbdd7663c63abf58adb847ab53b9ee07e2 | |
parent | be822d8bc27bf1ccc5972dd2da1e9183e034585e (diff) | |
download | scummvm-rg350-1cc80de1d912ecbc962d0d660f282c916a140c50.tar.gz scummvm-rg350-1cc80de1d912ecbc962d0d660f282c916a140c50.tar.bz2 scummvm-rg350-1cc80de1d912ecbc962d0d660f282c916a140c50.zip |
COMMON: Add SeekableReadStreamEndian class
svn-id: r54445
-rw-r--r-- | common/stream.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/common/stream.h b/common/stream.h index 99dcd8fa6e..52567e350e 100644 --- a/common/stream.h +++ b/common/stream.h @@ -391,7 +391,7 @@ public: /** * This is a ReadStream mixin subclass which adds non-endian read - * methods whose endianness is set du the stream creation. + * methods whose endianness is set during the stream creation. */ class ReadStreamEndian : virtual public ReadStream { private: @@ -421,6 +421,15 @@ public: } }; +/** + * This is a SeekableReadStream subclass which adds non-endian read + * methods whose endianness is set during the stream creation. + */ +class SeekableReadStreamEndian : public SeekableReadStream, public ReadStreamEndian { +public: + SeekableReadStreamEndian(bool bigEndian) : ReadStreamEndian(bigEndian) {} +}; + } // End of namespace Common |