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
Afficher le fichier Open project: arvydas/BlinkStickDotNet Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
CreateTransferContext ( ) : UsbTransfer
UsbEndpointWriter ( UsbDevice usbDevice, WriteEndpointID writeEndpointID, EndpointType endpointType ) : System

Method Details

Write() public méthode

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.
Résultat ErrorCode

Write() public méthode

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.
Résultat ErrorCode

Write() public méthode

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.
Résultat ErrorCode

Write() public méthode

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.
Résultat ErrorCode

Write() public méthode

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.
Résultat ErrorCode