ReadArray Method

Reads array of data from the port.

Syntax

Visual Basic .NET
Function ReadArray(ByRef DataBuffer As Byte, ByVal BytesToRead As UInt32) As UInt32 
Visual C#
UInt32 ReadArray(ref byte[] DataBuffer, UInt32 BytesToRead);

Parameters

DataBuffer

[out] The buffer that receives the data.

BytesToRead

[in] Number of bytes to read from the port.

Return

Number of bytes read.

Errors

The method may throw exception. Use GetLastError method to get the error code.

ftvspcErrorFailed 1 The operation has not been completed.
ftvspcErrorInvalidParameter 2 Invalid parameter.

See Also

Attach, Write