Skip to content

HIDStream ​

Represents a stream to read from and write to a HID device.

Kind: Class

Namespace: ConnectorLib.HIDTools

Inheritance: Stream → IAsyncDisposable → IDisposable

Public Constructors

HIDStream(HIDInfo device)

Creates a new instance of the ConnectorLib.HIDTools.HIDStream class.

Public Member Functions

virtual override

void

Flush()

bool

IsOpen()

Checks if the stream is open.

virtual override

void

Close()

void

Write(byte[] buffer)

Writes the specified data to the HID device.

virtual override

void

Write(byte[] buffer, int offset, int count)

Writes the specified data to the HID device.

virtual override

long

Seek(long offset, SeekOrigin origin)

virtual override

void

SetLength(long value)

virtual override

int

Read(byte[] buffer, int offset, int count)

void

ReadBlocking(byte[] data)

Reads data from the HID device into the specified byte array.

Properties

bool

CanRead

[get, ]

bool

CanSeek

[get, ]

bool

CanWrite

[get, ]

long

Length

[get, ]

long

Position

[get, set]