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

BOOL PFile::SetPosition ( off_t  pos,
FilePositionOrigin  origin = Start 
) [virtual, inherited]

Set the current active position in the file for the next read or write operation. The pos# variable is a signed number which is added to the specified origin. For origin == PFile::Start# only positive values for pos# are meaningful. For origin == PFile::End# only negative values for pos# are meaningful.

TRUE if the new file position was set.
pos  New position to set.
origin  Origin for position change.

Reimplemented in PMemoryFile, and PWAVFile.

Definition at line 1087 of file pchannel.cxx.

  return TRUE;
  return _lseek(GetHandle(), pos, origin) != (off_t)-1;

Generated by  Doxygen 1.6.0   Back to index