Skip to main content

decode_message_frame

Function decode_message_frame 

Source
pub fn decode_message_frame(frame: &[u8]) -> ProtocolResult<Message>
Expand description

Decodes one complete length-prefixed frame from a borrowed byte slice.

The input must include the 4-byte length prefix, frame header, and CBOR body. The slice is not consumed or copied.