TNullStream.Seek function
Set current position in the stream.
Declaration
function Seek(const Offset: Int64; Origin: TSeekOrigin): Int64
; overrideArguments
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.
