Single File System: Virtual File System Delphi Library
for Archive / Backup with Transparent Compression and Strong Encryption


TSFSFileStream.Read
TSFSFileStream
Top 


Reads up to Count bytes of data from the file associated with the stream in the Buffer with transparent decompression.

function Read(var Buffer; Count: Longint): Longint; override;

Description
Use Read to read data from the file associated with the stream when the number of bytes in the file is not known. Read transfers up to Count bytes from the resource, starting at the current position, and then advances the current position in the resource by the number of bytes actually transferred. Read returns the number of bytes actually transferred, which may be less than Count if the end of the file marker is encountered.

All other data-reading methods of a file stream (ReadBuffer, ReadComponent) call Read to do the actual reading.


© 2000-2004 AidAim Software LLC Single File System: Single-file Delphi Virtual File Syste