Logo Search packages:      
Sourcecode: scummvm version File versions

bool File::seek ( int32  offset,
int  whence = SEEK_SET 
) [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.

offset the relative offset in bytes
whence the seek reference: SEEK_SET, SEEK_CUR, or SEEK_END
true on success, false in case of a failure

Implements Common::SeekableReadStream.

Definition at line 161 of file file.cpp.

References _handle, and Common::SeekableReadStream::seek().

      return _handle->seek(offs, whence);

Generated by  Doxygen 1.6.0   Back to index