TNullStream.Seek¶
Set current position in the stream.
Declaration¶
Source position: nullstream.pp line 48
public
function TNullStream.Seek(const Offset: Int64; Origin: TSeekOrigin)
: Int64; override;
Description¶
Seek sets the current position in the stream. It simulates this operation by keeping a "virtual" position. See #rtl.classes.TStream.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¶
| Name | Description |
|---|---|
| TNullStream.Read | Read null bytes from the stream. |
| TNullStream.Write | Write to stream. |
| #rtl.classes.TStream.Seek |