Single File System: Virtual File System Delphi Library
for Archive / Backup with Transparent Compression and Strong Encryption


TStream.Seek
Top 

TStream

Introduces an abstract method for moving to a specified position in the streamed resource.

function Seek(Offset: Longint; Origin: Word): Longint; virtual; abstract;

Description
Each descendant stream object defines a Seek method that moves the current position of the stream in its particular storage medium (such as memory or a disk file).

The Origin parameter indicates how to interpret the Offset parameter. Origin should be one of the following values:

Value    Meaning    
soFromBeginning   Offset is from the beginning of the resource. Seek moves to the position Offset. Offset must be >= 0.   
soFromCurrent   Offset is from the current position in the resource. Seek moves to Position + Offset.   
soFromEnd   Offset is from the end of the resource. Offset must be <= 0 to indicate a number of bytes before the end of the file.   

Seek returns the new value of the Position property.

Seek is called by the Position and Size properties.


© 2000-2004 AidAim Software LLC Single File System: Virtual File Syste