Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

uint16 Common::ReadStream::readUint16BE (  )  [inline, inherited]

Read an unsigned 16-bit word stored in big endian (MSB first) order from the stream and return it. Performs no error checking. The return value is undefined if a read error occurred (for which client code can check by calling err() and eos() ).

Definition at line 241 of file stream.h.

References Common::ReadStream::readByte().

Referenced by Cine::ScriptVars::load(), Audio::loadAIFFFromStream(), Kyra::Palette::loadAmigaPalette(), Graphics::loadThumbnail(), Common::ReadStream::readSint16BE(), Common::ReadStream::readUint32BE(), and Common::wrapCompressedReadStream().

            uint16 b = readByte();
            uint16 a = readByte();
            return a | (b << 8);

Generated by  Doxygen 1.6.0   Back to index