Skip to main content

decode

Function decode 

Source
pub fn decode<W>(writer: W, bytes: &[u8]) -> Result<()>
where W: Write,
Expand description

Decode an HID report descriptor to text, using the default settings.

This is a shorter way of writing TextDecoder::new(writer).decode(bytes).