C# Класс LibUsbDotNet.UsbEndpointWriter

Contains methods for writing data to a EndpointType.Bulk or EndpointType.Interrupt endpoint using the overloaded Write(byte[],int,out int) functions.
Наследование: LibUsbDotNet.Main.UsbEndpointBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
CreateTransferContext ( ) : UsbTransfer
UsbEndpointWriter ( UsbDevice usbDevice, WriteEndpointID writeEndpointID, EndpointType endpointType ) : System

Описание методов

Write() публичный Метод

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.
Результат ErrorCode

Write() публичный Метод

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.
Результат ErrorCode

Write() публичный Метод

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.
Результат ErrorCode

Write() публичный Метод

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.
Результат ErrorCode

Write() публичный Метод

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.
Результат ErrorCode