C# Class HidSharp.HidStream

Inheritance: Stream
Afficher le fichier Open project: arvydas/BlinkStickDotNet Class Usage Examples

Méthodes publiques

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

Private Methods

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

Method Details

BeginRead() public méthode

public BeginRead ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
buffer byte
offset int
count int
callback AsyncCallback
state object
Résultat IAsyncResult

BeginWrite() public méthode

public BeginWrite ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
buffer byte
offset int
count int
callback AsyncCallback
state object
Résultat IAsyncResult

EndRead() public méthode

public EndRead ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
Résultat int

EndWrite() public méthode

public EndWrite ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
Résultat void

Flush() public méthode

public Flush ( ) : void
Résultat void

GetFeature() public méthode

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

GetFeature() public abstract méthode

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

Read() public méthode

Reads HID Input Reports.
public Read ( ) : byte[]
Résultat byte[]

Read() public méthode

Reads HID Input Reports.
public Read ( byte buffer ) : int
buffer byte The buffer to place the reports into.
Résultat int

Seek() public méthode

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Résultat long

SetFeature() public méthode

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

SetFeature() public abstract méthode

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

SetLength() public méthode

public SetLength ( long value ) : void
value long
Résultat void

Write() public méthode

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