57 if (((
id & 0x00FF00FF) == 0) && ((version & 0x00FF00FF) == 0)) {
91 return ((x1 & 0xFF000000) ) | ((x1 & 0x0000FF00) << 8) |
92 ((x2 & 0xFF000000) >> 16) | ((x2 & 0x0000FF00) >> 8);
Generic interface for a readable data stream.
bool _utf16le
The file's ID and version are in little-endian UTF-16.
uint32 getVersion() const
Return the file's version.
static void readHeader(Common::ReadStream &stream, uint32 &id, uint32 &version, bool &utf16le)
Read the header out of a stream.
Base for BioWare's Aurora engine files.
uint32 _id
The file's ID.
uint32 _version
The file's version.
static uint32 convertUTF16LE(uint32 x1, uint32 x2)
Basic reading stream interfaces.
uint32 readUint32BE()
Read an unsigned 32-bit word stored in big endian (MSB first) order from the stream and return it...
static uint32 readHeaderID(Common::ReadStream &stream)
Read the ID out of a stream.
bool isUTF16LE() const
Were the ID and version encoded in little-endian UTF-16 in the file?
uint32 getID() const
Return the file's ID.