C# Class LibUsbDotNet.UsbEndpointWriter

Contains methods for writing data to a EndpointType.Bulk or EndpointType.Interrupt endpoint using the overloaded Write(byte[],int,out int) functions.
Inheritance: LibUsbDotNet.Main.UsbEndpointBase
Show file Open project: arvydas/BlinkStickDotNet Class Usage Examples

Public Methods

Method Description
Write ( IntPtr pBuffer, int offset, int count, int timeout, int &transferLength ) : ErrorCode

Writes data to the current UsbEndpointWriter.

Write ( byte buffer, int timeout, int &transferLength ) : ErrorCode

Writes data to the current UsbEndpointWriter.

Write ( byte buffer, int offset, int count, int timeout, int &transferLength ) : ErrorCode

Writes data to the current UsbEndpointWriter.

Write ( object buffer, int timeout, int &transferLength ) : ErrorCode

Writes data to the current UsbEndpointWriter.

Write ( object buffer, int offset, int count, int timeout, int &transferLength ) : ErrorCode

Writes data to the current UsbEndpointWriter.

Private Methods

Method Description
CreateTransferContext ( ) : UsbTransfer
UsbEndpointWriter ( UsbDevice usbDevice, WriteEndpointID writeEndpointID, EndpointType endpointType ) : System

Method Details

Write() public method

Writes data to the current UsbEndpointWriter.
public Write ( IntPtr pBuffer, int offset, int count, int timeout, int &transferLength ) : ErrorCode
pBuffer System.IntPtr The buffer storing the data to write.
offset int The position in buffer to start writing the data from.
count int The number of bytes to write.
timeout int Maximum time to wait for the transfer to complete. If the transfer times out, the IO operation will be cancelled.
transferLength int Number of bytes actually transferred.
return ErrorCode

Write() public method

Writes data to the current UsbEndpointWriter.
public Write ( byte buffer, int timeout, int &transferLength ) : ErrorCode
buffer byte The buffer storing the data to write.
timeout int Maximum time to wait for the transfer to complete. If the transfer times out, the IO operation will be cancelled.
transferLength int Number of bytes actually transferred.
return ErrorCode

Write() public method

Writes data to the current UsbEndpointWriter.
public Write ( byte buffer, int offset, int count, int timeout, int &transferLength ) : ErrorCode
buffer byte The buffer storing the data to write.
offset int The position in buffer to start writing the data from.
count int The number of bytes to write.
timeout int Maximum time to wait for the transfer to complete. If the transfer times out, the IO operation will be cancelled.
transferLength int Number of bytes actually transferred.
return ErrorCode

Write() public method

Writes data to the current UsbEndpointWriter.
public Write ( object buffer, int timeout, int &transferLength ) : ErrorCode
buffer object The buffer storing the data to write.
timeout int Maximum time to wait for the transfer to complete. If the transfer times out, the IO operation will be cancelled.
transferLength int Number of bytes actually transferred.
return ErrorCode

Write() public method

Writes data to the current UsbEndpointWriter.
public Write ( object buffer, int offset, int count, int timeout, int &transferLength ) : ErrorCode
buffer object The buffer storing the data to write.
offset int The position in buffer to start writing the data from.
count int The number of bytes to write.
timeout int Maximum time to wait for the transfer to complete. If the transfer times out, the IO operation will be cancelled.
transferLength int Number of bytes actually transferred.
return ErrorCode