aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-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);