IOHIDUserDeviceGetReportBlock

Type Alias IOHIDUserDeviceGetReportBlock 

Source
pub type IOHIDUserDeviceGetReportBlock = *mut DynBlock<dyn Fn(IOHIDReportType, u32, NonNull<u8>, NonNull<CFIndex>) -> IOReturn>;
Available on crate features block2 and hid and hidsystem only.
Expand description

The type block used for IOHIDUserDevice get report calls.

Parameter type: The report type.

Parameter reportID: The report ID.

Parameter report: A buffer to be filled in by the implementor with the report.

Parameter reportLength: The length of the report buffer being passed in. The implementor of this block may update the reportLength variable to reflect the actual length of the returned report.

See also Apple’s documentation