受信待機 (バイナリモード用)

Namespace: FVIL.Ports
Assembly: FVILforms (in FVILforms.dll) Version: 3.1.0.0 (3.1.0.9)

Syntax

C#
public static byte[] WaitForBinaryData(
	SerialPort src,
	int length,
	out int received
)
Visual Basic
Public Shared Function WaitForBinaryData ( 
	src As SerialPort,
	length As Integer,
	<OutAttribute> ByRef received As Integer
) As Byte()

Parameters

src
Type: System.IO.Ports..::..SerialPort
シリアルポートオブジェクト
length
Type: System..::..Int32
受信するデータ長 (byte) [範囲:0~]
received
Type: System..::..Int32%
受信したデータ長 (byte)

Return Value

Type: array<Byte>[]()[][]
受信したデータをバイト配列に格納して返します。
引数 src の ReadTimeout に指定されたタイムアウト時間内に データを受信できなかった場合は例外を発行します。

See Also