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
파일 보기 프로젝트 열기: arvydas/BlinkStickDotNet 1 사용 예제들

공개 메소드들

메소드 설명
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