diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/stream.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/common/stream.h b/common/stream.h index deb018aad5..431acd3904 100644 --- a/common/stream.h +++ b/common/stream.h @@ -413,11 +413,11 @@ public: bool _bigEndian; MemoryReadStreamEndian(const byte *buf, uint32 len, bool bigEndian = false) : MemoryReadStream(buf, len), _bigEndian(bigEndian) {} - uint16 readUint16() { + inline uint16 readUint16() { return (_bigEndian) ? readUint16BE(): readUint16LE(); } - uint32 readUint32() { + inline uint32 readUint32() { return (_bigEndian) ? readUint32BE(): readUint32LE(); } @@ -425,7 +425,6 @@ public: return (int16)readUint16(); } - inline int32 readSint32() { return (int32)readUint32(); } |