Solid File System

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

SolFSStream.Read 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.

Declaration

[Pascal]
    function Read(var Buffer; Count: LongInt): LongInt;

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

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

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

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

[C#]
    int Read(in byte[] buffer, int offset, int count)

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

[Java]
    byte[] read(long count)

Parameters

  • 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

Read attempts to read up to Count bytes into Buffer and returns the number of bytes actually read.

See also

ReadWithSeek     Write

Back to top