Sign in Join
FPDoc Onlineexperiment

TNullStream.Seek function

Member of TNullStreampublicIn unit NullStream

Set current position in the stream.

Declaration

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

Arguments

Offset

Offset from origin, in bytes.

Origin

Origin of seek operation.

Function result

The new position.

Description

Seek sets the current position in the stream. It simulates this operation by keeping a "virtual" position. See Seek for more info about the arguments.

Errors

If the requested operation would cause the position to fall outside of the allowed range (0 to Size) then a ENullStreamError exception is raised.

See also

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