Adds data stored in a memory buffer to the archive.
procedure AddFromBuffer(FileName: String; const Buffer; Count: Integer; Attr: Integer = faArchive; DateTime: TDateTime = 0);
Description
Use AddFromBuffer to compress data stored in the memory buffer to the file inside the archive.
The FileName parameter specifies file name that will be used to store data from the memory buffer.
Count specifies size in bytes of the buffer.
The Attr parameter specifies file attributes which will be assigned to the stored file.
The DateTime parameter specifies file date and time which will be assigned to the stored file.
Note: If some errors occurs an exception will be raised.
|
|