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

virtual bool Common::SeekableReadStream::seek ( int32  offset,
int  whence = SEEK_SET 
) [pure virtual]

Sets the stream position indicator for the stream. The new position, measured in bytes, is obtained by adding offset bytes to the position specified by whence. If whence is set to SEEK_SET, SEEK_CUR, or SEEK_END, the offset is relative to the start of the file, the current position indicator, or end-of-file, respectively. A successful call to the seek() method clears the end-of-file indicator for the stream.

Parameters:
offsetthe relative offset in bytes
whencethe seek reference: SEEK_SET, SEEK_CUR, or SEEK_END
Returns:
true on success, false in case of a failure

Implemented in DS::DSFileStream, PSPIoStream, StdioStream, SymbianStdioStream, InVMSave, GBAMPSaveFile, DSSaveFile, Common::File, Common::SeekableSubReadStream, Common::BufferedSeekableReadStream, Common::MemoryReadStream, Common::ArjFile, Gob::DataStream, Gob::SaveConverter, Parallaction::PowerPackerStream, Scumm::BaseScummFile, Scumm::ScummFile, Scumm::ScummDiskImage, Scumm::ScummNESFile, and Sword2::SafeSubReadStream.

Referenced by Graphics::checkThumbnailHeader(), Agi::WagFileParser::checkWagVersion(), Graphics::BMPDecoder::decodeable(), Graphics::BMPDecoder::decodeImage(), Graphics::SmackerDecoder::decodeNextFrame(), Graphics::FlicDecoder::decodeNextFrame(), Graphics::Vmd::getAnchor(), Gob::SaveConverter_v4::getDescription(), Gob::SaveConverter_v3::getDescription(), Graphics::Vmd::getExtraData(), Gob::SaveReader::getInfo(), Gob::SaveContainer::getPartsInfo(), Gob::SaveContainer::isSave(), Graphics::Vmd::load(), Graphics::Imd::load(), Audio::loadAIFFFromStream(), Graphics::FlicDecoder::loadFile(), Audio::loadWAVFromStream(), Agi::WagFileParser::parse(), Common::XMLParser::parserError(), Audio::ADPCMInputStream::readBuffer(), readLine_NEW(), Cine::OSRenderer::restorePalette(), Common::ArjFile::seek(), Common::BufferedSeekableReadStream::seek(), Common::SeekableSubReadStream::seek(), Graphics::Vmd::seekFrame(), Graphics::Imd::seekFrame(), skip(), Common::XMLParser::skipComments(), Graphics::skipThumbnailHeader(), and Common::wrapCompressedReadStream().

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index