type

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

 

property OnData: TScSFTPDataEvent;

 

Description

The OnData event occurs when reading data from a remote file when executing the ReadFile method. This 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 from which the data is being read.
Handle - the file handle for the file that was sent to the ReadFile method.
FileOffset - the offset in bytes relative to the beginning of the file that the read starts at.
Buffer - the buffer which holds the data read from 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 received 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.

 

See Also

ReadFile

SecureBridge Components, Copyright © 2007-2021 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support