| [Overview][Constants][Classes][Index] | 
Set location in the buffer
Source position: bufstream.pp line 63
| public function TReadBufStream.Seek( | 
| const Offset: Int64; | 
| Origin: TSeekOrigin | 
| ):Int64; override; | 
| Offset | 
 | Offset (in bytes) of origin | 
| Origin | 
 | Origin of seek operation | 
New position
Seek sets the location in the buffer. Currently, only a forward seek is allowed. It is emulated by reading and discarding data. For an explanation of the parameters, see TStream.Seek".
The seek method needs enhancement to enable it to do a full-featured seek. This may be implemented in a future release of Free Pascal.
In case an illegal seek operation is attempted, an exception is raised.
| 
 | Set stream position. | |
| 
 | Reads data from the stream |