ReadArrayOverlapped Method

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

Syntax

Visual Basic Sub ReadArrayOverlapped(OV As FTSPCOverlapped, DataBuffer As array of Byte, BytesToRead As Long)
Visual C++ (MFC) void ReadArrayOverlapped(FTSPCOverlapped *OV, VARIANT *DataBuffer, long BytesToRead);
Visual C++ (#import) void ReadArrayOverlapped(FTSPCOverlapped *OV, VARIANT *DataBuffer, LONG BytesToRead);

Parameters

OV

[out] Instance of FTSPCOverlapped Class.

DataBuffer

[out] Destination SafeArray of bytes.

BytesToRead

[in] Number of bytes to read.

Remarks

You must call GetResult method of OV instance before accessing DataBuffer variable.
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.