Discuss this help topic in SecureBlackbox Forum

TElDropboxDataStorage.ReadBlock

TElDropboxDataStorage     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


Reads a block of data from the specified file in the storage.

Declaration

[C#/Java]
    void ReadBlock(string Path, System.IO.Stream Strm, long Offset, long Size, ref long Read);
    void ReadBlock(string Path, System.IO.Stream Strm, long Offset, long Size, ref long Read, string Rev);
    void ReadBlock(TElCustomDataStorageObject Obj, System.IO.Stream Strm, long Offset, long Size, ref long Read);

[VB.NET]
    Sub ReadBlock(ByVal Path As String, ByVal Strm As System.IO.Stream, ByVal Offset As Long, ByVal Size As Long, ByRef Read As Long)
    Sub ReadBlock(ByVal Path As String, ByVal Strm As System.IO.Stream, ByVal Offset As Long, ByVal Size As Long, ByRef Read As Long, ByVal Rev As String)
    Sub ReadBlock(ByVal Obj As TElCustomDataStorageObject, ByVal Strm As System.IO.Stream, ByVal Offset As Long, ByVal Size As Long, ByRef Read As Long)

[Pascal]
    procedure ReadBlock(const Path : string; Strm : TStream; Offset, Size : Int64; var Read : Int64);
    procedure ReadBlock(const Path : string; Strm : TStream; Offset, Size : Int64; var Read : Int64; const Rev : string);

[C++]
    void ReadBlock(const std::string &Path, TStream &Strm, int64_t Offset, int64_t Size, int64_t &Read);
    void ReadBlock(const std::string &Path, TStream *Strm, int64_t Offset, int64_t Size, int64_t &Read);
    void ReadBlock(const std::string &Path, TStream &Strm, int64_t Offset, int64_t Size, int64_t &Read, const std::string &Rev);
    void ReadBlock(const std::string &Path, TStream *Strm, int64_t Offset, int64_t Size, int64_t &Read, const std::string &Rev);

[PHP]
    void ReadBlock(string $Path, TStream $Strm, integer $Offset, integer $Size, integer &$Read)
    void ReadBlock(string $Path, TStream $Strm, integer $Offset, integer $Size, integer &$Read, string $Rev)
    void ReadBlock(TElCustomDataStorageObject $Obj, TStream $Strm, integer $Offset, integer $Size, integer &$Read)

Parameters

  • Offset - the position in the file (in bytes) from which to start reading. If set to -1, starts reading from the beginning of the file.
  • Path - the path to the remote file.
  • Read - contains the number of bytes that were actually read.
  • Rev - specifies the requested revision of the file.
  • Size - the size of the data block to be read. If set to -1, reads the entire file.
  • Strm - the stream into which the data will be read.
  • Obj - ...

Description

    Use this method to read a block of data from the remote file.

See also:     ReadObject    

Discuss this help topic in SecureBlackbox Forum