Transfer Method (buffer, offset, length, timeout, transferLength)

LibUsbDotNet

LibUsbDotNet 2.2.8 Transfer Method (buffer, offset, length, timeout, transferLength)
Library ReferenceLibUsbDotNet.MainUsbEndpointBaseTransfer(IntPtr, Int32, Int32, Int32, Int32%)
LibUsbDotNet on SourceForge
Synchronous bulk/interrupt transfer function.
Declaration Syntax
C# Visual Basic Visual C++
public virtual ErrorCode Transfer(
	IntPtr buffer,
	int offset,
	int length,
	int timeout,
	out int transferLength
)
Public Overridable Function Transfer ( _
	buffer As IntPtr, _
	offset As Integer, _
	length As Integer, _
	timeout As Integer, _
	<OutAttribute> ByRef transferLength As Integer _
) As ErrorCode
public:
virtual ErrorCode Transfer(
	IntPtr buffer, 
	int offset, 
	int length, 
	int timeout, 
	[OutAttribute] int% transferLength
)
Parameters
buffer (IntPtr)
An IntPtr to a caller-allocated buffer.
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)