pub fn parse_frame_header(
data: &[u8],
max_payload: usize,
) -> Result<(MessageType, &[u8])>Expand description
Parses the 5-byte frame header ([msg_type, payload_len_be32]) from a byte slice
and returns the message type and payload sub-slice.