From 34db1820eb55eeebde93754955d50bccef59a3e7 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Fri, 26 Nov 2010 15:06:25 +0000 Subject: COMMON: Add an isBE() function to get the endianness of a ReadStreamEndian svn-id: r54500 --- common/stream.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common') 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); -- cgit v1.2.3