C# 클래스 HidSharp.HidStream

상속: Stream
파일 보기 프로젝트 열기: arvydas/BlinkStickDotNet 1 사용 예제들

공개 메소드들

메소드 설명
BeginRead ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
BeginWrite ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
EndRead ( IAsyncResult asyncResult ) : int
EndWrite ( IAsyncResult asyncResult ) : void
Flush ( ) : void
GetFeature ( byte buffer ) : void

Sends a Get Feature setup request.

GetFeature ( byte buffer, int offset, int count ) : void

Sends a Get Feature setup request.

Read ( ) : byte[]

Reads HID Input Reports.

Read ( byte buffer ) : int

Reads HID Input Reports.

Seek ( long offset, SeekOrigin origin ) : long
SetFeature ( byte buffer ) : void

Sends a Set Feature setup request.

SetFeature ( byte buffer, int offset, int count ) : void

Sends a Set Feature setup request.

SetLength ( long value ) : void
Write ( byte buffer ) : void

Writes an HID Output Report to the device.

비공개 메소드들

메소드 설명
CommonRead ( byte buffer, int offset, int count, Queue queue ) : int
CommonWrite ( byte buffer, int offset, int count, Queue queue, bool feature, int maxOutputReportLength ) : void
GetTimeout ( int startTime, int timeout ) : int
HandleAcquire ( ) : bool
HandleAcquireIfOpenOrFail ( ) : void
HandleClose ( ) : bool
HandleFree ( ) : void
HandleInitAndOpen ( ) : void
HandleRelease ( ) : void
HidStream ( ) : System

메소드 상세

BeginRead() 공개 메소드

public BeginRead ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
buffer byte
offset int
count int
callback AsyncCallback
state object
리턴 IAsyncResult

BeginWrite() 공개 메소드

public BeginWrite ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
buffer byte
offset int
count int
callback AsyncCallback
state object
리턴 IAsyncResult

EndRead() 공개 메소드

public EndRead ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
리턴 int

EndWrite() 공개 메소드

public EndWrite ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
리턴 void

Flush() 공개 메소드

public Flush ( ) : void
리턴 void

GetFeature() 공개 메소드

Sends a Get Feature setup request.
public GetFeature ( byte buffer ) : void
buffer byte The buffer to fill. Place the Report ID in the first byte.
리턴 void

GetFeature() 공개 추상적인 메소드

Sends a Get Feature setup request.
public abstract GetFeature ( byte buffer, int offset, int count ) : void
buffer byte The buffer to fill. Place the Report ID in the byte at index .
offset int The index in the buffer to begin filling with data.
count int The number of bytes in the feature request.
리턴 void

Read() 공개 메소드

Reads HID Input Reports.
public Read ( ) : byte[]
리턴 byte[]

Read() 공개 메소드

Reads HID Input Reports.
public Read ( byte buffer ) : int
buffer byte The buffer to place the reports into.
리턴 int

Seek() 공개 메소드

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
리턴 long

SetFeature() 공개 메소드

Sends a Set Feature setup request.
public SetFeature ( byte buffer ) : void
buffer byte The buffer of data to send. Place the Report ID in the first byte.
리턴 void

SetFeature() 공개 추상적인 메소드

Sends a Set Feature setup request.
public abstract SetFeature ( byte buffer, int offset, int count ) : void
buffer byte The buffer of data to send. Place the Report ID in the byte at index .
offset int The index in the buffer to start the write from.
count int The number of bytes in the feature request.
리턴 void

SetLength() 공개 메소드

public SetLength ( long value ) : void
value long
리턴 void

Write() 공개 메소드

Writes an HID Output Report to the device.
public Write ( byte buffer ) : void
buffer byte The buffer containing the report. Place the Report ID in the first byte.
리턴 void