pub fn decode_frame(data: &[u8]) -> Result<Vec<u8>, ControlError>Expand description
Decodes a length-prefixed frame, returning the payload.
This is a convenience function for one-shot decoding when the complete frame is available.
ยงErrors
Returns an error if the frame is incomplete or exceeds MAX_FRAME_SIZE.