[Overview][Types][Classes] Reference for unit 'zstream' (#fcl)

TGZFileStream.Seek

Set the position in the compressed stream.

Declaration

Source position: zstream.pp line 103

public function TGZFileStream.Seek(

  Offset: LongInt;

  Origin: Word

):LongInt; override;

Arguments

Offset

  

Number of bytes to position on

Origin

  

Where to start positioning

Function result

New position in the stream

Description

Seeksets the position to Offsetbytes, starting from Origin. Not all combinations are possible, see TDecompressionStream.Seekfor a list of possibilities.

Errors

In case an impossible combination is asked, an EZlibErrorexception is raised.

See also

TDecompressionStream.Seek

  

Move stream position to a certain location in the stream.