Read Method (buffer, offset, count, timeout, transferLength)

LibUsbDotNet

LibUsbDotNet 2.2.8 Read Method (buffer, offset, count, timeout, transferLength)
Library ReferenceLibUsbDotNetUsbEndpointReaderRead(array<Byte>[]()[][], Int32, Int32, Int32, Int32%)
LibUsbDotNet on SourceForge
Reads data from the current UsbEndpointReader.
Declaration Syntax
C# Visual Basic Visual C++
public virtual ErrorCode Read(
	byte[] buffer,
	int offset,
	int count,
	int timeout,
	out int transferLength
)
Public Overridable Function Read ( _
	buffer As Byte(), _
	offset As Integer, _
	count As Integer, _
	timeout As Integer, _
	<OutAttribute> ByRef transferLength As Integer _
) As ErrorCode
public:
virtual ErrorCode Read(
	array<unsigned char>^ buffer, 
	int offset, 
	int count, 
	int timeout, 
	[OutAttribute] int% transferLength
)
Parameters
buffer (array<Byte>[]()[][])
The buffer to store the recieved data in.
offset (Int32)
The position in buffer to start storing the data.
count (Int32)
The maximum number of bytes to receive.
timeout (Int32)
Maximum time to wait for the transfer to complete. If the transfer times out, the IO operation will be cancelled.
transferLength (Int32%)
Number of bytes actually transferred.
Return Value
ErrorCode.None on success.

Assembly: LibUsbDotNet (Module: LibUsbDotNet) Version: 2.2.8.104 (2.2.8.104)