pub fn decode_frame(frame: &[u8]) -> Result<ProbeEvent, WireError>Expand description
Decode a length-prefixed frame: u32 LE length || CBOR body.
Returns WireError::ShortHeader if frame.len() < 4 and
WireError::FrameTruncated if the declared length exceeds the bytes
actually present.