Click or drag to resize

PipeStreamClearReadBuffer Method

Clears the read buffer for the PipeStream.

Namespace:  WinUsbNet
Assembly:  WinUsbNet (in WinUsbNet.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public void ClearReadBuffer()
Exceptions
ExceptionCondition
IOExceptionThe UsbDevice is not open.
NotSupportedExceptionThe PipeStream does not support reading.
Remarks
Data received from the USB device that has not yet been read with the Read or ReadByte methods is stored in an internal buffer. The ClearReadBuffer method clears the buffer, discarding any unread data.
See Also