Solid File System

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

SolFSStream.ReadWithSeek method

Filter:

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

SolFSStream     See also    

Overview

Use this method to read the block of data from the stream starting from specified position.

Declaration

[Pascal]
    function ReadWithSeek(FileOffset : int64; var Buffer; Count: LongInt): LongInt;

[Plain C]
    long _stdcall StorageReadFileWithSeek(unsigned long File, long long FileOffset, void* Buffer, long BufferSize, long *Read);

[C++ (DLL/Lib)]
    unsigned long ReadWithSeek( long long FileOffset, void* Buffer, int Count)

[C++ (VCL)]
    virtual int __fastcall ReadWithSeek(long long FileOffset, void *Buffer, int Count);

[C++ (.NET)]
    int ReadWithSeek( __int64 FileOffset, __in unsigned char* buffer __gc[], int offset, int count)

[C#]
    int ReadWithSeek( long FileOffset, in byte[] buffer, int offset, int count)

[VB.NET]
    Function ReadWithSeek( ByVal FileOffset As Long, ByVal buffer() As Byte, ByVal offset As Integer, ByVal count As Integer) As Integer

[Java]
    byte[] readWithSeek( long fileOffset, long count )

Parameters

  • FileOffset - starting position in the stream to read the data from.
  • Buffer - bytes are read into this buffer.
  • Count - maximum number of bytes will be read.
  • Offset - offset in the buffer from which it is used.
  • [Plain C] File - handle to the file returned by Create function.
  • [Plain C] BufferSize - maximum number of bytes will be read.
  • [Plain C] Read - returns number of bytes actually read.

Return value

    The number of bytes actually read.

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

Description

Use ReadWithSeek to read certain amount of data from the stream starting from specified position. The method attempts to seek the stream to FileOffset and read up to Count bytes into Buffer. The number of bytes actually read is returned.

See also

Read     Write     WriteWithSeek    

Back to top