Skip to content

TStream.Seek

Set stream position.

Declaration

Source position: objects.pp line 326

default 
  procedure Seek(Pos: LongInt);  Virtual;

Description

Seek sets the position to Pos. This position is counted from the beginning, and is zero based. (i.e. seek(0) sets the position pointer on the first byte of the stream)

For an example, see TDosStream.Seek .

Errors

If Pos is larger than the stream size, Status is set to StSeekError.

See also

Name Description
TStream.GetPos Return current position in the stream
TStream.GetSize Return the size of the stream.