diff options
author | Matthew Hoops | 2010-11-26 15:06:25 +0000 |
---|---|---|
committer | Matthew Hoops | 2010-11-26 15:06:25 +0000 |
commit | 34db1820eb55eeebde93754955d50bccef59a3e7 (patch) | |
tree | 4f54803d460d27d7f58d5a4efe249d3816305965 /common | |
parent | 52b89206c0525b175187401b3a64b706abf95719 (diff) | |
download | scummvm-rg350-34db1820eb55eeebde93754955d50bccef59a3e7.tar.gz scummvm-rg350-34db1820eb55eeebde93754955d50bccef59a3e7.tar.bz2 scummvm-rg350-34db1820eb55eeebde93754955d50bccef59a3e7.zip |
COMMON: Add an isBE() function to get the endianness of a ReadStreamEndian
svn-id: r54500
Diffstat (limited to 'common')
-rw-r--r-- | common/stream.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/stream.h b/common/stream.h index 52567e350e..65b4971a72 100644 --- a/common/stream.h +++ b/common/stream.h @@ -400,6 +400,8 @@ private: public: ReadStreamEndian(bool bigEndian) : _bigEndian(bigEndian) {} + bool isBE() const { return _bigEndian; } + uint16 readUint16() { uint16 val; read(&val, 2); |