Single File System: Virtual File System Delphi Library
for Archive / Backup with Transparent Compression and Strong Encryption
Writes the entire contents of the SFS object to the stream object specified by Stream.
procedure SaveToStream(Stream: TStream);
Use SaveToStream to copy SFS object into another storage medium. SaveToStream writes the entire contents of the SFS object into the indicated stream object, starting at the current position in the stream that was passed as a parameter.
When the Stream parameter is a TFileStream object, SaveToStream does much the same thing as the SaveToFile method.
If the entire contents of the data stream cannot be written to the target stream, SaveToStream raises an exception.
Note: We recommend that you use the SaveToStream instead of the CopyFrom method with TFileStream as it works much faster. This method may be useful to save in-memory SFS file to BLOB stream for example.