Function hid_io_protocol::payload_start[][src]

pub fn payload_start(packet_data: &[u8]) -> Result<usize, HidIoParseError>

Determines the starting position of the payload data

Arguments

Remarks

Uses a packet byte stream to find payload start. Please note that there may be no payload, or Id. In this case the starting position will be index 2.