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

Determines the starting position of the payload data

Arguments

  • packet_data - Vector of bytes

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.