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:
offset the relative offset in bytes
whence the seek reference: SEEK_SET, SEEK_CUR, or SEEK_END
Returns:
true on success, false in case of a failure

Implemented in Common::File, Common::BufferedSeekableReadStream, Common::MemoryReadStream, Gob::SaveConverter, and Sword2::SafeSubReadStream.

Referenced by Agi::WagFileParser::checkWagVersion(), Graphics::SmackerDecoder::decodeNextFrame(), Graphics::FlicDecoder::decodeNextFrame(), Sci::SeqDecoder::decodeNextFrame(), Cine::detectSaveGameFormat(), Gob::SaveConverter_v4::getDescription(), Gob::SaveConverter_v3::getDescription(), Gob::SaveReader::getInfo(), Gob::SaveContainer::getPartsInfo(), Gob::SaveContainer::isSave(), Kyra::AMIGAFont::load(), Graphics::FlicDecoder::loadFile(), Cine::loadResourcesFromSave(), Agi::WagFileParser::parse(), Common::XMLParser::parse(), Common::XMLParser::parserError(), Audio::RawStream< stereo, is16Bit, isUnsigned, isLE >::readBuffer(), readLine(), Cine::OSRenderer::restorePalette(), Common::BufferedSeekableReadStream::seek(), Common::File::seek(), skip(), and Common::XMLParser::skipComments().


Generated by  Doxygen 1.6.0   Back to index