xoreos
0.0.5
|
Generic interface for a readable data stream. More...
#include <readstream.h>
Public Member Functions | |
ReadStream () | |
virtual | ~ReadStream () |
virtual bool | eos () const =0 |
Returns true if a read failed because the stream has been reached. More... | |
virtual size_t | read (void *dataPtr, size_t dataSize)=0 |
Read data from the stream. More... | |
byte | readByte () |
Read an unsigned byte from the stream and return it. More... | |
FORCEINLINE int8 | readSByte () |
Read a signed byte from the stream and return it. More... | |
uint32 | readChar () |
Reads the next character from stream and returns it as an unsigned char cast to an uint32, or kEOF on end of file or error. More... | |
uint16 | readUint16LE () |
Read an unsigned 16-bit word stored in little endian (LSB first) order from the stream and return it. More... | |
uint32 | readUint32LE () |
Read an unsigned 32-bit word stored in little endian (LSB first) order from the stream and return it. More... | |
uint64 | readUint64LE () |
Read an unsigned 64-bit word stored in little endian (LSB first) order from the stream and return it. More... | |
uint16 | readUint16BE () |
Read an unsigned 16-bit word stored in big endian (MSB first) order from the stream and return it. More... | |
uint32 | readUint32BE () |
Read an unsigned 32-bit word stored in big endian (MSB first) order from the stream and return it. More... | |
uint64 | readUint64BE () |
Read an unsigned 64-bit word stored in big endian (MSB first) order from the stream and return it. More... | |
FORCEINLINE int16 | readSint16LE () |
Read a signed 16-bit word stored in little endian (LSB first) order from the stream and return it. More... | |
FORCEINLINE int32 | readSint32LE () |
Read a signed 32-bit word stored in little endian (LSB first) order from the stream and return it. More... | |
FORCEINLINE int64 | readSint64LE () |
Read a signed 64-bit word stored in little endian (LSB first) order from the stream and return it. More... | |
FORCEINLINE int16 | readSint16BE () |
Read a signed 16-bit word stored in big endian (MSB first) order from the stream and return it. More... | |
FORCEINLINE int32 | readSint32BE () |
Read a signed 32-bit word stored in big endian (MSB first) order from the stream and return it. More... | |
FORCEINLINE int64 | readSint64BE () |
Read a signed 64-bit word stored in big endian (MSB first) order from the stream and return it. More... | |
FORCEINLINE float | readIEEEFloatLE () |
Read a 32-bit IEEE float stored in little endian (LSB first) order from the stream and return it. More... | |
FORCEINLINE float | readIEEEFloatBE () |
Read a 32-bit IEEE float stored in big endian (MSB first) order from the stream and return it. More... | |
FORCEINLINE double | readIEEEDoubleLE () |
Read a 64-bit IEEE double stored in little endian (LSB first) order from the stream and return it. More... | |
FORCEINLINE double | readIEEEDoubleBE () |
Read a 64-bit IEEE double stored in big endian (MSB first) order from the stream and return it. More... | |
MemoryReadStream * | readStream (size_t dataSize) |
Read the specified amount of data into a new[]'ed buffer which then is wrapped into a MemoryReadStream. More... | |
Static Public Attributes | |
static const uint32 | kEOF = 0xFFFFFFFF |
Return value for end-of-file. More... | |
static const size_t | kSizeInvalid = SIZE_MAX |
static const size_t | kPositionInvalid = SIZE_MAX |
Generic interface for a readable data stream.
Definition at line 64 of file readstream.h.
Common::ReadStream::ReadStream | ( | ) |
Definition at line 61 of file readstream.cpp.
|
virtual |
Definition at line 64 of file readstream.cpp.
|
pure virtual |
Returns true if a read failed because the stream has been reached.
For a SeekableReadStream, it is cleared by a successful seek.
Implemented in Common::SubReadStream, Common::MemoryReadStream, and Common::ReadFile.
Referenced by Aurora::VISFile::load(), Aurora::LYTFile::load(), Sound::WwiseSoundBank::load(), Graphics::Aurora::ModelNode_NWN_ASCII::load(), Graphics::TXI::load(), Common::ConfigFile::load(), Graphics::Aurora::Model_NWN::loadASCII(), Common::FoxPro::loadFields(), Common::FoxPro::loadMemos(), Sound::makeWAVStream(), Aurora::TwoDAFile::readHeaders2a(), Aurora::TwoDAFile::readRows2a(), Common::readString(), Common::readStringLine(), Graphics::Aurora::Model_NWN::skipAnimASCII(), and Common::WriteStream::writeStream().
|
pure virtual |
Read data from the stream.
Subclasses must implement this method; all other read methods are implemented using it.
dataPtr | pointer to a buffer into which the data is read. |
dataSize | number of bytes to be read. |
Implemented in Common::SubReadStream, Common::MemoryReadStream, and Common::ReadFile.
Referenced by Sound::AACDecoder::AACDecoder(), Sound::ASFGUID::ASFGUID(), Common::blowfishEBC(), Aurora::compress10(), Video::VPXDecoder::decodeFrame(), Sound::AACDecoder::decodeFrame(), Sound::WMACodec::decodeSuperFrame(), Common::decompressDeflate(), Common::decompressDeflateChunk(), Common::decompressDeflateWithoutOutputSize(), Common::decompressLZMA1(), Common::PEResources::loadFromEXE(), Common::FoxPro::loadMemos(), Common::FoxPro::loadRecords(), Sound::PacketizedVorbisStream::parseExtraData(), Aurora::LanguageManager::preParseColorCodes(), Common::printDataHex(), Sound::read_stream_wrap(), readByte(), Graphics::TPC::readData(), Graphics::TXB::readData(), Graphics::SBM::readData(), Graphics::WinIconImage::readData(), Graphics::DDS::readData(), Graphics::TGA::readData(), Common::readFakeChar(), Graphics::XEOSITEX::readMipMaps(), Common::readStream(), readStream(), Common::readStringFixed(), readUint16BE(), readUint16LE(), readUint32BE(), readUint32LE(), readUint64BE(), readUint64LE(), Aurora::ERFFile::readV22Header(), Aurora::ERFFile::readV30Header(), Common::searchBackwards(), Common::FoxPro::setMemo(), Graphics::TTFRenderer::TTFRenderer(), and Common::WriteStream::writeStream().
|
inline |
Read an unsigned byte from the stream and return it.
Definition at line 92 of file readstream.h.
References Common::kReadError, and read().
Referenced by Aurora::ActionScript::ASBuffer::actionDefineFunction2(), Aurora::ActionScript::ASBuffer::actionPush(), Aurora::ActionScript::ASBuffer::actionStoreRegister(), Aurora::decompress10(), Graphics::Aurora::NFTRFont::drawGlyph(), Graphics::CBGT::drawImage(), Aurora::ActionScript::ASBuffer::execute(), Aurora::GFF3Struct::getData(), Aurora::GFF4Struct::getSint(), Aurora::GFF3Struct::getString(), Aurora::NSBTXFile::getTexture2bpp(), Aurora::NSBTXFile::getTexture4bpp(), Aurora::NSBTXFile::getTexture8bpp(), Aurora::NSBTXFile::getTextureA3I5(), Aurora::NSBTXFile::getTextureA5I3(), Aurora::GFF4Struct::getUint(), Aurora::LTRFile::load(), Graphics::Aurora::Model_Witcher::load(), Graphics::Aurora::PLTFile::load(), Graphics::Aurora::Model_KotOR::load(), Graphics::Aurora::Model_Jade::load(), Sound::WwiseSoundBank::load(), Graphics::Aurora::Model_NWN::loadBinary(), Common::FoxPro::loadFields(), Common::FoxPro::loadHeader(), Common::FoxPro::loadRecords(), Sound::PacketizedVorbisStream::parseExtraData(), Graphics::Aurora::ModelNode_DragonAge::read2Float32(), Graphics::Aurora::ModelNode_DragonAge::read3Float32(), Graphics::Aurora::ModelNode_DragonAge::read4Float32(), Graphics::Aurora::Model_KotOR::readAnim(), Graphics::Aurora::Model_NWN::readAnimBinary(), Graphics::Aurora::Model_Sonic::readBoneCommands(), Graphics::NCGR::readChar(), readChar(), Graphics::Aurora::ABCFont::readCharDesc(), Graphics::WinIconImage::readData(), Graphics::TGA::readData(), Aurora::NSBTXFile::readFileHeader(), Graphics::Aurora::NFTRFont::readGlyphs(), Graphics::NCLR::readHeader(), Graphics::TPC::readHeader(), Graphics::XEOSITEX::readHeader(), Graphics::TXB::readHeader(), Graphics::TGA::readHeader(), Graphics::NCGR::readHeader(), Graphics::Aurora::NFTRFont::readHeader(), Graphics::Aurora::Model_Sonic::readHeader(), Graphics::NBFS::readImage(), Graphics::Aurora::NFTRFont::readInfo(), Graphics::Aurora::Model_Sonic::readInfoOffset(), Graphics::Aurora::Model_Sonic::readInfoOffsetCount(), Graphics::Aurora::Model_Sonic::readMaterialResource(), Graphics::Aurora::ModelNode_Jade::readMaterialTextures(), Graphics::Aurora::ModelNode_Witcher::readMesh(), Graphics::Aurora::ModelNode_NWN_Binary::readMesh(), Graphics::Aurora::ModelNode_KotOR::readMesh(), Video::readMP4Desc(), Video::readMP4DescLength(), Aurora::NDSFile::readNames(), Graphics::Aurora::ModelNode_Witcher::readNodeControllers(), Graphics::Aurora::ModelNode_KotOR::readNodeControllers(), Graphics::Aurora::ModelNode_NWN_Binary::readNodeControllers(), Aurora::NSBTXFile::readPalettes(), Graphics::TGA::readRLE(), readSByte(), Graphics::Aurora::ModelNode_Witcher::readTexturePaint(), Aurora::NSBTXFile::readTextures(), and Graphics::Aurora::NFTRFont::readWidths().
|
inline |
Reads the next character from stream and returns it as an unsigned char cast to an uint32, or kEOF on end of file or error.
Similar to fgetc().
Definition at line 108 of file readstream.h.
References kEOF, and readByte().
Referenced by Common::StreamTokenizer::findFirstToken(), Common::StreamTokenizer::getToken(), Common::StreamTokenizer::isChunkEnd(), Aurora::VISFile::load(), Common::StreamTokenizer::nextChunk(), Aurora::ActionScript::ASBuffer::readString(), and Common::StreamTokenizer::skipChunk().
|
inline |
Read a 64-bit IEEE double stored in big endian (MSB first) order from the stream and return it.
Definition at line 251 of file readstream.h.
References convertIEEEDouble(), and readUint64BE().
Referenced by Common::MemoryReadStreamEndian::readIEEEDouble(), and Common::SeekableSubReadStreamEndian::readIEEEDouble().
|
inline |
Read a 64-bit IEEE double stored in little endian (LSB first) order from the stream and return it.
Definition at line 244 of file readstream.h.
References convertIEEEDouble(), and readUint64LE().
Referenced by Aurora::ActionScript::ASBuffer::actionPush(), Aurora::GFF3Struct::getDouble(), Common::MemoryReadStreamEndian::readIEEEDouble(), and Common::SeekableSubReadStreamEndian::readIEEEDouble().
|
inline |
Read a 32-bit IEEE float stored in big endian (MSB first) order from the stream and return it.
Definition at line 237 of file readstream.h.
References convertIEEEFloat(), and readUint32BE().
Referenced by Common::MemoryReadStreamEndian::readIEEEFloat(), and Common::SeekableSubReadStreamEndian::readIEEEFloat().
|
inline |
Read a 32-bit IEEE float stored in little endian (LSB first) order from the stream and return it.
Definition at line 230 of file readstream.h.
References convertIEEEFloat(), and readUint32LE().
Referenced by Aurora::ActionScript::ASBuffer::actionPush(), Engines::KotOR::Walkmesh::appendVertices(), Aurora::GFF3Struct::getOrientation(), Aurora::GFF3Struct::getVector(), Aurora::LTRFile::load(), Graphics::Aurora::Model_Witcher::load(), Graphics::Aurora::Model_KotOR::load(), Graphics::Aurora::Model_Jade::load(), Graphics::Aurora::ModelNode_Jade::load(), Sound::FMODSampleBank::load(), Graphics::Aurora::ModelNode_KotOR::load(), Aurora::FEVFile::load(), Graphics::Aurora::Model_NWN::loadBinary(), Graphics::Aurora::ModelNode_NWN2::loadRigid(), Graphics::Aurora::ModelNode_NWN2::loadSkin(), Graphics::Aurora::ModelNode_DragonAge::read2Float32(), Graphics::Aurora::ModelNode_DragonAge::read3Float32(), Graphics::Aurora::ModelNode_DragonAge::read4Float32(), Graphics::Aurora::Model_KotOR::readAnim(), Graphics::Aurora::ModelNode_NWN_Binary::readAnim(), Graphics::Aurora::Model_NWN::readAnimBinary(), Aurora::FEVFile::readCategory(), Aurora::FEVFile::readEvent(), Common::MemoryReadStreamEndian::readIEEEFloat(), Common::SeekableSubReadStreamEndian::readIEEEFloat(), Graphics::Aurora::ModelNode_Jade::readMaterialTextures(), Graphics::Aurora::ModelNode_Witcher::readMesh(), Graphics::Aurora::ModelNode_NWN_Binary::readMesh(), Graphics::Aurora::ModelNode_KotOR::readMesh(), Graphics::Aurora::ModelNode_Jade::readMesh(), Aurora::FEVFile::readProperties(), Graphics::Aurora::ModelNode_KotOR::readSkin(), Graphics::Aurora::ModelNode_Witcher::readTexturePaint(), and Graphics::Aurora::Model::readValue().
|
inline |
Read a signed byte from the stream and return it.
Definition at line 101 of file readstream.h.
References readByte().
Referenced by Aurora::GFF4Struct::getSint(), and Aurora::GFF4Struct::getUint().
|
inline |
Read a signed 16-bit word stored in big endian (MSB first) order from the stream and return it.
Definition at line 209 of file readstream.h.
References readUint16BE().
Referenced by Common::MemoryReadStreamEndian::readSint16(), and Common::SeekableSubReadStreamEndian::readSint16().
|
inline |
Read a signed 16-bit word stored in little endian (LSB first) order from the stream and return it.
Definition at line 188 of file readstream.h.
References readUint16LE().
Referenced by Aurora::ActionScript::ASBuffer::actionIf(), Aurora::ActionScript::ASBuffer::actionJump(), Sound::FMODSampleBank::load(), Common::MemoryReadStreamEndian::readSint16(), Common::SeekableSubReadStreamEndian::readSint16(), and Graphics::Aurora::ModelNode_KotOR::readSkin().
|
inline |
Read a signed 32-bit word stored in big endian (MSB first) order from the stream and return it.
Definition at line 216 of file readstream.h.
References readUint32BE().
Referenced by Common::MemoryReadStreamEndian::readSint32(), and Common::SeekableSubReadStreamEndian::readSint32().
|
inline |
Read a signed 32-bit word stored in little endian (LSB first) order from the stream and return it.
Definition at line 195 of file readstream.h.
References readUint32LE().
Referenced by Sound::FMODSampleBank::load(), Aurora::FEVFile::readProperties(), Common::MemoryReadStreamEndian::readSint32(), Common::SeekableSubReadStreamEndian::readSint32(), and Aurora::ERFFile::readV30ResList().
|
inline |
Read a signed 64-bit word stored in big endian (MSB first) order from the stream and return it.
Definition at line 223 of file readstream.h.
References readUint64BE().
Referenced by Common::MemoryReadStreamEndian::readSint64(), and Common::SeekableSubReadStreamEndian::readSint64().
|
inline |
Read a signed 64-bit word stored in little endian (LSB first) order from the stream and return it.
Definition at line 202 of file readstream.h.
References readUint64LE().
Referenced by Common::MemoryReadStreamEndian::readSint64(), and Common::SeekableSubReadStreamEndian::readSint64().
MemoryReadStream * Common::ReadStream::readStream | ( | size_t | dataSize | ) |
Read the specified amount of data into a new[]'ed buffer which then is wrapped into a MemoryReadStream.
When reading fails, a kReadError exception is thrown.
Definition at line 67 of file readstream.cpp.
References Common::ScopedPtrBase< T, Deallocator >::get(), Common::kReadError, read(), and Common::ScopedPtrBase< T, Deallocator >::release().
Referenced by Aurora::ActionScript::ASBuffer::actionDefineFunction(), Common::ZipFile::decompressFile(), Aurora::GFF3Struct::getData(), Aurora::LocString::readString(), Graphics::TPC::readTXI(), and Graphics::TXB::readTXI().
|
inline |
Read an unsigned 16-bit word stored in big endian (MSB first) order from the stream and return it.
Definition at line 155 of file readstream.h.
References Common::kReadError, and read().
Referenced by Aurora::isBigEndian(), Aurora::OBBFile::load(), Common::PEResources::loadFromEXE(), Common::FoxPro::loadMemos(), Sound::PacketizedVorbisStream::parseExtraData(), readSint16BE(), Common::MemoryReadStreamEndian::readUint16(), and Common::SeekableSubReadStreamEndian::readUint16().
|
inline |
Read an unsigned 16-bit word stored in little endian (LSB first) order from the stream and return it.
Definition at line 122 of file readstream.h.
References Common::kReadError, and read().
Referenced by Aurora::ActionScript::ASBuffer::actionConstantPool(), Aurora::ActionScript::ASBuffer::actionDefineFunction(), Aurora::ActionScript::ASBuffer::actionDefineFunction2(), Aurora::ActionScript::ASBuffer::actionPush(), Aurora::createDepth(), Graphics::Aurora::ModelNode_DragonAge::createIndexBuffer(), Sound::WMACodec::evalFlags(), Aurora::ActionScript::ASBuffer::execute(), Common::ZipFile::getFileProperties(), Sound::WMACodec::getFlags(), Common::ZipFile::load(), Graphics::Aurora::Model_NWN2::load(), Engines::NWN2::TRXFile::load(), Graphics::Aurora::ModelNode_KotOR::load(), Graphics::Aurora::ModelNode_Jade::load(), Sound::FMODSampleBank::load(), Common::PEResources::loadFromEXE(), Common::FoxPro::loadHeader(), Graphics::Aurora::ModelNode_NWN2::loadRigid(), Graphics::Aurora::ModelNode_NWN2::loadSkin(), Sound::makeWAVStream(), Sound::Packet::Packet(), Common::PEResources::parseResourceLevel(), Graphics::Aurora::ModelNode_DragonAge::read2Float32(), Graphics::Aurora::ModelNode_DragonAge::read3Float32(), Graphics::Aurora::ModelNode_DragonAge::read4Float32(), Aurora::KEYFile::readBIFList(), Aurora::readCells(), Graphics::CBGT::readCells(), Graphics::Aurora::ModelNode_Jade::readChunkedIndices(), Graphics::WinIconImage::readData(), Graphics::DDS::readData(), Graphics::TGA::readData(), Graphics::TPC::readHeader(), Graphics::TXB::readHeader(), Graphics::WinIconImage::readHeader(), Graphics::TGA::readHeader(), Graphics::Aurora::ModelNode_NWN_Binary::readMesh(), Graphics::Aurora::ModelNode_KotOR::readMesh(), Graphics::Aurora::ModelNode_Jade::readMesh(), Graphics::Aurora::ModelNode_Witcher::readNodeControllers(), Graphics::Aurora::ModelNode_KotOR::readNodeControllers(), Graphics::Aurora::ModelNode_NWN_Binary::readNodeControllers(), Graphics::NBFS::readPalette(), Graphics::CBGT::readPalettes(), Graphics::Aurora::ModelNode_Jade::readPlainIndices(), Aurora::RIMFile::readResList(), Aurora::KEYFile::readResList(), Aurora::TwoDAFile::readRows2b(), readSint16LE(), Common::MemoryReadStreamEndian::readUint16(), Common::SeekableSubReadStreamEndian::readUint16(), Graphics::readUint48LE(), Aurora::ERFFile::readV10KeyList(), Aurora::ERFFile::readV11KeyList(), and Aurora::ERFFile::readV21Header().
|
inline |
Read an unsigned 32-bit word stored in big endian (MSB first) order from the stream and return it.
Definition at line 166 of file readstream.h.
References Common::kReadError, and read().
Referenced by Engines::KotOR::Walkmesh::appendFromStream(), Graphics::Aurora::Model_NWN2::load(), Graphics::Aurora::Model_Jade::load(), Engines::NWN2::TRXFile::load(), Sound::FMODSampleBank::load(), Sound::XACTWaveBank_Binary::load(), Sound::WwiseSoundBank::load(), Aurora::FEVFile::load(), Aurora::GFXFile::load(), Engines::NWN2::TRXFile::loadDirectory(), Common::PEResources::loadFromEXE(), Engines::NWN2::TRXFile::loadPackets(), Graphics::Aurora::ModelNode_NWN2::loadRigid(), Graphics::Aurora::ModelNode_NWN2::loadSkin(), Sound::SoundManager::makeAudioStream(), Sound::makeWAVStream(), Aurora::GFF4File::Header::read(), Aurora::NSBTXFile::readFileHeader(), Graphics::XEOSITEX::readHeader(), Aurora::AuroraFile::readHeader(), Graphics::DDS::readHeader(), Graphics::Aurora::Model_Sonic::readHeader(), readIEEEFloatBE(), Aurora::NSBTXFile::readInfoHeader(), Graphics::Aurora::ModelNode_Witcher::readMesh(), Graphics::Aurora::Model_Sonic::readModelHeader(), Graphics::TGA::readRLE(), readSint32BE(), Graphics::DDS::readStandardHeader(), Graphics::Aurora::ModelNode_Witcher::readTexturePaint(), Common::MemoryReadStreamEndian::readUint32(), and Common::SeekableSubReadStreamEndian::readUint32().
|
inline |
Read an unsigned 32-bit word stored in little endian (LSB first) order from the stream and return it.
Definition at line 133 of file readstream.h.
References Common::kReadError, and read().
Referenced by Aurora::ActionScript::ASBuffer::actionPush(), Engines::KotOR::Walkmesh::appendFaceTypes(), Engines::KotOR::Walkmesh::appendFromStream(), Engines::KotOR::Walkmesh::appendIndices(), Sound::CodebookLibrary::CodebookLibrary(), Video::Bink::BinkAudioTrack::decodeAudio(), Sound::CodebookLibrary::getCodebook(), Aurora::GFF3Struct::getData(), Common::ZipFile::getFileProperties(), Aurora::TalkTable_TLK::getLanguageID(), Aurora::GFF3Struct::getLocString(), Aurora::GFF3Struct::getSint(), Aurora::GFF3Struct::getString(), Aurora::GFF3Struct::getUint(), Aurora::SACFile::load(), Graphics::Aurora::Model_Witcher::load(), Graphics::Aurora::PLTFile::load(), Common::ZipFile::load(), Graphics::Aurora::Model_KotOR::load(), Graphics::Aurora::Model_NWN2::load(), Graphics::Aurora::Model_Jade::load(), Graphics::Aurora::ModelNode_Witcher::load(), Aurora::HERFFile::load(), Aurora::RIMFile::load(), Engines::NWN2::TRXFile::load(), Aurora::KEYFile::load(), Aurora::NDSFile::load(), Aurora::BZFFile::load(), Graphics::Aurora::ModelNode_Jade::load(), Sound::FMODSampleBank::load(), Graphics::Aurora::ModelNode_NWN_Binary::load(), Sound::XACTWaveBank_Binary::load(), Aurora::BIFFile::load(), Sound::WwiseSoundBank::load(), Aurora::FEVFile::load(), Aurora::GFF3Struct::load(), Graphics::Aurora::Model_NWN::loadBinary(), Engines::NWN2::TRXFile::loadDirectory(), Common::FoxPro::loadFields(), Common::PEResources::loadFromEXE(), Common::FoxPro::loadHeader(), Engines::NWN2::TRXFile::loadPackets(), Graphics::Aurora::ModelNode_NWN2::loadRigid(), Graphics::Aurora::ModelNode_NWN2::loadSkin(), Engines::NWN2::TRXFile::loadTRWH(), Sound::SoundManager::makeAudioStream(), Sound::makeWAVStream(), Sound::Packet::Packet(), Video::XMVWMV2Codec::parseExtraData(), Graphics::Aurora::Model_NWN::ParserContext::ParserContext(), Common::PEResources::parseResourceLevel(), Aurora::GFF3File::Header::read(), Graphics::Aurora::ModelNode_DragonAge::read3Float32(), Graphics::Aurora::ModelNode_DragonAge::read4Float32(), Graphics::Aurora::Model_KotOR::readAnim(), Graphics::Aurora::ModelNode_NWN_Binary::readAnim(), Graphics::Aurora::Model_NWN::readAnimBinary(), Graphics::Aurora::Model::readArrayDef(), Aurora::KEYFile::readBIFList(), Graphics::DDS::readBioWareHeader(), Aurora::FEVFile::readCategory(), Graphics::Aurora::ABCFont::readCharDesc(), Graphics::Aurora::ModelNode_Jade::readChunkedIndices(), Graphics::WinIconImage::readData(), Aurora::HERFFile::readDictionary(), Aurora::SSFFile::readEntriesKotOR(), Aurora::SSFFile::readEntriesNWN(), Aurora::FEVFile::readEvent(), Aurora::FEVFile::readEventCategory(), Aurora::NDSFile::readFAT(), Aurora::GFF3Struct::readField(), Graphics::TPC::readHeader(), Graphics::XEOSITEX::readHeader(), Graphics::TXB::readHeader(), readIEEEFloatLE(), Aurora::GFF3Struct::readIndices(), Aurora::FEVFile::readLengthPrefixedString(), Aurora::LocString::readLocString(), Aurora::LocString::readLocSubString(), Graphics::Aurora::ModelNode_Jade::readMaterialTextures(), Graphics::Aurora::ModelNode_Witcher::readMesh(), Graphics::Aurora::ModelNode_NWN_Binary::readMesh(), Graphics::Aurora::ModelNode_KotOR::readMesh(), Graphics::Aurora::ModelNode_Jade::readMesh(), Graphics::XEOSITEX::readMipMaps(), Graphics::Aurora::ModelNode_Witcher::readNodeControllers(), Graphics::Aurora::ModelNode_KotOR::readNodeControllers(), Graphics::Aurora::ModelNode_NWN_Binary::readNodeControllers(), Aurora::FEVFile::readProperties(), Aurora::OBBFile::readResList(), Aurora::RIMFile::readResList(), Aurora::HERFFile::readResList(), Aurora::KEYFile::readResList(), readSint32LE(), Graphics::Aurora::ModelNode_KotOR::readSkin(), Aurora::readSmallHeader(), Aurora::SSFFile::readSSFHeader(), Graphics::DDS::readStandardHeader(), Aurora::LocString::readString(), Graphics::Aurora::ModelNode_Witcher::readTexturePaint(), Graphics::Aurora::ModelNode_Witcher::readTextures(), Common::MemoryReadStreamEndian::readUint32(), Common::SeekableSubReadStreamEndian::readUint32(), Graphics::readUint48LE(), Aurora::ERFFile::readV10Header(), Aurora::ERFFile::readV10ResList(), Aurora::ERFFile::readV11Header(), Aurora::ERFFile::readV20Header(), Aurora::ERFFile::readV20ResList(), Aurora::ERFFile::readV21Header(), Aurora::ERFFile::readV21ResList(), Aurora::ERFFile::readV22Header(), Aurora::ERFFile::readV22ResList(), Aurora::ERFFile::readV30Header(), Aurora::ERFFile::readV30ResList(), Graphics::Aurora::Model::readValue(), Aurora::BZFFile::readVarResTable(), Aurora::BIFFile::readVarResTable(), Aurora::HERFFile::searchDictionary(), and Aurora::TwoDAFile::skipRowNames2b().
|
inline |
Read an unsigned 64-bit word stored in big endian (MSB first) order from the stream and return it.
Definition at line 177 of file readstream.h.
References Common::kReadError, and read().
Referenced by readIEEEDoubleBE(), readSint64BE(), Common::MemoryReadStreamEndian::readUint64(), and Common::SeekableSubReadStreamEndian::readUint64().
|
inline |
Read an unsigned 64-bit word stored in little endian (LSB first) order from the stream and return it.
Definition at line 144 of file readstream.h.
References Common::kReadError, and read().
Referenced by Aurora::GFF3Struct::getSint(), Aurora::GFF3Struct::getUint(), readIEEEDoubleLE(), readSint64LE(), Common::MemoryReadStreamEndian::readUint64(), Common::SeekableSubReadStreamEndian::readUint64(), and Aurora::ERFFile::readV30ResList().
|
static |
Return value for end-of-file.
See readChar().
Definition at line 67 of file readstream.h.
Referenced by Common::StreamTokenizer::findFirstToken(), Common::StreamTokenizer::getToken(), Common::hashStringCRC32(), Common::hashStringDJB2(), Common::hashStringFNV32(), Common::hashStringFNV64(), Common::StreamTokenizer::isChunkEnd(), Common::StreamTokenizer::nextChunk(), readChar(), and Common::StreamTokenizer::skipChunk().
|
static |
Definition at line 70 of file readstream.h.
Referenced by Common::ReadFile::pos().
|
static |
Definition at line 69 of file readstream.h.
Referenced by Common::ReadFile::close().