LibUsbDotNet 2.2.8
Transfer Method (buffer, offset, length, timeout, transferLength)
Library ReferenceLibUsbDotNet.MainUsbEndpointBaseTransfer(Object, Int32, Int32, Int32, Int32%)
LibUsbDotNet on SourceForge
Synchronous bulk/interrupt transfer function.
Declaration Syntax
C#Visual BasicVisual C++
public ErrorCode Transfer(
	Object buffer,
	int offset,
	int length,
	int timeout,
	out int transferLength
)
Public Function Transfer ( _
	buffer As Object, _
	offset As Integer, _
	length As Integer, _
	timeout As Integer, _
	<OutAttribute> ByRef transferLength As Integer _
) As ErrorCode
public:
ErrorCode Transfer(
	Object^ buffer, 
	int offset, 
	int length, 
	int timeout, 
	[OutAttribute] int% transferLength
)
Parameters
buffer (Object)
A caller-allocated buffer for the transfer data. This object is pinned using PinnedHandle.
offset (Int32)
Position in buffer that transferring begins.
length (Int32)
Number of bytes, starting from thr offset parameter to transfer.
timeout (Int32)
Maximum time to wait for the transfer to complete.
transferLength (Int32%)
Number of bytes actually transferred.
Return Value
True on success.

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