pub fn decode<'a>(
bytes: &[u8],
scratch: &'a mut [u8],
) -> Result<(u32, Message<'a>), ProtocolError>Expand description
Decode one complete SysEx record into the supplied payload buffer.
Returned strings and slices borrow scratch, which must remain unchanged
while the returned message is used. A record is never partially accepted.
ยงErrors
Rejects malformed, noncanonical, oversized, and unsupported records.