Topic Path: Symbol Reference > Classes > TIdTCPStream Class > TIdTCPStream Methods > Seek Method > Seek Method (Int64, TIdSeekOrigin)
TIdTCPStream.Seek Method (Int64, TIdSeekOrigin)
function Seek(
    const Offset: Int64; 
    Origin: TIdSeekOrigin
): Int64; override; overload;
Stream offset to locate.
Realtive origin for the desired stream offset. 

Int64 - Stream position following the seek operation.

Seek is an overloaded overridden method used to move the current position in the stream to an offset relative to a particular stream origin. The return value for the method indicates the new stream position following the seek operation. 

Please note that socket-based streams do not provide this type of random access operation; socket-based streams are intended for sequential access. As a result, the Seek method performs no stream positioning and always reports that the current stream position is at its' head (offset 0).


Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.