Scan Method

HidSharp

Report Scan Method HIDSharp
Reads a HID report, calling back a provided function for each segment.

Namespace: HidSharp.ReportDescriptors.Parser
Assembly: HidSharp (in HidSharp.dll) Version: 1.5.0.0 (1.5.0.0)

Syntax

public void Scan(
	byte[] buffer,
	int offset,
	ReportScanCallback callback
)
public void Scan(
	byte[] buffer,
	int offset,
	ReportScanCallback callback
)
Public Sub Scan ( _
	buffer As Byte(), _
	offset As Integer, _
	callback As ReportScanCallback _
)
Public Sub Scan ( _
	buffer As Byte(), _
	offset As Integer, _
	callback As ReportScanCallback _
)
public:
void Scan(
	array<unsigned char>^ buffer, 
	int offset, 
	ReportScanCallback^ callback
)
public:
void Scan(
	array<unsigned char>^ buffer, 
	int offset, 
	ReportScanCallback^ callback
)
member Scan : 
        buffer : byte[] * 
        offset : int * 
        callback : ReportScanCallback -> unit
member Scan : 
        buffer : byte[] * 
        offset : int * 
        callback : ReportScanCallback -> unit

Parameters

buffer
Type:  OnlineSystem Byte 
The buffer containing the report.
offset
Type: OnlineSystem Int32
The offset to begin reading the report at.
callback
Type: HidSharp.ReportDescriptors.Parser ReportScanCallback
This callback will be called for each report segment. Use this to read every value you need.
See Also