Sign in Join
FPDoc Onlineexperiment

TWriteBufStream.Seek function

Member of TWriteBufStreampublicIn unit BufStream

Set stream position.

Declaration

pascal
function Seek(const Offset: Int64; Origin: TSeekOrigin): Int64
 ; override

Arguments

Offset

Offset (in bytes) of origin.

Origin

Origin of seek operation.

Function result

New position.

Description

Seek always raises an EStreamError exception, except when the seek operation would not alter the current position.

A later implementation may perform a proper seek operation by flushing the buffer and doing a seek on the source stream.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.