Skip to main content

frame_unpack

Function frame_unpack 

Source
pub fn frame_unpack(data: &[u8]) -> Option<(FrameHeader, &[u8])>
Expand description

Split a complete frame into its header and payload slice.

Returns None if the data is too short for the header, or if the remaining bytes are fewer than payload_len.