Skip to main content

split_frames

Function split_frames 

Source
pub fn split_frames(buf: &[u8]) -> Vec<(FrameHeader, &[u8])>
Expand description

Splits buf into complete frames (header, payload); the rest is ignored. For tests and tools.