System.Classes.TBinaryWriter.Seek
Delphi
function Seek(const Offset: Int64; Origin: TSeekOrigin): Int64; virtual;
C++
virtual __int64 __fastcall Seek(const __int64 Offset, TSeekOrigin Origin);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Classes.pas System.Classes.hpp |
System.Classes | TBinaryWriter |
Description
Moves to a specified position in the stream.
Use Seek to set the position in the stream to which the TBinaryWriter instance writes.
Offset
represents the offset and the Origin
parameter indicates how to interpret the Offset
parameter. Origin should be one of the following values:
Value | Meaning |
---|---|
soBeginning |
Offset is from the beginning of the resource. Seek moves to the position Offset. Offset must be >= 0. |
soCurrent |
Offset is from the current position in the resource. Seek moves to the current position + Offset. |
soEnd |
Offset is from the end of the resource. Offset must be <= 0 to indicate a number of bytes before the end of the file. |
The method returns the new position in the stream.