aboutsummaryrefslogtreecommitdiff
path: root/common/stream.h
diff options
context:
space:
mode:
authorMatthew Hoops2010-11-26 15:06:25 +0000
committerMatthew Hoops2010-11-26 15:06:25 +0000
commit34db1820eb55eeebde93754955d50bccef59a3e7 (patch)
tree4f54803d460d27d7f58d5a4efe249d3816305965 /common/stream.h
parent52b89206c0525b175187401b3a64b706abf95719 (diff)
downloadscummvm-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/stream.h')
-rw-r--r--common/stream.h2
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);