SolFSStream.Seek method


Pascal    Plain C    C++ (DLL/Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET    Java 

SolFSStream     See also    


Moves to a specified position in the stream for which it was invoked.


    function Seek(Offset: LongInt; Origin: Word): LongInt;
    function SeekEx(Offset: Int64; Origin: Word): Int64;

[Plain C]
    long _stdcall StorageSeekFile(unsigned long File, long Offset, unsigned short Origin, long *Position);
    long _stdcall StorageSeekFileLong(unsigned long File, long long Offset, unsigned short Origin, unsigned long long *Position);

[C++ (DLL/Lib)]
    virtual unsigned long long Seek(long long Offset, SeekOrigin Origin)

[C++ (VCL)]
    virtual long __fastcall Seek(long Offset, Word Origin)
    virtual long long __fastcall SeekEx(long long Offset, Word Origin)

[C++ (.NET)]
    __int64 Seek(__int64 offset, SeekOrigin origin)

    long Seek(long offset, SeekOrigin origin)

    Function Seek(offset As Long, origin As SeekOrigin) As Long

    byte[] seek( long offset, SeekOrigin origin )


  • Offset - offset of the posision. Its value depends on Origin parameter.
  • Origin - indicates how to interpret the Offset parameter. Origin should be one of the following values:
  • [Plain C] File - handle to the file returned by Create function.
  • [Plain C] Position - returns the new value of the position.

Values of Origin

Return value

    The new value of the Position.

     [Plain C]  0 if the function succeeded or one of Error codes if the function failed.


Call Seek to change current position in the stream.

See also