Solid File System

Virtual file system enigne that can be embedded into your software.

SolFSStream.Seek method

Filter:

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

SolFSStream     See also    

Overview

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

Declaration

[Pascal]
    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)

[C#]
    long Seek(long offset, SeekOrigin origin)

[VB.NET]
    Function Seek(offset As Long, origin As SeekOrigin) As Long

[Java]
    byte[] seek( long offset, SeekOrigin origin )

Parameters

  • 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.

Description

Call Seek to change current position in the stream.

See also

Position

Back to top