aboutsummaryrefslogtreecommitdiff
path: root/common/stream.h
diff options
context:
space:
mode:
authorJohannes Schickel2008-03-26 21:16:16 +0000
committerJohannes Schickel2008-03-26 21:16:16 +0000
commit6412c82bf7a88cd7262baf82707263a11932ce11 (patch)
treed02c60711912a47f39b23999e1e3c0652aece219 /common/stream.h
parent8ca0c65cbdd2cdd058e314ff1c8fcc01d48289d2 (diff)
downloadscummvm-rg350-6412c82bf7a88cd7262baf82707263a11932ce11.tar.gz
scummvm-rg350-6412c82bf7a88cd7262baf82707263a11932ce11.tar.bz2
scummvm-rg350-6412c82bf7a88cd7262baf82707263a11932ce11.zip
Added some inlines to MemoryReadStreamEndian.
svn-id: r31248
Diffstat (limited to 'common/stream.h')
-rw-r--r--common/stream.h5
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();
}