type

 TScSFTPDataChangeEvent = procedure(Sender: TObject; const FileName: string; const Handle: TScSFTPFileHandle; FileOffset: Int64; var Buffer: TBytes; var Offset, Count: Integer; EOF: Boolean) of object;

 

property BeforeWriteData: TScSFTPDataChangeEvent;

 

Description

The BeforeWriteData event occurs before data has been written to a remote file when executing the WriteFile method. TScSFTPClient sends data by pieces of WriteBlockSize size on uploading file, therefore the BeforeWriteData event may occur several times during one call of this method.

 

Parameters:

Sender - the object that raised the event.
FileName - the name of the file in which the data is being written.
Handle - handle of the file, in which data was written.
FileOffset - the offset in bytes relative to the beginning of the file that the writing started at.
Buffer - the buffer which holds the data write to the file. It can hold the nil value if EOF is True.
Offset - the position in the buffer that indicates the beginning of the written data.
Count - the amount of data sent in bytes.
EOF - indicates that the end of file was reached. If EOF value is True, the end of file was reached. Otherwise it was not reached.
SecureBridge Components, Copyright © 2007-2024 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support