API Reference > OdDg Classes > OdDgFiler Class > OdDgFiler Methods > OdDgFiler::seek Method
OdDgFiler::seek Method
Syntax
C++
virtual void seek(OdInt32 offset, OdDb::FilerSeekType whence) = 0;
Parameters 
Description 
OdInt32 offset 
[in] Number of bytes.  
seekType 
[in] Seek type. 

Moves the I/O pointer to the specified location in this Filer object. 

 

seekType must be one of the following: 

 

Name 
Value 
Description. 
OdDb::kSeekFromStart 
SEEK_SET 
Start of file. 
OdDb::kSeekFromCurrent 
SEEK_CUR 
Current position of I/O pointer. 
OdDb::kSeekFromEnd 
SEEK_END 
End of file. 

 

The default implementation of this function does nothing but throw an exception.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.