Click or drag to resize

PipeStreamReadUseShortPacket Property

Gets or sets a value indicating if a short packet from the USB device should be used to terminate a read transfer.

Namespace:  WinUsbNet
Assembly:  WinUsbNet (in WinUsbNet.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public bool ReadUseShortPacket { get; set; }

Property Value

Type: Boolean

true if a short packet will terminate a read transfer; otherwise false.

Exceptions
ExceptionCondition
NotSupportedExceptionThe PipeStream does not support reading.
Remarks

If the ReadUseShortPacket property is true, then a short packet received from the USB device will terminate a Read or ReadByte in progress.

If the ReadUseShortPacket property is false, then a short packet will not terminate the read transfer. The transfer will continue until the number of bytes requested has been received or the time limit specifed by ReadTimeout has been reached.

See Also