ReadArrayOverlapped Method

Performs an asynchronous read operation (overlapped) into safe array of bytes.

Syntax

Delphi
procedure ReadArrayOverlapped(var OV: FTSPCOverlapped; var DataBuffer: array of byte; BytesToRead: Cardinal); 
BCBuilder
void ReadArrayOverlapped(FTSPCOverlapped *OV, Byte * DataBuffer, Cardinal BytesToRead);
 

Parameters

OV

[out] Instance of FTSPCOverlapped Class.

DataBuffer

[out] Destination SafeArray of bytes.

BytesToRead

[in] Number of bytes to read.

Remarks

OV and DataBuffer must be "alive" during all time of the operation.
You should call GetResult method of OV instance to get status of the operation.