[Scummvm-cvs-logs] SF.net SVN: scummvm:[54500] scummvm/trunk/common/stream.h
mthreepwood at users.sourceforge.net
mthreepwood at users.sourceforge.net
Fri Nov 26 16:06:25 CET 2010
Revision: 54500
http://scummvm.svn.sourceforge.net/scummvm/?rev=54500&view=rev
Author: mthreepwood
Date: 2010-11-26 15:06:25 +0000 (Fri, 26 Nov 2010)
Log Message:
-----------
COMMON: Add an isBE() function to get the endianness of a ReadStreamEndian
Modified Paths:
--------------
scummvm/trunk/common/stream.h
Modified: scummvm/trunk/common/stream.h
===================================================================
--- scummvm/trunk/common/stream.h 2010-11-26 14:35:46 UTC (rev 54499)
+++ scummvm/trunk/common/stream.h 2010-11-26 15:06:25 UTC (rev 54500)
@@ -400,6 +400,8 @@
public:
ReadStreamEndian(bool bigEndian) : _bigEndian(bigEndian) {}
+ bool isBE() const { return _bigEndian; }
+
uint16 readUint16() {
uint16 val;
read(&val, 2);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list